Fixed shit code

This commit is contained in:
Benjamyn Love 2017-06-04 02:17:35 +10:00
parent 32c77da17c
commit ad2e7bb76f
2 changed files with 9 additions and 9 deletions

View File

@ -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])

2
TODO
View File

@ -6,7 +6,7 @@
#TODO: Add the ability to use the command line args to input the domain name
#TODO: Add Linux superiority mode :D
#DONE: Add Linux superiority mode :D, Removed win compat entirely
#TODO: Add shell after lookup