cPanel Checker
How the cPanel/Webmail checker works
This section implements an asynchronous cPanel/Webmail checker using aiohttp and asyncio.
Workflow
- Reads credentials from a
.txtfile
(format: - Skips invalid URLs and internal addresses like
localhostor127.0.0.1. - Logs into cPanel/Webmail via
/loginURL using async requests with SSL
verification disabled.
- Handles redirects and checks the final page's
<title>to determine the type:
- - Valid cPanel accounts:
Cpanel_ULP.txtandCpanel_Full.txt - Valid Webmail accounts:
Webmail_ULP.txt - Failed logins or unknown pages:
BAD_LOG.txtandBAD_ULP.txt - Limits simultaneous requests with
asyncio.Semaphore(150)to avoid overload. - Retries failed requests up to 2 times for SSL errors, timeouts, or other exceptions.
- Creates timestamped result directories automatically in
- Ensures graceful handling of malformed lines in the input file, logging them
URL:http:ignored_field:username:password).
"cPanel" → cPanel account
- "Webmail" or "Mail" → Webmail
- "Login" → Invalid credentials
- Other → Unknown page type
Logging
Writes results to multiple log files:
Notes
Cpanel/Result_YYYY-MM-DD_HH-MM-SS.