netanelcyber / netanelcyber/AdPentestAI-Python
Email: Advanced MX record discovery and port scanning
Open
@tenten48tenten is already working on this.
Since Sep 16, 2026.
email-enumeration
enhancement
help-wanted
v1.1.0
- Dominant language
- Python
- Stars
- 5
- Forks
- 2
- Avg merge
- 22h 25m
- Merged PRs (30d)
- 7
Description
Description
Enhance email server discovery with comprehensive MX record resolution and multi-port scanning.
Enhancements
-
MX Record Discovery
- Query MX records for domain
- Follow MX priorities
- Resolve MX hostnames to IPs
- Handle MX chains (backup servers)
- Detect cloud email providers (Office365, Google Workspace)
-
Port Scanning
- Standard SMTP ports: 25, 465, 587
- POP3 ports: 110, 995
- IMAP ports: 143, 993
- EWS endpoint detection (443)
- ActiveSync (443)
-
Service Fingerprinting
- Banner grabbing for each port
- TLS certificate inspection
- Service version detection
- Capabilities detection (SMTP EHLO, POP3 CAPA, IMAP CAPABILITY)
-
Cloud Detection
- Office365 identification (outlook.office365.com)
- Google Workspace detection
- Other cloud providers
- Hybrid configurations
Implementation
- Enhance:
discover_email_servers()function - Add: MX resolution and prioritization
- Add: Concurrent port scanning
- Add: Service fingerprinting functions
Files to Update
adpentest/core.py- Email discovery functions
Success Criteria
- MX record discovery accurate for 99% of domains
- Port scanning complete in < 30 seconds
- Accurate cloud provider detection
- Service version identification
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.