Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
noptrix committed Jan 6, 2021
2 parents 2a863be + bf487b0 commit ddc052c
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 19 deletions.
6 changes: 6 additions & 0 deletions docs/TODO
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ ChangeLog and TODO list for nullscan
[ ] update man-page. add more infos etc. currently it's minimalistic


===> 1.0.1

[x] bugfix: add try/except for now @ ipwhois if internal ip gets leaked. i
will deal with this leaked data, later.


===> 1.0.0

[x] testing for 1.0.0 release
Expand Down
2 changes: 1 addition & 1 deletion src/core/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@


# nullscan version banner
VERSION = 'nullscan v1.0.0'
VERSION = 'nullscan v1.0.1'

# our own (exit) error codes
SUCCESS = 0
Expand Down
1 change: 0 additions & 1 deletion src/modules/host/whois.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ def whois_cidr(self):
results = list(sorted(set(results)))
self._log('whois_cidr', results, data_end='\n')


return


Expand Down
37 changes: 20 additions & 17 deletions src/modules/libs/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,24 +594,27 @@ def _whois(self, _type, target=None):
""" perform whois on domain or ipv4 addr """

res = []
if target:
if _type == 'domain':
res.append(whois.whois(target))
else:
obj = IPWhois(target)
res.append(obj.lookup_rdap(depth=1))
else:
if _type == 'domain':
log = self._read_log('domainname')
try:
if target:
if _type == 'domain':
res.append(whois.whois(target))
else:
obj = IPWhois(target)
res.append(obj.lookup_rdap(depth=1))
else:
log = self._read_log('ipv4addr')
for target in log:
if target:
if _type == 'domain':
res.append(whois.whois(target))
else:
obj = IPWhois(target)
res.append(obj.lookup_rdap(depth=1))
if _type == 'domain':
log = self._read_log('domainname')
else:
log = self._read_log('ipv4addr')
for target in log:
if target:
if _type == 'domain':
res.append(whois.whois(target))
else:
obj = IPWhois(target)
res.append(obj.lookup_rdap(depth=1))
except:
pass

return res

Expand Down

0 comments on commit ddc052c

Please sign in to comment.