From 18dff93721944b09f148a361c8d1baef4a20e96f Mon Sep 17 00:00:00 2001 From: thewhiteh4t Date: Sun, 10 Dec 2023 02:06:14 +0530 Subject: [PATCH] fixed tldextract issue with ip targets --- finalrecon.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/finalrecon.py b/finalrecon.py index ffb13bb..d0bd9a8 100644 --- a/finalrecon.py +++ b/finalrecon.py @@ -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: