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
|
#URL https://www.whois.com/whois/benjamyn-testing.com
|
||||||
#class df-block-raw
|
#class df-block-raw
|
||||||
|
|
||||||
def iterate(inArray):
|
# def iterate(inArray):
|
||||||
count = 0
|
# count = 0
|
||||||
while count != len(inArray) - 1:
|
# while count != len(inArray) - 1:
|
||||||
print count, inArray[count]
|
# print count, inArray[count]
|
||||||
count = count + 1
|
# count = count + 1
|
||||||
|
|
||||||
def iterateDig(inArray, rec):
|
def iterate(inArray, pre):
|
||||||
count = 0
|
count = 0
|
||||||
while count != len(inArray) - 1:
|
while count != len(inArray) - 1:
|
||||||
print rec, inArray[count]
|
print pre, inArray[count]
|
||||||
count = count + 1
|
count = count + 1
|
||||||
|
|
||||||
def whois(inDomain):
|
def whois(inDomain):
|
||||||
lookup = subprocess.check_output(["whois", inDomain])
|
lookup = subprocess.check_output(["whois", inDomain])
|
||||||
print "========================================================"
|
print "========================================================"
|
||||||
test = lookup.split("\n")
|
test = lookup.split("\n")
|
||||||
iterate(test)
|
iterate(test, "")
|
||||||
|
|
||||||
def dig(inDomain, record):
|
def dig(inDomain, record):
|
||||||
dig = subprocess.check_output(["dig", record, "+short", inDomain])
|
dig = subprocess.check_output(["dig", record, "+short", inDomain])
|
||||||
|
|||||||
2
TODO
2
TODO
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
#TODO: Add the ability to use the command line args to input the domain name
|
#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
|
#TODO: Add shell after lookup
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user