Skip to content

Python script to take any file and create a C header file with that binary data encoded as a char array. Optionally XOR encrypts the data. Helpful for creating custom loaders for shellcode.

License

Notifications You must be signed in to change notification settings

hoodoer/shellcodeEncryptor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Shellcode Encryptor

Python script to take any file and create a C header file with that binary data encoded as a char array. Optionally XOR encrypts the data.

Simple tool to take an arbitrary binary (DLL, exe, etc.) and convert it to a XOR encrypted char array for embedding in loaders that decrypt the data in memory and do something useful with it.

Helpful for writing custom loaders for shellcode.

Basically a wrapper around xxd.

Note that the generated header file includes the encryption passphrase by default. If you leave this in the binary, many AVs will find that string, decrypt the payload and scan it. Best to use runtime assignment of the decryption key if you're shooting for AV bypass.

About

Python script to take any file and create a C header file with that binary data encoded as a char array. Optionally XOR encrypts the data. Helpful for creating custom loaders for shellcode.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages