Skip to content

Conversation

@eMi-
Copy link

@eMi- eMi- commented Oct 16, 2025

This PR fixes two issues:

  1. DNSDumpster CSRF parsing & blocking

    • Replaces brittle token extraction with tolerant parsing (input + regex fallback).
    • Adds realistic Session headers (UA + Referer).
    • Returns a structured empty result on failure instead of [] to avoid type errors.
    • Emits a clear message ("CSRF token not found…") when blocked (captcha/Tor/VPN).
  2. Subdomain scan progress ZeroDivisionError

    • When the wordlist has < 100 entries, the progress step calculation produced 0 → c % 0 crash.
    • Use step = max(1, int(numOfLines/100.0)) to prevent modulo-by-zero.
    • Also reads the same file for count + scan, adds small timeouts on HTTP checks.

Tested on Parrot/Kali (Python3), with/without Tor.
No behavior change on successful paths; only more robust error handling.

eMi- added 4 commits October 16, 2025 09:37
Added headers to the session to reduce blocking and improve request handling. Enhanced CSRF token extraction and error handling for network requests.
Refactor DNS record handling to use safer dictionary access methods and improve readability.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant