I did a bad :) and no commits happened
This commit is contained in:
parent
64295fbbd7
commit
7d06f96872
22
Checklist
Normal file
22
Checklist
Normal file
@ -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
|
||||
58
HTTPy.py
Executable file → Normal file
58
HTTPy.py
Executable file → Normal file
@ -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 <FUCK WANDOWS>
|
||||
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):
|
||||
@ -42,21 +43,41 @@ class MyHTMLParser(HTMLParser):
|
||||
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
|
||||
23
TOTO
Normal file
23
TOTO
Normal file
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user