Added whois option

This commit is contained in:
Benjamyn Love 2017-06-21 08:07:07 +10:00
parent 76ecb42502
commit 9a22471010

View File

@ -8,7 +8,7 @@ inInput = ""
partDomain = ""
running = 1
pingOn = "P"
whoOn = "w"
whoOn = "W"
def iterate(inArray, pre):
@ -64,6 +64,11 @@ while running == 1:
pingOn = "p"
else:
pingOn = "P"
if inInput == "whois":
if pingOn == "W":
pingOn = "w"
else:
pingOn = "W"
if inInput == "" or inInput == "ping" or inInput == "whois":
pass
else:
@ -76,8 +81,12 @@ while running == 1:
ipPing(inInput)
else:
pass
if whoOn == "W":
whois(inInput)
else:
pass
else:
whois(inInput)
#whois(inInput)
#Condense dig calls
dig(inInput, "A")
dig(inInput, "MX")