elceef / dnstwist

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

Better support with IDN #189

Closed thib-d closed 11 months ago

thib-d commented 1 year ago

Hi,

When I am using the tool with example.fr, DnsTwist is suggesting ɇxample.fr.

However with the TLD ".fr", "ɇ" is not a valid character -> https://www.afnic.fr/wp-media/uploads/2020/12/Afnic-Registration-Rules-1-and-2-characters.pdf

Could we adapt the tool to suggest only approved characters for the TLD suggested. Thanks

elceef commented 1 year ago

The homoglyph fuzzer has been extended. I added dedicated look-alike character mapping for .fr and other popular country-code TLD, including a few which does not support IDN (in such a case the mapping is simply empty). On top of this, I extended the generic map with more similar looking characters which should further improve the coverage. Please pull the most recent code and let me know if you're happy with this change.