diff --git a/HTTPy.py b/HTTPy.py index a00f001..db4e3cd 100755 --- a/HTTPy.py +++ b/HTTPy.py @@ -106,10 +106,11 @@ def parseWhois(whioisInfo): D = re.compile("^[Dd]") R = re.compile("^[Rr]") U = re.compile("^[Uu]") + S = re.compile("Status") for str in whioisInfo: 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) S.match(str): 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: @@ -192,11 +193,4 @@ while running == 1: dig(inInput, "SRV") soaRec = dig(inInput, "SOA") print compareSOA(test, inInput, soaRec) - print '\n' - - -# for whois use if "string" in to filter the output -# -# -# -# \ No newline at end of file + print '\n' \ No newline at end of file