Add bytesToStr()
Automatically convert list into strings in appendRow() Add package information
This commit is contained in:
1
plugins/post_analysis/__init__.py
Normal file
1
plugins/post_analysis/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
#
|
@@ -19,9 +19,12 @@ def load():
|
||||
def hook(iwla):
|
||||
hits = iwla.getValidVisitors()
|
||||
for (k, hit) in hits.items():
|
||||
if hit.get('dns_analysed', False): continue
|
||||
try:
|
||||
name, _, _ = socket.gethostbyaddr(k)
|
||||
hit['remote_addr'] = name
|
||||
except:
|
||||
pass
|
||||
finally:
|
||||
hit['dns_analysed'] = True
|
||||
|
||||
|
Reference in New Issue
Block a user