
Proof of concept for CVE-2022-31814
This script exploits a vulnerability in pfSense to upload a shell, execute a command, and then delete the shell.
requests librarypip install requests
python pfsense.py -f <file_with_urls> -c <command_to_execute>
-f, --file: Path to a file containing a list of URLs (one per line).-c, --command: Command to execute on the target.python pfsense.py -f targets.txt -c "id"
The script performs the following steps:
pfBlockerNG is installed on the target.This script is intended for educational purposes only. Use it at your own risk. The author is not responsible for any misuse or damage caused by this script.