Fixed shit code
This commit is contained in:
parent
32c77da17c
commit
ad2e7bb76f
16
HTTPy.py
16
HTTPy.py
@ -15,23 +15,23 @@ running = 1
|
||||
#URL https://www.whois.com/whois/benjamyn-testing.com
|
||||
#class df-block-raw
|
||||
|
||||
def iterate(inArray):
|
||||
count = 0
|
||||
while count != len(inArray) - 1:
|
||||
print count, inArray[count]
|
||||
count = count + 1
|
||||
# def iterate(inArray):
|
||||
# count = 0
|
||||
# while count != len(inArray) - 1:
|
||||
# print count, inArray[count]
|
||||
# count = count + 1
|
||||
|
||||
def iterateDig(inArray, rec):
|
||||
def iterate(inArray, pre):
|
||||
count = 0
|
||||
while count != len(inArray) - 1:
|
||||
print rec, inArray[count]
|
||||
print pre, inArray[count]
|
||||
count = count + 1
|
||||
|
||||
def whois(inDomain):
|
||||
lookup = subprocess.check_output(["whois", inDomain])
|
||||
print "========================================================"
|
||||
test = lookup.split("\n")
|
||||
iterate(test)
|
||||
iterate(test, "")
|
||||
|
||||
def dig(inDomain, record):
|
||||
dig = subprocess.check_output(["dig", record, "+short", inDomain])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user