diff --git a/HTTPy.py b/HTTPy.py old mode 100644 new mode 100755 index 820e743..a38ff09 --- a/HTTPy.py +++ b/HTTPy.py @@ -9,6 +9,7 @@ import re # YAY REVERSE ENGINEER... wait its just regex #Made this work with linux magic inInput = "" +partDomain = "" #URL https://www.whois.com/whois/benjamyn-testing.com #class df-block-raw @@ -34,9 +35,16 @@ def dig(inDomain): test = dig.split("\n") iterate(test) +def ipLookup(inDomain): + ipLook = subprocess.check_output(["geoiplookup", inDomain]) + host = subprocess.check_output(["host", inDomain]) #Do exit status check... + print ipLook, "PTR: ", host + def getInput(): global inInput + global partDomain inInput = raw_input() + partDomain = inInput.partition(".") #if partDomain[2] != "": @@ -45,7 +53,10 @@ def getInput(): print "Domain: " getInput() -whois(inInput) +if len(partDomain) == 3: + ipLookup(inInput) + +#whois(inInput) # tmp = raw_input() # whois(tmp) diff --git a/TODO b/TODO index 6cb09e3..f663253 100644 --- a/TODO +++ b/TODO @@ -12,10 +12,12 @@ #TODO: LEARN REGEX +#TODO: ADD GEOIP LOOKUPS + HOST COMMAND + #TODO: Add extra nice features #Full DNS record lookup - #VentraIP Nameserver identifier - #VentraIP SSHer + #COMPANY Nameserver identifier + #COMPANY 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)