From b274aa52ad97b91c40104b0c41a89d5bd76ae35f Mon Sep 17 00:00:00 2001 From: Benajmyn Love Date: Fri, 2 Jun 2017 05:03:26 +1000 Subject: [PATCH] fixed iterate function --- HTTPy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HTTPy.py b/HTTPy.py index 3ddd39e..63663dd 100755 --- a/HTTPy.py +++ b/HTTPy.py @@ -14,7 +14,7 @@ partDomain = "" def iterate(inArray): count = 0 - while count != len(inArray): + while count != len(inArray) - 1: print count, inArray[count] count = count + 1 @@ -30,7 +30,7 @@ def dig(inDomain, record): print "========================================================" #ADD REST OF DIGS test = dig.split("\n") print record, test[0] - print len(test) #fix up mutiple record types... + iterate(test) #fix up mutiple record types... def ipLookup(inDomain): host = "N/A"