Made whois less intrusive
This commit is contained in:
parent
ca5b11186b
commit
245e98d8b8
13
HTTPy.py
13
HTTPy.py
@ -108,17 +108,16 @@ def whois(inDomain):
|
||||
|
||||
def dig(inDomain, record):
|
||||
dig = subprocess.check_output(["dig", record, "+short", inDomain])
|
||||
print "========================================================" #ADD REST OF DIGS
|
||||
print "========================================================"
|
||||
test = dig.split("\n")
|
||||
#print record, test[0]
|
||||
iterate(test, record) #fix up mutiple record types...
|
||||
iterate(test, record)
|
||||
return test
|
||||
|
||||
def ipLookup(inDomain):
|
||||
host = "N/A"
|
||||
ipLook = subprocess.check_output(["geoiplookup", inDomain])
|
||||
try:
|
||||
host = subprocess.check_output(["host", inDomain]) #Do exit status check...
|
||||
host = subprocess.check_output(["host", inDomain])
|
||||
returncode = 0
|
||||
except subprocess.CalledProcessError as e:
|
||||
output = e.output
|
||||
@ -155,14 +154,12 @@ while running == 1:
|
||||
if pingOn == "P":
|
||||
print "========================================================"
|
||||
ipPing(inInput)
|
||||
else:
|
||||
pass
|
||||
|
||||
else:
|
||||
if whoOn == "W":
|
||||
whois(inInput)
|
||||
|
||||
else:
|
||||
pass
|
||||
|
||||
#Condense dig calls
|
||||
dig(inInput, "A")
|
||||
dig(inInput, "MX")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user