How drcrypterdotru/smtp-heist works
Purpose and Entry Point
SMTP Heist is a desktop PyQt6 application for authorized SMTP security testing. It loads credential/host combinations, attempts SMTP authentication against configured or discovered hosts/ports, tracks outcomes, and can report results to Telegram. The executable entry point is Main.py; Python dependencies are declared in requirements.txt.
GUI Application Shell
The application is implemented as a single primary Python module, so UI construction, settings, orchestration, and result presentation are likely colocated rather than separated into packages. The PyQt6 runtime provides the desktop dashboard, real-time status display, configuration controls, and HTML-letter preview described by the README.
• Main.py
• requirements.txt
Input and Target Modeling
The main intake boundary is a user-selected text file containing either explicit targets (HOST|PORT|EMAIL|PASSWORD) or credentials (EMAIL|PASSWORD). Explicit records can be tested directly; credential-only records require the configured SMTP-host workflow or hostname discovery. Invalid/empty input is skipped.
• Main.py
• Sub_SMTP.txt
SMTP Host Discovery and Configuration
The tool supports two target-selection paths: user-provided SMTP hosts/ports and discovery based on email domains plus SMTP subdomain candidates. Sub_SMTP.txt is the repository’s supplied candidate list for names such as smtp, smtpout, and webmail; it forms an important boundary between credential parsing and network authentication attempts.
• Main.py
• Sub_SMTP.txt
Authentication Execution and Result Classification
The core execution stage performs SMTP connectivity/authentication attempts for each parsed target/credential combination. It classifies attempts into successful (“Good”) and unsuccessful (“Bad”/failed) outcomes, while maintaining task, remaining-work, and progress counters for the UI. This is the central network-facing and authorization-sensitive boundary.
• Main.py
Reporting and Output Flow
Execution results flow back to the GUI for real-time updates and are retained as good/bad result sets. The README identifies Telegram reporting as an external notification path; report delivery is therefore a separate outbound-service boundary from SMTP testing. Custom HTML letter preview and configurable success-result behavior are also exposed through the UI.
• Main.py
Runtime and Distribution
The project runs on Python with PyQt6 and dependencies installed from requirements.txt; it is launched with python3 Main.py. The repository also documents distribution as a packaged executable via releases, but packaging artifacts are not present in the tree.
• Main.py
• requirements.txt
• README.md
Main entry points: Main.py PyQt6 Dashboard · requirements.txt Python Dependencies · Sub_SMTP.txt SMTP Candidate List
Components 16
Desktop Application
- Application Entry
Main.py - PyQt6 Dashboard · Controls execution and presents live status.
Main.py - Test Settings · Captures SMTP host, port, and result behavior settings.
Main.py - HTML Letter Preview
Main.py - Python Dependencies · Declares PyQt6 and other required packages.
requirements.txt
Inputs & Targeting
- Target List · Contains explicit targets or email/password credentials.
- Record Parser · Skips invalid or empty records.
Main.py - SMTP Candidate List · Supplies SMTP subdomain candidates for discovery.
Sub_SMTP.txt - Target Resolution · Uses explicit targets, configured hosts, or domain discovery.
Main.py
SMTP Execution
- Authentication Work · Credential and host/port combinations awaiting testing.
Main.py - SMTP Authentication · Connects to SMTP endpoints and attempts authentication.
Main.py - SMTP Servers
Results & Reporting
- Outcome Classification · Separates successful Good results from failed Bad results.
Main.py - Good / Bad Results · Retains classified authentication outcomes.
Main.py - Progress & Status · Tracks tasks, remaining work, and progress counters.
Main.py - Telegram Reporting · Sends configured result reports outbound.
Main.py
Connections 18
- Application Entry → PyQt6 Dashboard: starts
- Python Dependencies → Application Entry: runtime packages
- PyQt6 Dashboard → Test Settings: configures
- PyQt6 Dashboard → Target List: selects
- Target List → Record Parser: records
- Record Parser → Target Resolution: credentials and targets
- Test Settings → Target Resolution: configured host/port
- SMTP Candidate List → Target Resolution: discovery candidates
- Target Resolution → Authentication Work: builds attempts
- Authentication Work → SMTP Authentication: executes
- SMTP Authentication → SMTP Servers: connects and authenticates
- SMTP Authentication → Outcome Classification: attempt outcome
- Outcome Classification → Good / Bad Results: stores good or bad
- Outcome Classification → Progress & Status: updates counters
- Progress & Status → PyQt6 Dashboard: live display
- Good / Bad Results → Telegram Reporting: configured report
- Test Settings → HTML Letter Preview: letter content
- HTML Letter Preview → PyQt6 Dashboard: renders in