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