elceef / dnstwist

Domain name permutation engine for detecting homograph phishing attacks, typo squatting, and brand impersonation
https://dnstwist.it
Apache License 2.0
4.85k stars 767 forks source link

TLD not working correctly #165

Closed wizardlevel9 closed 2 years ago

wizardlevel9 commented 2 years ago

I recently realised that the TLD is not being sustituted with available TLD domains.

This isn't working with or without the --tld python3 dnstwist.py google.com -f list | grep -i shop python3 dnstwist.py --tld TLDs.txt google.com -f list | grep -i shop

For example, I would expect that the commands above would output google.shop as ".shop" is a TLD. Viewing the output, it seems that the TLD is being used as a subdomain prefix rather than as a TLD replacement.

It would be good if dnstwist could also replace the domains TLD with those in the TLD list.

elceef commented 2 years ago

I can't reproduce this issue on my end:

$ cat /tmp/tld.dict 
shop
$ ./dnstwist.py --tld /tmp/tld.dict -r google.com -f list | grep -i shop
google.shop
wizardlevel9 commented 2 years ago

My apologies, this behaviour is only on MacOS. It works as expected on Linux.