fcavallarin / htcap

htcap is a web application scanner able to crawl single page application (SPA) recursively by intercepting ajax calls and DOM changes.
GNU General Public License v2.0
610 stars 114 forks source link

cr.db_fname is not defined #64

Closed horstmannmat closed 4 years ago

horstmannmat commented 4 years ago

When I try to

 python htcap/htcap.py crawl http://testesseg.c3sl.ufpr.br:3000/ badstore.bd \; scan wapiti \; util report badstore.db badstore.html

The output gives me an error:

Scan finished
Traceback (most recent call last):
  File "htcap/htcap.py", line 83, in <module>
    dbfile = cr.db_filie if cr else None
AttributeError: Crawler instance has no attribute 'db_filie'

It is just a little confusion about the name of the variables in the Crawler class.

htcap.py https://github.com/fcavallarin/htcap/blob/19d3e2ae890619dc9f4a0d74b2fe90fe5f0a9dc7/htcap.py#L83

Crawler classes:

https://github.com/fcavallarin/htcap/blob/19d3e2ae890619dc9f4a0d74b2fe90fe5f0a9dc7/core/crawl/crawler.py#L61