
Disclaimer This script is provided for educational purposes only. The author is not responsible for any misuse or unintended consequences resulting from its use. Always follow ethical guidelines and obtain proper authorization before testing any security tools or exploits.
This Python and Bash scripts are designed to exploit the CVE-2023-22809 vulnerability in sudo versions 1.8.0 through 1.9.12p1. This vulnerability allows a local attacker to escalate their privileges by exploiting improper handling of sudoedit or sudo -e commands.
sudo version 1.8.0 through 1.9.12p1 installed on the target machinesudo command with potential sudoedit or sudo -e capabilitiesThe basic usage of this script:
python exploit.py
Or
bash exploit.sh
python exploit.py -i
Or
bash exploit.sh -i
python exploit.py -r
Or
bash exploit.sh -r
python exploit.py -h
Or
bash exploit.sh -h
Before running the exploit, ensure the following: