Hide Exe In Jpg And Execute
- You need to create a new folder anywhere you wish and paste your.exe file on your newly created.
- Need to disguise your Virus and your victim has WinRAR 4.2? Well, here you go! WinRAR 4.2 - HxD Hex Edito.
While Penetration Testing , we come across scenarios where we need to social engineer in order to get the malware executed and test the strength of the organisation’s employee’s cyber security Awareness . Get teamviewer password from command line ubuntu command. Well here is a way to do so . What if we could get a Jpg extension file executed as an EXE (PE : Portable executable) . The good news is , yes this is possible .
So only the file name extension was changed to hide the real purpose of the file. PE32 will not be automatically executed when they have the.jpg extension like in this case. Also the image viewer which will be invoked with the file by default will not execute the code but instead exit or complain that this is not a valid image.
Here is a tutorial will show you how to create JPG files that will act like EXE (PE) files.
#Disclaimer : Please don’t perform Un-Authorized penetration testing . It’s Illegal . Any Damages Done , the Author holds No responsibility . This Tutorial/Post is purely for educational purposes .
Executing Jpeg files as Exe (PE file) using Registry
Now to understand this technique we will dig into the Registry . Basically the Windows Registry is a HIVE of information . It contains all the information related to the the operating system as well as the files on the system . Now Among the various settings and configurations present inside the registry , there is also the settings / configurations that define how Windows executes EXE files is stored . Also it stores the way the JPEG files are executed .
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. So from here on , its not the responsibility of Author if anything happens to your system/OS . What we are about to do may destroy your system as well (the worst case scenario) . You are at your own risk .
- 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 “ Zfs windows.
Notice the space after the “.jpg”. This is no ordianry space, but a special char and has a very important role in our hack . Here
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 and on then on keypad, type “0160”.
#IMPORTANT!!
Hide Exe In Jpg And Execute Files

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
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“.
X force autocad 2013 keygen. Then right click anywhere but on the Default string
New -> String Value
Call it “Content Type“. and edit it so it will say “application/x-msdownload“.
Hide Exe In Jpg And Execute Linux
Right click on the “.jpg ” key
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!
To export the Registry key in a registry file to send to the victim , Right click on the “.jpg ” key and Export.
Well there is one piece of Social Engineering that you still need to deal with . The Settings we just changed in the Registry will make the hack work only on the machine we changed the registry settings in . To make it work in the Target system you either need to Send this exported registry file and make the target execute it or Bind this with the jpg file using some binder .
Using an Exe Binder to bind the files together is a good idea . Well I prefer that . Though if you a great at social engg. then make the target execute the reg file separately , would be another way out.
#Like , Share and Comment if this post is helpful to you
Hide Exe In Jpg And Execute Commands
#Disclaimer : Please don’t perform Un-Authorized penetration testing . It’s Illegal . Any Damages Done , the Author holds No responsibility . This Tutorial/Post is purely for educational purposes .
Hide Exe File Into JPG – In Windows .exe denotes any of the applications that are executable in this operating system. Now on your PC, you might have many such applications that you might not want to show everyone so without hiding them you have a better choice that’s using the .jpg extension in the place of .exe extension by this no one can judge that the file is an application in your windows.
In this article, we learn how to hide Exe file into jpg. You can easily hide the Exe file into jpg format by just following the below Steps.
Time needed: 5 minutes.
Hide Exe File Into JPG Step-by-Step Guide
- Create a new folder anywhere
First, you need to create a new folder anywhere you want and then paste it in your .exe file on your newly created folder.
- Rename your .exe file
Now you need to rename the .exe file example: Amarnath.jpeg (anything in jpeg format). Now, You get a warning popup directly click on “Ok” to proceed
- Create a shortcut
After that, you need to create a shortcut for that file, for creating a shortcut clearly copy the “techviral.jpeg” and right-click and then select “Create shortcut”
- Rename the shortcut
Now you need to rename the shortcut of Techviral.jpeg. So, let’s take Amarnath.jpeg.
- Open the properties of a shortcut file
At last open the properties of a shortcut file that are hello.jpeg. Now make start in field empty the re. In the target, field pastes this address C:WINDOWSsystem32cmd.exe /c techviral.jpeg in place of techviral.jpeg you will write the address of the file that is not the shortcut one.

Now by the above steps, If anyone clicks on the file Amarnath.jpeg the file techviral.jpeg will get open as you had changed the target of the file.
That’s it! you can now send these files by compressing them into the zip format and sending them to anyone in their emails etc.
I I hope you like the article ‘How to Hide Exe File Into JPG’ Stay tuned for more updates.