WIP: add waybackurls scan (#56)

* fixed up config.defaults definition

tools-dir and database-dir now use defaults.home value

* added tool definition file; closes #54

* added basic PoC for waybackurls scanner; updated helpers.py test

* added Endpoint/Target parsing; updated existing tests to pass

* added tests for waybackurls

* added WaybackurlsScan to FullScan

* added documenation for WaybackurlsScan
This commit is contained in:
epi052
2020-05-02 18:06:44 -07:00
committed by GitHub
parent 078fdaada7
commit f556319453
13 changed files with 212 additions and 13 deletions

View File

@@ -141,7 +141,7 @@ class DBManager:
def get_status_codes(self):
""" Simple helper that returns all status codes found during scanning """
return set(str(x[0]) for x in self.session.query(Endpoint.status_code).all())
return set(str(x[0]) for x in self.session.query(Endpoint.status_code).all() if x[0] is not None)
def get_and_filter(self, model, defaults=None, **kwargs):
""" Simple helper to either get an existing record if it exists otherwise create and return a new instance """