Added MX record fix
This commit is contained in:
parent
f0bd0babde
commit
c784deb997
22
HTTPy.py
22
HTTPy.py
@ -141,6 +141,20 @@ def iterate(inArray, pre):
|
|||||||
else:
|
else:
|
||||||
print bcolors.CYAN + pre, bcolors.GREEN + inArray[count] + bcolors.RESET
|
print bcolors.CYAN + pre, bcolors.GREEN + inArray[count] + bcolors.RESET
|
||||||
count = count + 1
|
count = count + 1
|
||||||
|
|
||||||
|
|
||||||
|
def iterateMX(inArray, pre):
|
||||||
|
count = 0
|
||||||
|
while count != len(inArray) - 1:
|
||||||
|
tmp = inArray[count].split(' ')
|
||||||
|
if checkIfIP(tmp.split('.')) == 0:
|
||||||
|
tmpVal = isCNAME(tmp[1])
|
||||||
|
|
||||||
|
print bcolors.CYAN + pre, bcolors.GREEN + inArray[count] + " -> " + tmpVal[0] + bcolors.RESET
|
||||||
|
else:
|
||||||
|
print bcolors.CYAN + pre, bcolors.GREEN + inArray[count] + bcolors.RESET
|
||||||
|
count = count + 1
|
||||||
|
|
||||||
def parseWhois(whioisInfo):
|
def parseWhois(whioisInfo):
|
||||||
NS = re.compile("^[Nn]")
|
NS = re.compile("^[Nn]")
|
||||||
D = re.compile("^[Dd]")
|
D = re.compile("^[Dd]")
|
||||||
@ -257,6 +271,10 @@ while running == 1:
|
|||||||
iterate(subRec, subDomain)
|
iterate(subRec, subDomain)
|
||||||
for rec in rec2check:
|
for rec in rec2check:
|
||||||
if rec != "":
|
if rec != "":
|
||||||
dnsRec, dnsType, blank = newdig(inInput, rec)
|
if rec == "MX":
|
||||||
iterate(dnsRec, dnsType)
|
dnsRec, dnsType, blank = newdig(inInput, rec)
|
||||||
|
iterateMX(dnsRec, dnsType)
|
||||||
|
else:
|
||||||
|
dnsRec, dnsType, blank = newdig(inInput, rec)
|
||||||
|
iterate(dnsRec, dnsType)
|
||||||
print '\n'
|
print '\n'
|
||||||
Loading…
x
Reference in New Issue
Block a user