Commit graph

16 commits

Author SHA1 Message Date
taygun
3a846634d5 Refactor: eliminate redundant DNS lookups, duplicate code, and stale comments
- Move regex compilation to package level (was recompiled per call)
- Fetch takeover fingerprints once instead of per-domain HTTP request
- Fix defer resp.Body.Close() leak inside loop (extract fetchDomainBody)
- Store SPF text in ParsedIncludeRecord to avoid re-fetching in debug
- Extract preferIPv4() and mechanismCount() to deduplicate repeated patterns
- Remove dead allocation in parseSPFRecord
- Replace writeToFile wrapper with os.WriteFile
- Remove dead output file logic in processDomainFile
- Clean up ~25 stale/unnecessary comments

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 16:42:29 +03:00
taygun08
3800aa7ad9
Delete spoof_check 2025-04-08 13:21:57 +03:00
taygun08
5cd97130be
Update README.md
just link fix
2025-04-07 15:54:31 +03:00
taygun08
269307756d fix 2025-04-07 15:53:36 +03:00
taygun08
cba74b1a31 fix 2025-04-07 15:52:37 +03:00
taygun08
6473b739f6 fix 2025-04-07 15:52:19 +03:00
taygun08
5207862fc9
Update README.md 2025-04-07 15:49:32 +03:00
taygun08
2451c0aaf1 Bora Doğru forced me to make it suitable for go install use. 2025-04-07 15:48:52 +03:00
taygun08
ad372aa2bd debug parameter added 2025-04-07 10:50:41 +03:00
taygun08
2f7b1818d0 debug mode added + spf macros added 2025-04-07 10:50:27 +03:00
taygun08
6c8323ff02 untested info added 2025-04-06 19:56:35 +03:00
taygun08
ad1fcedc13 recommendations delete. 2025-04-06 19:54:48 +03:00
taygun08
95f7ea05ec add subtakeover parameter https://redsift.com/guides/subdomailing-guide 2025-04-06 19:50:48 +03:00
taygun08
3e1ec45980
Update README.md
add txt output example
2025-04-05 20:10:25 +03:00
taygun08
cfe997f221
Add files via upload 2025-04-05 20:08:19 +03:00
taygun08
b4f50c34fd
Initial commit 2025-04-05 20:07:55 +03:00