Skip to content

Commit

Permalink
fixed tldextract issue with ip targets
Browse files Browse the repository at this point in the history
  • Loading branch information
thewhiteh4t committed Dec 9, 2023
1 parent 6cd9bf4 commit 18dff93
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions finalrecon.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,10 @@ def banner():

print(f'{G}[+] {C}Target : {W}{target}')
ext = tldextract.extract(target)
print(ext)
domain = ext.registered_domain
if not domain:
domain = ext.domain
domain_suffix = ext.suffix

if ext.subdomain:
Expand Down

0 comments on commit 18dff93

Please sign in to comment.