Compare commits
No commits in common. "2to3" and "master" have entirely different histories.
@ -1,2 +1,2 @@
|
|||||||
from . import files
|
import files
|
||||||
from . import config
|
import config
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
libs/cc.pyc
BIN
libs/cc.pyc
Binary file not shown.
BIN
libs/colours.pyc
BIN
libs/colours.pyc
Binary file not shown.
@ -1,4 +1,4 @@
|
|||||||
from . import files as f
|
import files as f
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|||||||
BIN
libs/config.pyc
BIN
libs/config.pyc
Binary file not shown.
@ -2,7 +2,7 @@ def openFile(path):
|
|||||||
try:
|
try:
|
||||||
myFile = open(path)
|
myFile = open(path)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print e
|
||||||
pass
|
pass
|
||||||
return myFile
|
return myFile
|
||||||
|
|
||||||
@ -10,6 +10,6 @@ def closeFile(fileObj):
|
|||||||
try:
|
try:
|
||||||
fileObj.close()
|
fileObj.close()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print e
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
BIN
libs/files.pyc
BIN
libs/files.pyc
Binary file not shown.
9
main.py
9
main.py
@ -43,8 +43,8 @@ ipData = {"asn_country_code":"Country", "asn_description":"Owner"}
|
|||||||
CountryDict = cc.parseCSV(cc.openCSV(CSVFile))
|
CountryDict = cc.parseCSV(cc.openCSV(CSVFile))
|
||||||
|
|
||||||
def domainWhois(inData):
|
def domainWhois(inData):
|
||||||
whoisData = whois.whois.Whois(inData).query()
|
whoisData = whois.whois(inData).query()
|
||||||
return whois.parser.Parser(inData, whoisData[1]).parse()
|
return whois.Parser(inData, whoisData[1]).parse()
|
||||||
|
|
||||||
def signal_handler(singal, frame):
|
def signal_handler(singal, frame):
|
||||||
quit()
|
quit()
|
||||||
@ -123,7 +123,6 @@ def lookupDomain(inData):
|
|||||||
subLookup(inData, subs)
|
subLookup(inData, subs)
|
||||||
|
|
||||||
def lookupIP(inData):
|
def lookupIP(inData):
|
||||||
try:
|
|
||||||
with warnings.catch_warnings():
|
with warnings.catch_warnings():
|
||||||
warnings.filterwarnings("ignore", category=UserWarning)
|
warnings.filterwarnings("ignore", category=UserWarning)
|
||||||
ipnet = Net(inData)
|
ipnet = Net(inData)
|
||||||
@ -140,8 +139,6 @@ def lookupIP(inData):
|
|||||||
except Exception as E:
|
except Exception as E:
|
||||||
reverseName = E
|
reverseName = E
|
||||||
print('\n' + indent + '%sPTR:%s\t\t%s%s' % (colour_pretty, colour_good, reverseName, colour_default))
|
print('\n' + indent + '%sPTR:%s\t\t%s%s' % (colour_pretty, colour_good, reverseName, colour_default))
|
||||||
except:
|
|
||||||
None
|
|
||||||
|
|
||||||
# Taken and modified from DNSpy 1, I am not asahmed it works
|
# Taken and modified from DNSpy 1, I am not asahmed it works
|
||||||
def checkIfIP(in1):
|
def checkIfIP(in1):
|
||||||
@ -160,5 +157,5 @@ def checkIfIP(in1):
|
|||||||
signal.signal(signal.SIGINT, signal_handler)
|
signal.signal(signal.SIGINT, signal_handler)
|
||||||
|
|
||||||
while running == 1:
|
while running == 1:
|
||||||
parseInput(input("Please Enter a domain" + prompt) )
|
parseInput(raw_input("Please Enter a domain" + prompt) )
|
||||||
print('\n')
|
print('\n')
|
||||||
|
|||||||
@ -1,3 +0,0 @@
|
|||||||
dnspython
|
|
||||||
ipwhois
|
|
||||||
readline
|
|
||||||
Loading…
x
Reference in New Issue
Block a user