Hack Forums
[TUT] exe - jpg (run .jpegs as exe's) - regedit method - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45)
+--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449)
+---- Forum: Beginner Hacking (https://hackforums.net/forumdisplay.php?fid=4)
+----- Forum: Hacking Tutorials (https://hackforums.net/forumdisplay.php?fid=47)
+----- Thread: [TUT] exe - jpg (run .jpegs as exe's) - regedit method (/showthread.php?tid=87274)

Pages: Pages 1 2


[TUT] exe - jpg (run .jpegs as exe's) - regedit method - "Anonymous-J" - Jun 11, 2009

This tutorial will show you how to create JPG files that will act like EXE files.


The way Windows executes EXE files is stored inside the registry.
so is the way it executes JPG files.

This means that we need to make windows think a JPG file is an EXE file. But we cant do that without potentially damaging the OS's configuration or risk that any future changes made by programs will set JPG back to its default registry value.


What we need to do is create a file that will look like its a JPG (not be the icon, but by the type) and will act like an EXE. (Pretty simple huh?)

This will be our file:

"file.jpg "



notice the space after the ".jpg". This is no ordianry space, but a special char that for writing it, what you need to do is...:

Get the EXE you want to convert to "jpg":

rename it from "file.exe" to "file.jpg". Now press the rename again, and in the end of the .jpg, press the ALT key (dont let go of it) and on the keypad, type "0160". <---------IMPORTANT!!

this will look like this: "file.jpg ". you can now rename it to something like "my pic.jpg " to make it convincing


Go to:

Start -> Run -> RegEdit

Right click on the HKEY_CLASSES_ROOT key and New -> Key

Call it ".jpg " (the space represants the ALT+0160)

Inside it, you will find the (Default) string.

Double click on it and write "exefile".

Then right click anywhere but on the Default string and New -> String Value

Call it "Content Type". and edit it so it will say "application/x-msdownload".

Right click on the ".jpg " key and New -> Key

Call it "PeistentHandler".

Inside it, edit the Default string to "{098f2470-bae0-11cd-b579-08002b30bfeb}"

Now every EXE file that will have the ".jpg " type, will be executed like a regular EXE! But only on your computer.

Right click on the ".jpg " key and Export.

Call it something like "fix.reg" and tell the guy/gal you're sending the "picture" to that its a fix so that windows will be able to open your pic.

I recommand using an EXE joiner to join a real pic to an EXE file so the user wont suspect anything.


This is alot to remember - but if you got through it step by step. its easy 👍

Enjoy.....🎉


Thanks for reading

+rep if it helped you


- uprize - Jun 11, 2009

cant you just hide the .reg key inside the jpeg file to make it run automatically?


* - maria_rosaria - Apr 13, 2011

thanks for this it was helpful


* - DvS - Apr 13, 2011

(Jun 11, 2009 02:45 PM)"Anonymous-J Wrote:  This tutorial will show you how to create JPG files that will act like EXE files.

The way Windows executes EXE files is stored inside the registry.
so is the way it executes JPG files.

This means that we need to make windows think a JPG file is an EXE file. But we cant do that without potentially damaging the OS's configuration or risk that any future changes made by programs will set JPG back to its default registry value.

What we need to do is create a file that will look like its a JPG (not be the icon, but by the type) and will act like an EXE. (Pretty simple huh?)

This will be our file:

"file.jpg "

notice the space after the ".jpg". This is no ordianry space, but a special char that for writing it, what you need to do is...:

Get the EXE you want to convert to "jpg":

rename it from "file.exe" to "file.jpg". Now press the rename again, and in the end of the .jpg, press the ALT key (dont let go of it) and on the keypad, type "0160". <--IMPORTANT!!

this will look like this: "file.jpg ". you can now rename it to something like "my pic.jpg " to make it convincing

Go to:

Start -> Run -> RegEdit

Right click on the HKEY_CLASSES_ROOT key and New -> Key

Call it ".jpg " (the space represants the ALT+0160)

Inside it, you will find the (Default) string.

Double click on it and write "exefile".

Then right click anywhere but on the Default string and New -> String Value

Call it "Content Type". and edit it so it will say "application/x-msdownload".

Right click on the ".jpg " key and New -> Key

Call it "PeistentHandler".

Inside it, edit the Default string to "{098f2470-bae0-11cd-b579-08002b30bfeb}"

Now every EXE file that will have the ".jpg " type, will be executed like a regular EXE! But only on your computer.

Right click on the ".jpg " key and Export.

Call it something like "fix.reg" and tell the guy/gal you're sending the "picture" to that its a fix so that windows will be able to open your pic.

I recommand using an EXE joiner to join a real pic to an EXE file so the user wont suspect anything.

This is alot to remember - but if you got through it step by step. its easy 👍

Enjoy..🎉

Thanks for reading

+rep if it helped you

Please remove "+rep if it helped you" from your tutorial, and also, doesn't your victim need to do this to if he/she wanted to run the .exe?




* - pekopon321 - Dec 17, 2011

very nice tutorial you got there. thanks =))


* - ivo97826 - Dec 18, 2011

Hey, thanks you, It works for me : )


* - qrooltex - Dec 18, 2011

(Jun 11, 2009 05:54 PM)uprize Wrote:  cant you just hide the .reg key inside the jpeg file to make it run automatically?

The point of the .reg key is to make the jpeg file run as an exe. If you bind it into the jpeg, the .reg key wont run..


* - puresownes44 - Jun 1, 2014

isnt this some kind of usless? because u cant infect any1 who dont make .reg key before?
you cant get new slave with jpg...


* - DontMakeHackerWild - Jun 1, 2014

(Jun 1, 2014 05:20 AM)puresownes44 Wrote:  isnt this some kind of usless? because u cant infect any1 who dont make .reg key before?
you cant get new slave with jpg...

i quess it s paradox in a pardox in a paradox 😧


* - fraxi - Jun 2, 2014

Ghaha good job :D It work for me, Really nice share man, thanks!


* - zmbe - Jun 3, 2014

This isn't for infecting other people. Its just for hiding an exe on your computer.


* - Fouadelyaouti - Jun 3, 2014

You're not allowed to ask 4 rep kitten


* - Blak32 - Jun 4, 2014

Thanks for share bro,gonna try this out 🤝


* - FrenchDoxx - Oct 25, 2015

It's still working ?.......


* - hghormone - Oct 31, 2015

Thanks for this :) Good job .