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 .txt file
  • (format: URL:http:ignored_field:username:password).
  • Skips invalid URLs and internal addresses like localhost or 127.0.0.1.
  • Logs into cPanel/Webmail via /login URL using async requests with SSL
  • verification disabled.
  • Handles redirects and checks the final page's <title> to determine the type:
  • - "cPanel" → cPanel account - "Webmail" or "Mail" → Webmail - "Login" → Invalid credentials - Other → Unknown page type

    Logging

    Writes results to multiple log files:

  • Valid cPanel accounts: Cpanel_ULP.txt and Cpanel_Full.txt
  • Valid Webmail accounts: Webmail_ULP.txt
  • Failed logins or unknown pages: BAD_LOG.txt and BAD_ULP.txt
  • Notes

  • 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
  • Cpanel/Result_YYYY-MM-DD_HH-MM-SS.
  • Ensures graceful handling of malformed lines in the input file, logging them
as invalid format.