fixed some py3 errors
This commit is contained in:
parent
e7a149781e
commit
2057d2a3fd
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.
BIN
libs/config.pyc
BIN
libs/config.pyc
Binary file not shown.
BIN
libs/files.pyc
BIN
libs/files.pyc
Binary file not shown.
3
main.py
3
main.py
@ -123,6 +123,7 @@ 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)
|
||||||
@ -139,6 +140,8 @@ 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):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user