A command line tool to scan binaries for Code caves and find suitable locations to inject custom ASM code.
- Scan any executable file for code caves of a specified size or larger
- Sort code caves by size, from largest to smallest
- Print the address and size of each code cave found
python main.py path_to_program.exe 300
Where path_to_program.exe
is the path to the executable file you want to scan, and 300
is the minimum size in bytes that the code cave should have.
Note that this script searches for code caves within all sections of the binary, not just the executable section.
For this project I decided to pair-program with ChatGPT. I wanted to try it for quite some time now and what can I say. I am just blown away!
- ChatGPT for providing helpful guidance and assistance during the development of this project.