hannob / snallygaster

Tool to scan for secret files on HTTP servers
BSD Zero Clause License
2.07k stars 228 forks source link

too long / invalid hostname gives unhandled UnicodeError exception #50

Closed hannob closed 4 years ago

hannob commented 4 years ago

Example:

snallygaster $(seq -s '' 500)

This produces an unhandled UnicodeError exception:

UnicodeError: encoding with 'idna' codec failed (UnicodeError: label too long)

We should handle this with a proper error message.

hannob commented 4 years ago

Fixed by https://github.com/hannob/snallygaster/commit/a7392b7dcabbc933fcd71f6d48a4869d62a2f202