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])