Remove iwla parameter in hook functions

This commit is contained in:
2014-11-26 20:31:13 +01:00
parent 9571bf09b6
commit fec5e375e4
9 changed files with 21 additions and 21 deletions

View File

@@ -20,11 +20,11 @@ class IWLAPreAnalysisPageToHit(IPlugin):
return True
def hook(self, iwla):
def hook(self):
start_time = self.iwla.getStartAnalysisTime()
start_time = time.mktime(start_time)
hits = iwla.getCurrentVisists()
hits = self.iwla.getCurrentVisists()
viewed_http_codes = self.iwla.getConfValue('viewed_http_codes', [200, 304])
for (k, super_hit) in hits.items():
if super_hit['robot']: continue

View File

@@ -16,8 +16,8 @@ class IWLAPreAnalysisRobots(IPlugin):
return True
# Basic rule to detect robots
def hook(self, iwla):
hits = iwla.getCurrentVisists()
def hook(self):
hits = self.iwla.getCurrentVisists()
for k in hits.keys():
super_hit = hits[k]