Skip to content

jlvsjp/exebinder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EXE文件捆绑器 - exebinder

将一个exe文件绑定到另一个文件上,支持PE或其他文件,如docx、pdf等。

Bind 1 exe file (secondary) to another file (primary), the primary file type can be docx/pdf etc.

本工具支持添加UAC权限声明,支持自定义文件描述,支持自定义图标(如果没有指定,则默认使用被捆绑程序的图标),支持不落地加载被捆绑文件。

This tool supports binding UAC statement. Supports customized file description. Supports customized file icon.(use the primary file icon by default). And Supports load binded exe file from memory.

需要MinGW环境。

Need MinGW env.

因为本程序用到了g++/windres/strip等控制台程序,推荐使用 tdm-gcc。

Cause g++/windres/strip prog be used, and TDM-GCC is recommended.

不落地加载

Loading exe image from memory.

建议先使用file命令查看一下需要捆绑的文件的架构。

I suggest before use this tool, you may check the architecture of the secondary file(the binded exe file) by use file command or other similar tool.

例如:如果是Windows 80386 的 console 程序,则需要指定--x86 和 --no-gui 参数。

For example, if the secondary file is Windows 80386 console program, you need run python exebinder.py with --x86 and --no-gui flags.

Install

Install Python2.7 and PKG.

No more words for install python :-)

Install pip

Download: https://bootstrap.pypa.io/get-pip.py

Run python get-pip.py

Install PKG

Run pip install -r requirements.txt

Install tdm-gcc

From: https://jmeubank.github.io/tdm-gcc/download/

And then make sure that gcc/g++/windres/strip is on your Windows %PATH% environment variables.

Use exebinder

python exebinder.py --help

Bind trojan.exe with xxx.exe which is a CLI program with UAC permission, and new.exe is be generated. When new.exe running, you can see the process description is "Microsoft Windows Command Line Program".

python exebinder.py --uac --no-gui --dec "Microsoft Windows Command Line Program" xxx.exe trojan.exe --out new.exe

Bind trojan.exe with xxx.exe which is a GUI program and x86 architecture.

python exebinder.py --x86 xxx.exe trojan.exe --out new.exe

Bind trojan.exe with xxx.pdf and UAC permission, and set the new icon as pdfico.jpg. When new.exe running, the default pdf reader openning for reading the xxx.pdf, which name is be changed resume.pdf at runtime.

python exebinder --ico .\pdfico.jpg --prog resume.pdf --uac xxx.pdf trojan.exe --out new.pdf.exe

TODO

I will add the feather of auto check the file type, so the --x86 and --no-gui parameter may be depreciated.

About

Bind 2 Windows EXE files to 1 exe file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published