Moved to new dig system

This commit is contained in:
Benjamyn Love 2017-08-12 22:06:01 +10:00
parent 93679da81d
commit a6d5f3026d

View File

@ -18,7 +18,7 @@ class bcolors:
inInput = ""
partDomain = ""
running = 1
pingOn = "P"
pingOn = "p"
whoOn = "W"
phrases = ["ping", "whois", "quit", "clear", "help", "nameserver"]
@ -201,12 +201,17 @@ while running == 1:
if whoOn == "W":
whois(inInput)
#Condense dig calls
test1, test2 = newdig(inInput, "A")
iterate(test1, test2)
dig(inInput, "MX")
dig(inInput, "TXT")
test = dig(inInput, "NS")
dig(inInput, "SRV")
soaRec = dig(inInput, "SOA")
print compareSOA(test, inInput, soaRec)
aRec, aType = newdig(inInput, "A")
iterate(aRec, aType)
mxRec, mxType = newdig(inInput, "MX")
iterate(mxRec, mxType)
txtRec, txtType = newdig(inInput, "TXT")
iterate(txtRec, txtType)
nsRec, nsType = newdig(inInput, "NS")
iterate(nsRec, nsType)
srvRec, srvType = newdig(inInput, "SRV")
iterate(srvRec, srvType)
soaRec, soaType = newdig(inInput, "SOA")
iterate(soaRec, soaType)
print compareSOA(nsRec, inInput, soaRec)
print '\n'