Get ALL Mail:Pass

How the email pair extraction works

This code extracts login:password pairs from text logs, applying filtering by domains and string structure.

What the code does

  • Filters domains — the user selects the mode:
  • - exclude specified domains (blacklist), - collect only specified domains (whitelist), - or collect all e-mails.
  • Searches for lines containing email addresses and passwords in .txt files
  • located in the selected folder (and subfolders).
  • Skips junk lines (without @, with inappropriate length, too long
  • passwords, UNKNOWN, etc.).
  • Checks the email format using a regular expression.
  • Displays statistics (number of lines, files, pairs found, and processing
  • time).

    The following lines are considered invalid

  • Those that do not contain @.
  • Those without separators (:, |, space).
  • Those where the email address does not validate against the
  • [email protected] template.
  • Those with UNKNOWN in the password.
  • With a password longer than 100 characters.
  • That did not pass the domain filter (for example, gmail.com is prohibited in
blacklist mode).

..