Hope this works
This commit is contained in:
parent
b52d5764fb
commit
bee024ba13
13
HTTPy.py
13
HTTPy.py
@ -110,13 +110,14 @@ def parseWhois(whioisInfo):
|
|||||||
for str in whioisInfo:
|
for str in whioisInfo:
|
||||||
str = str.strip()
|
str = str.strip()
|
||||||
if NS.match(str) or D.match(str) or R.match(str) or U.match(str):
|
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 "domain" in str or "Domain" in str and "Name" not in str:
|
||||||
if "ok" in str or "OK" in str:
|
if "name" not in str and "ID" not in str:
|
||||||
print bcolors.GREEN + str + bcolors.RESET
|
if "ok" in str or "OK" in str:
|
||||||
|
print bcolors.GREEN + str + bcolors.RESET
|
||||||
|
else:
|
||||||
|
print bcolors.RED + str + bcolors.RESET
|
||||||
else:
|
else:
|
||||||
print bcolors.RED + str + bcolors.RESET
|
print str
|
||||||
else:
|
|
||||||
print str
|
|
||||||
|
|
||||||
def whois(inDomain):
|
def whois(inDomain):
|
||||||
lookup = subprocess.check_output(["whois", inDomain])
|
lookup = subprocess.check_output(["whois", inDomain])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user