Script to create a Windows executable (x86/64) from a given shellcode file.
The script has the following options:
usage: shellcode_to_exe.py [-h] -b BITNESS -s SHELLCODE [-e EXECUTABLE]
Create a Windows executable (x86/64) from a shellcode file
options:
-h, --help show this help message and exit
-b, --bitness BITNESS
"32" or "64" (bitness)
-s, --shellcode SHELLCODE
Shellcode file path
-e, --executable EXECUTABLE
Executable output path
For example, if you want to create a 64-bit EXE file x64_executable.exe from an extracted 64-bit shellcode file x64_shellcode.bin:
python shellcode_to_exe.py -b 64 -s C:\x64_shellcode.bin -e C:\x64_executable.exe