elceef / dnstwist

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

Explicit use of os module with path.exists method #152

Closed Ekwen closed 2 years ago

Ekwen commented 2 years ago

Error message is displayed when used with --tld or -d options (basically when it accesses a file).

"dnstwist.py", line 956, in run if not path.exists(args.tld): NameError: name 'path' is not defined

I checked the commits to see you updated the import os module (1d1c92685c973c172afd749e4f9a14f7ccb45ee9). Changed line 949 and 956 to

949 : if not os.path.exists(args.dictionary):
956 : if not os.path.exists(args.tld):
elceef commented 2 years ago

Thank you.