From bee024ba13d6c468f6905d76ec7c50cdb28b75c7 Mon Sep 17 00:00:00 2001 From: Ben Date: Fri, 28 Jul 2017 00:34:02 +1000 Subject: [PATCH] Hope this works --- HTTPy.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/HTTPy.py b/HTTPy.py index 5168916..5e66faa 100755 --- a/HTTPy.py +++ b/HTTPy.py @@ -110,13 +110,14 @@ def parseWhois(whioisInfo): for str in whioisInfo: str = str.strip() if NS.match(str) or D.match(str) or R.match(str) or U.match(str): - if "domain" in str or "Domain" in str and "Name" not in str and "name" not in str: - if "ok" in str or "OK" in str: - print bcolors.GREEN + str + bcolors.RESET + if "domain" in str or "Domain" in str and "Name" not in str: + if "name" not in str and "ID" not in str: + if "ok" in str or "OK" in str: + print bcolors.GREEN + str + bcolors.RESET + else: + print bcolors.RED + str + bcolors.RESET else: - print bcolors.RED + str + bcolors.RESET - else: - print str + print str def whois(inDomain): lookup = subprocess.check_output(["whois", inDomain])