Download link: https://resource-hacker.en.softonic.com/download
Resource Hacker is a resource editor designed for 32-bit and 64-bit Windows applications. It has the functionality of a resource compiler, can handle .rc files, and can also be used as a decompiler. It can view and edit resources in executable files (such as .exe, .dll, .scr, etc.), as well as compiled resource libraries (such as .res, .mui). Although Resource Hacker is primarily a graphical user interface application, it also provides many command-line options for compiling and decompiling resources.
Use ResHacker to replace icons
-
First, open the ResHacker.exe program.
-
Click "File (F)" on the menu bar, select "Open (O)", and then select the application file you want to edit.
-
Click the "+" symbol of the corresponding icon group in the menu, expand the subdirectory, and several folders will be displayed inside, each corresponding to an icon group.
-
Click the "+" symbol of the corresponding folder (e.g., "3") to expand it, select "1033", and the preview box on the right will display the style of the icon.
-
Now you can start replacing the icon. After selecting "1033", right-click on "1033" and a context menu will appear.
-
Click the 4th option in the context menu, "Replace Resource...".
-
A dialog box will appear (Replace Icon with...), allowing you to select the icon (ico file) to replace. Click "Open New Icon File (0)" in the upper left corner.
-
Select the icon file (ico) you want to replace, and after selecting it, click "Open (0)" in the lower right corner of the dialog box.
-
Then click "Replace (R)" in the lower right corner.
-
An error message box may pop up, click OK.
-
After replacing the icon for the "3" icon group, the next step is to save the file. Click "File (F)" on the ResHacker menu bar, select "Save As (A)...".
By following the above steps, you can use ResHacker to replace the icon of the program you want to modify.
To create a disguised exe application in the format of an image, first find a beautiful image and convert it to the ico icon format using Python.
import os
from PIL import Image
def convert_images_to_ico(dir_path):
for filename in os.listdir(dir_path):
if filename.lower().endswith(".png") or filename.lower().endswith(".jpg") or filename.lower().endswith(".jpeg"):
# Get the full path of the image
image_path = os.path.join(dir_path, filename)
# Open the image
img = Image.open(image_path)
# Set the ICO save path and filename
ico_filename = os.path.splitext(filename)[0] + ".ico"
ico_path = os.path.join(dir_path, ico_filename)
# Convert the image to ICO format
img.save(ico_path, format="ICO")
print(f"Conversion completed: {image_path} -> {ico_path}")
# Call the function and pass the directory path
convert_images_to_ico("./")
You can also use an online conversion tool to convert it: http://www.ico8.net/
After successfully converting it to an icon, use the ResourceHacker tool to decompile and replace the target file icon with the beautiful girl icon.
Then disguise the exe by changing the file extension to an image format, as shown in the image. This is an application, but its extension is jpg.