PhpMyadmin Checker
How the phpMyAdmin checker works
This section is an asynchronous phpMyAdmin checker using aiohttp and asyncio.
File parsing
Reads credentials in URL:login:password format. If the URL doesn't start with http, it automatically prepends https://.
CSRF handling
Requests the main page to extract the CSRF token (input field named token) required for login.
phpMyAdmin detection
- Checks if the site contains
"phpMyAdmin"in its content. - Handles redirects recursively and logs them.
- Handles
404responses separately. - Posts
pma_username,pma_password, andtokento the login page. - Retries up to 3 times for timeouts or failures.
- Considers a login successful if the page contains
logout,logout.php, or - Uses
asyncio.Semaphoreto limit concurrency andaiofilesfor asynchronous file writing.
- Valid credentials →
valid_credentials.txt - Invalid credentials →
invalid_credentials.txt - Not found sites →
not_found.txt - Unreachable sites →
unreachable.txt - The path to the database file
- Number of threads (concurrent requests, recommended 100-150)
Login attempts
title="Log out".
Async processing
File logging
Character encoding
Uses chardet to auto-detect the encoding of the input file.
Logging
Uses colorlog for color-coded console logs and standard logging to save logs to processing_log.txt.
Folder management
Creates timestamped output directories for each run to organize results.
User input
Asks for: