fixed some py3 errors

This commit is contained in:
Benjamyn Love 2018-09-02 15:58:57 +10:00
parent e7a149781e
commit 2057d2a3fd
6 changed files with 19 additions and 16 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -123,6 +123,7 @@ def lookupDomain(inData):
subLookup(inData, subs)
def lookupIP(inData):
try:
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=UserWarning)
ipnet = Net(inData)
@ -139,6 +140,8 @@ def lookupIP(inData):
except Exception as E:
reverseName = E
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
def checkIfIP(in1):