Autorun Batch

May 18, 2010 at 16:07:42
Specs: Windows XP
I have embedded a batch file into a picture, but when the picture is clicked the bat stays hidden, is there anyway to make the batch file run when the picture is clicked? or is there a way it can be done in a different programming language? I have googled and read just about every relevant link and still dont know...if some one could help it would be greatly appreciated...Thanks

See More: Autorun Batch

Report •

May 18, 2010 at 18:54:32
prob'ly not the best way, but all i know of:

<script language="vbscript">
sub test()
set wsh=createobject("") "c:\htm\ok.bat",0
end sub

change 0 to 1 for regular window, 2 for minimized
"I have embedded a batch file into a picture"
how did you do this? not familiar...

Report •

May 18, 2010 at 19:44:46

this is the video i followed in order to do so, it's pretty neat, but some what useless unless you have sensitive info that no one else needs to know about....

thanks for the script, i'll be sure and try it.

Report •

May 19, 2010 at 06:25:09
Ah. He's using the nature of the JPEG renderer to ignore superfluous information at the end of the file, and 7zip's nature to ignore invalid data before its archive information.

To answer your question, no you cannot run a script just because you somehow, in some way, stuffed a compressed version of it into another file.

And for the record, that technique will work for other files (like text files), but it might be readily apparent.

Wed 05/19/2010  9:21:50
H:\>f:\7-Zip\7z a out *.pdf

7-Zip 4.45 beta  Copyright (c) 1999-2007 Igor Pavlov  2007-04-17

Creating archive out.7z

Compressing  290200.pdf
Compressing  290232.pdf
Compressing  290233.pdf
Compressing  290235.pdf
Compressing  JES_Commands.pdf
Compressing  JES_Macros.pdf
Compressing  JES_Messages.pdf
Compressing  remedy_adv.pdf

Everything is Ok

Wed 05/19/2010  9:23:01
H:\>copy /b SwapOutCodes.txt+out.7z out.txt
        1 file(s) copied.

Wed 05/19/2010  9:24:18
H:\>f:\7-Zip\7z l out.txt

7-Zip 4.45 beta  Copyright (c) 1999-2007 Igor Pavlov  2007-04-17

Listing archive: out.txt

   Date      Time    Attr         Size   Compressed  Name
------------------- ----- ------------ ------------  ------------
2009-08-29 14:39:20 ....A      2203521     19671329  290200.pdf
2009-08-29 14:39:31 ....A       488027               290232.pdf
2009-08-29 14:39:42 ....A      1668573               290233.pdf
2009-08-29 14:38:57 ....A      1669701               290235.pdf
2008-07-29 23:44:04 ....A      8936087               JES_Commands.pdf
2008-07-29 23:42:03 ....A      4458000               JES_Macros.pdf
2008-07-29 23:36:56 ....A      5071250               JES_Messages.pdf
2007-03-11 21:00:34 ....A      1822954               remedy_adv.pdf
------------------- ----- ------------ ------------  ------------
                              26318113     19671329  8 files

Report •

Related Solutions

May 19, 2010 at 11:27:51
You can make a trivial stego with copy /b. No zipper required.

Getting a script toRUN from there is another story.

Helping others achieve escape felicity


Report •

May 19, 2010 at 13:32:20
yeah, the copy /b does the main part, but you can't recover
the file(s) easily (ie: without debug) without using the zipper.
like op said, neat, but not a whole lot of uses. works with
.bmp files too.

after seeing what he's trying to do, my thing is not at all the ticket.

ps: you can do the same thing with mp3 files.

Report •

Ask Question