Fixed up local libs and main.py, waiting on whois lib
This commit is contained in:
parent
bb7f62ca86
commit
e7a149781e
@ -1,2 +1,2 @@
|
||||
import files
|
||||
import config
|
||||
from . import files
|
||||
from . import config
|
||||
|
||||
BIN
libs/__pycache__/__init__.cpython-37.pyc
Normal file
BIN
libs/__pycache__/__init__.cpython-37.pyc
Normal file
Binary file not shown.
BIN
libs/__pycache__/cc.cpython-37.pyc
Normal file
BIN
libs/__pycache__/cc.cpython-37.pyc
Normal file
Binary file not shown.
BIN
libs/__pycache__/colours.cpython-37.pyc
Normal file
BIN
libs/__pycache__/colours.cpython-37.pyc
Normal file
Binary file not shown.
BIN
libs/__pycache__/config.cpython-37.pyc
Normal file
BIN
libs/__pycache__/config.cpython-37.pyc
Normal file
Binary file not shown.
BIN
libs/__pycache__/files.cpython-37.pyc
Normal file
BIN
libs/__pycache__/files.cpython-37.pyc
Normal file
Binary file not shown.
@ -1,4 +1,4 @@
|
||||
import files as f
|
||||
from . import files as f
|
||||
import json
|
||||
import os
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@ def openFile(path):
|
||||
try:
|
||||
myFile = open(path)
|
||||
except Exception as e:
|
||||
print e
|
||||
print(e)
|
||||
pass
|
||||
return myFile
|
||||
|
||||
@ -10,6 +10,6 @@ def closeFile(fileObj):
|
||||
try:
|
||||
fileObj.close()
|
||||
except Exception as e:
|
||||
print e
|
||||
print(e)
|
||||
pass
|
||||
|
||||
|
||||
6
main.py
6
main.py
@ -43,8 +43,8 @@ ipData = {"asn_country_code":"Country", "asn_description":"Owner"}
|
||||
CountryDict = cc.parseCSV(cc.openCSV(CSVFile))
|
||||
|
||||
def domainWhois(inData):
|
||||
whoisData = whois.whois(inData).query()
|
||||
return whois.Parser(inData, whoisData[1]).parse()
|
||||
whoisData = whois.whois.Whois(inData).query()
|
||||
return whois.parser.Parser(inData, whoisData[1]).parse()
|
||||
|
||||
def signal_handler(singal, frame):
|
||||
quit()
|
||||
@ -157,5 +157,5 @@ def checkIfIP(in1):
|
||||
signal.signal(signal.SIGINT, signal_handler)
|
||||
|
||||
while running == 1:
|
||||
parseInput(raw_input("Please Enter a domain" + prompt) )
|
||||
parseInput(input("Please Enter a domain" + prompt) )
|
||||
print('\n')
|
||||
|
||||
3
requirments.txt
Normal file
3
requirments.txt
Normal file
@ -0,0 +1,3 @@
|
||||
dnspython
|
||||
ipwhois
|
||||
readline
|
||||
Loading…
x
Reference in New Issue
Block a user