diff --git a/Checklist b/Checklist new file mode 100644 index 0000000..4c158f7 --- /dev/null +++ b/Checklist @@ -0,0 +1,22 @@ +Whois + relevent domain +Checks entire records (ALL) +Checks all four versions of site with http codes +Gets nameservers +SOA check againset primary namserver ++ns for check +if fault then use 8.8.8.8 +check PTR +Gets MX records then IP (2 per record) +Gets PTR records (up to 12) + +creates socker to port 25 to check response +Get spf record, parses and checks records +Looks for all A records and lists ip's and pings with ptr record + +Checks SPF against known records + +dns propagation + +Checks for invalid zone by comparing versions + +Get ABN for .au \ No newline at end of file diff --git a/HTTPy.py b/HTTPy.py old mode 100755 new mode 100644 index 1234d33..4bca52a --- a/HTTPy.py +++ b/HTTPy.py @@ -1,23 +1,24 @@ #!/bin/python2.7 -#Loockup jsonWhois.com, easy json API for whois lookups ;D +#Lookup jsonWhois.com, easy json API for whois lookups ;D #Might need to run this in windows/on laptop/ in VM from HTMLParser import HTMLParser import httplib import argparse import subprocess +import re # YAY REVERSE ENGINEER... wait its just regex + +#Made this work with linux magic -#Make this work with linux magic - -count = 0 - +# OLD SHIT PLZ REMOVE currtag = "" conf_temp = "pre" +inInput = "" #URL https://www.whois.com/whois/benjamyn-testing.com #class df-block-raw - +print("Domain: ") class MyHTMLParser(HTMLParser): def handle_starttag(self, tag, attrs): @@ -41,22 +42,42 @@ class MyHTMLParser(HTMLParser): #print starttag if currtag == conf_temp: print data - -domain = raw_input("Enter a domain: ") -print domain -partDomain = domain.partition(".") -print partDomain + +def iterate(inArray): + count = 0 + while count != len(inArray): + print count, inArray[count] + count = count + 1 + + +def whois(inDomain): + lookup = subprocess.check_output(["whois", inDomain]) + print "========================================================" + test = lookup.split("\n") + iterate(test) + +def dig(inDomain): + dig = subprocess.check_output(["dig", "A", "+short", inDomain]) + print "========================================================" #ADD REST OF DIGS + test = dig.split("\n") + iterate(test) + +def getInput(): + global inInput + inInput = raw_input() + + #if partDomain[2] != "": #run code #else tell user they suck :D -lookup = subprocess.check_output(["whois", domain]) -print "========================================================" -test = lookup.split("\n") +print "Domain: " +getInput() +whois(inInput) -while count != len(test): - print count, test[count] - count = count + 1 +# tmp = raw_input() +# whois(tmp) +# dig(tmp) #conn = httplib.HTTPSConnection("www.whois.com") #conn.request("GET", "/whois/" + domain) @@ -65,4 +86,7 @@ while count != len(test): #parser.feed(r1.read()) - +# Debugs +# print domain +# partDomain = domain.partition(".") +# print partDomain \ No newline at end of file diff --git a/TOTO b/TOTO deleted file mode 120000 index 30404ce..0000000 --- a/TOTO +++ /dev/null @@ -1 +0,0 @@ -TODO \ No newline at end of file diff --git a/TOTO b/TOTO new file mode 100644 index 0000000..6cb09e3 --- /dev/null +++ b/TOTO @@ -0,0 +1,23 @@ +#TODO: Trim unwanted data, it is setup as a string now :D + +#TODO: Add input to ask domain - Kinda implemented, needs work and validation + +#TODO: Implement TLD/gTLD lists to check against. + +#TODO: Add the ability to use the command line args to input the domain name + +#TODO: Add Linux superiority mode :D + +#TODO: Add shell after lookup + +#TODO: LEARN REGEX + +#TODO: Add extra nice features + #Full DNS record lookup + #VentraIP Nameserver identifier + #VentraIP SSHer + #SPF Validator + #Ping utility + #Not my problem indicator (If the nameservers are not ours + the A records not ours + the mail. record is not ours and the domain is not ours then the customer can get fucked) + #Get some sleep :( its 2AM + #Add more to the TODO list