From 4a50b40e31602456579854d2a0c69a83fcdb0cf9 Mon Sep 17 00:00:00 2001 From: Benajmyn Love Date: Fri, 28 Jul 2017 11:15:46 +1000 Subject: [PATCH] Hopefully fixed AU domain status --- HTTPy.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) 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