How elceef/dnstwist works
dnstwist is a domain-lookalike and threat-intelligence scanner: a user supplies a domain, the tool generates permutations, checks them through DNS, and presents or exports scan results. Optional analysis adds GeoIP, rogue-MX checks, HTML fuzzy-hash comparison, and screenshot perceptual hashes. The web app wraps the scanner in managed scan sessions and HTTP endpoints. Core scanner internals were not sampled, so their decomposition and links rely on README statements; the web-app links are visible in its source.
Main entry points: webapp.py Scan session · dnstwist.py Domain fuzzer · webapp.html Web interface · dictionaries Word and TLD lists
Components 23
Domain scanning
- CLI and API
dnstwist.py - URL parsing
dnstwist.py - Domain fuzzer
dnstwist.py - Fuzz algorithms
dnstwist.py - Scan workers
dnstwist.py - DNS lookups
dnstwist.py
Threat analysis
- Rogue MX checks
dnstwist.py - GeoIP lookup
dnstwist.py - Webpage fetch
dnstwist.py - HTML similarity
dnstwist.py - Screenshot capture
dnstwist.py - Visual similarity
dnstwist.py
Results
- Result formatting
dnstwist.py
Web application
- Web interface
webapp/webapp.html - Scan API
webapp/webapp.py - Scan session
webapp/webapp.py
Permutation data
- Word and TLD lists
dictionaries
Other components
- User
- DNS resolvers
- GeoIP database
- Candidate websites
- Chromium
- Browser user
Connections 27
- User → CLI and API: provides domain
README.md - CLI and API → URL parsing: parses input
README.md - URL parsing → Domain fuzzer: supplies domain
README.md - Domain fuzzer → Fuzz algorithms: generates variants
README.md - Domain fuzzer → Word and TLD lists: uses word lists
README.md - Domain fuzzer → Scan workers: distributes variants
README.md - Scan workers → DNS lookups: checks domains
README.md - DNS lookups → DNS resolvers: queries
README.md - DNS lookups → Rogue MX checks: checks mail hosts
README.md - DNS lookups → GeoIP lookup: locates addresses
README.md - GeoIP lookup → GeoIP database: reads database
README.md - Scan workers → Webpage fetch: fetches pages
README.md - Webpage fetch → Candidate websites: requests pages
README.md - Webpage fetch → HTML similarity: compares content
README.md - Webpage fetch → Screenshot capture: captures pages
README.md - Screenshot capture → Chromium: uses headless mode
README.md - Screenshot capture → Visual similarity: produces image
README.md - CLI and API → Result formatting: formats results
README.md - Result formatting → User: exports results
README.md - Browser user → Web interface: uses interface
- Web interface → Scan API: requests scans
- Scan API → Scan session: creates session
webapp/webapp.py - Scan session → URL parsing: parses URL
webapp/webapp.py - Scan session → Domain fuzzer: generates variants
webapp/webapp.py - Scan session → Scan workers: starts workers
webapp/webapp.py - Scan session → Result formatting: formats exports
webapp/webapp.py - Scan API → Scan session: serves status and results
webapp/webapp.py