Permalink
Browse files

Merge pull request #13 from CERN-CERT/more_detector_customization

Added additional_checks method, that allows further customization of Detector class
  • Loading branch information...
plizonczyk committed Aug 25, 2015
2 parents 66bd3a6 + fb06a77 commit f2ab51d57d0deb6c84c5efc45feb9466c3298739
Showing with 16 additions and 1 deletion.
  1. +4 −0 README.md
  2. +1 −1 setup.py
  3. +11 −0 wad/detection.py
View
@@ -66,6 +66,10 @@ Secondly, the project has and will continue to naturally diverge from Wappalyzer
Finally, additional features added into WAD project aren't ported into Wappalyzer at the same time.
## Changelog
### 0.3.4 (2015-08-25)
- Added additional_checks method, that allows further customization of Detector class
### 0.3.3 (2015-08-17)
- Fixed bug causing crash on SSL certificate mismatch in Python >= 2.7.9
View
@@ -9,7 +9,7 @@
setup(
name='wad',
version='0.3.3',
version='0.3.4',
description='A tool for detecting technologies used by web applications.',
long_description=long_description,
url='https://github.com/CERN-CERT/WAD',
View
@@ -60,6 +60,7 @@ def detect(self, url, limit=None, exclude=None, timeout=TIMEOUT):
findings += self.check_meta(content) # 'meta'
findings += self.check_script(content) # 'script'
findings += self.check_html(content) # 'html'
findings += self.additional_checks(page, url, content)
self.follow_implies(findings) # 'implies'
self.remove_duplicates(findings)
@@ -287,3 +288,13 @@ def expected_url(self, url, limit, exclude):
logging.warning("x %s =~ %s", url, exclude)
return False
return True
def additional_checks(self, page, url, content):
"""
It can be overrided in order to perform more checks over the website
:param page: page retrieved with urllib2
:param url: page url
:param content: decoded content
:return: list of findings
"""
return []

0 comments on commit f2ab51d

Please sign in to comment.