
CVE-2025-49132
This tool is used to scan Pterodactyl panel instances in an attempt to retrieve their database configuration information. By exploiting a specific path traversal vulnerability, sensitive configuration data of the panel can be obtained.
This project is a high-performance HTTP request tool specifically designed to detect and collect configuration information from Pterodactyl panel instances exposed to the public network. It sends specific requests to target servers, checks whether the response contains database configuration information, and saves the results in categorized directories.
requests library for HTTP requestsaiohttp for asynchronous request supportThreadPoolExecutor for multi-threaded processing.
├── main.py # Main program file
├── url.txt # Target host list file
├── json/ # Output directory
│ ├── ✔️正确/ # Directory for results containing target data
│ └── ❌错误/ # Directory for incorrect or invalid results
└── README.md # Project documentation
Before running the program, install the required Python libraries:
pip install requests aiohttp urllib3
python main.py
By default, it reads the host list from the url.txt file and processes using multi-thread mode.
python main.py [--file FILE] [--mode MODE] [--workers WORKERS]
Parameter description:
-f, --file: Specify the host list file path (default: url.txt)-m, --mode: Execution mode, options: threading, async, single (default: threading)-w, --workers: Number of worker threads (default: 5)# Use default settings
python main.py
# Specify a custom host file
python main.py --file hosts.txt
# Use asynchronous mode
python main.py --mode async
# Use single-thread mode
python main.py --mode single
# Set worker threads to 10
python main.py --workers 10
In the Config class in the main.py file, you can modify the following settings:
PROXY: Proxy server address (default: http://127.0.0.1:7899)TIMEOUT: Request timeout (default: 30 seconds)MAX_RETRIES: Maximum number of retries (default: 3)MAX_WORKERS: Maximum number of worker threads (default: 5)USER_AGENT: Request User-Agent (default: Mozilla/5.0 Windows AppleWebKit/537.36)/locales/locale.json pathlocale: ../../../pterodactylnamespace: config/databasejson/✔️正确/json/❌错误/Results are saved in JSON format, containing the following information:
success: Whether the request was successfulstatus_code: HTTP status coderesponse_time: Response timeurl: Actual request URLheaders: Response headersdata: Response datasize: Response sizecontains_target_data: Whether it contains target datadatabase_info: Extracted database informationAfter execution, detailed statistics will be displayed: