Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rsrdjan/encpe
Portable Executable (PE) binary encryptor
https://github.com/rsrdjan/encpe
Last synced: about 1 month ago
JSON representation
Portable Executable (PE) binary encryptor
- Host: GitHub
- URL: https://github.com/rsrdjan/encpe
- Owner: rsrdjan
- License: bsd-3-clause
- Created: 2023-10-01T12:26:45.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-01T19:04:32.000Z (over 1 year ago)
- Last Synced: 2023-10-02T14:12:26.897Z (over 1 year ago)
- Language: C
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# encpe
Portable Executable (PE) binary encryptorRC4 encryption of Portable Executable (PE) binaries .text section with self-decryption on execution. Uses ENCPE_ macros to mark the code block for encryption and code block as key.
# Usage:
`encpe.exe filename offset len key_offset key_len`
filename: path to PE executable
offset: offset in file to start encryption
len: number of bytes to encrypt
key_offset: offset of key in file
key_len number of bytes that holds the keyFor testing purposes `test.c` file is provided.
Compile it with `cl.exe test.c encpe.c /DU_BUILD` and then run to get run-time offsets.
Use offsets for encryption with encpe.exe:
`encpe.exe test.exe 0x10 0x20 0x30 0x40`Recipe taken from *"Secure programming cookbook for C and C++"*, 2005 John Viega and Matt Messier and ported for Win32.