fixed some py3 errors

This commit is contained in:
benjamyn committed 2018-09-02 15:58:57 +10:00
1 parent e7a149781e
commit 2057d2a3fd
6 files changed
+3

No files matched your search

BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+3
View File
@@ -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):