From ed7ebeab01251ae3c159c7d22cc89b58bd0ddf79 Mon Sep 17 00:00:00 2001 From: Benajmyn Love Date: Fri, 2 Jun 2017 09:05:37 +1000 Subject: [PATCH] Added record to dig, hopefully --- HTTPy.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/HTTPy.py b/HTTPy.py index 42cc6ed..9da48de 100755 --- a/HTTPy.py +++ b/HTTPy.py @@ -18,6 +18,11 @@ def iterate(inArray): print count, inArray[count] count = count + 1 +def iterate(inArray, rec): + count = 0 + while count != len(inArray) - 1: + print rec, inArray[count] + count = count + 1 def whois(inDomain): lookup = subprocess.check_output(["whois", inDomain]) @@ -30,7 +35,7 @@ def dig(inDomain, record): print "========================================================" #ADD REST OF DIGS test = dig.split("\n") #print record, test[0] - iterate(test) #fix up mutiple record types... + iterate(test, record) #fix up mutiple record types... def ipLookup(inDomain): host = "N/A"