flipkart-incubator / watchdog

Watchdog - A Comprehensive Security Scanning and a Vulnerability Management Tool.
Apache License 2.0
412 stars 103 forks source link

Wapiti error during scan #13

Open tanujjane opened 5 years ago

tanujjane commented 5 years ago

Traceback (most recent call last): File "/usr/bin/wapiti", line 11, in load_entry_point('wapiti3==3.0.1', 'console_scripts', 'wapiti')() File "/usr/lib/python3/dist-packages/wapitiCore/main/wapiti.py", line 1002, in wapiti_main wap.attack() File "/usr/lib/python3/dist-packages/wapitiCore/main/wapiti.py", line 445, in attack self.report_gen.generate_report(self.output_file) File "/usr/lib/python3/dist-packages/wapitiCore/report/htmlreportgenerator.py", line 57, in generate_report copytree(os.path.join(self.BASE_DIR, self.REPORT_DIR, subdir), os.path.join(output_path, subdir)) File "/usr/lib/python3.6/shutil.py", line 315, in copytree names = os.listdir(src) FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/wapitiCore/report_template/js'

NHPT commented 5 years ago

Try adding a / symbol at the end of the URL

NHPT commented 5 years ago

I know that you remove that js folder

lyhistory commented 5 years ago

simply quote on the parameters' value solved the issue

RM6SS62 commented 4 years ago

I'm having the same issue

wapiti -u https://mydomain.com/

[*] Launching module permanentxss Traceback (most recent call last): File "/usr/bin/wapiti", line 11, in load_entry_point('wapiti3==3.0.1', 'console_scripts', 'wapiti')() File "/usr/lib/python3/dist-packages/wapitiCore/main/wapiti.py", line 1002, in wapiti_main wap.attack() File "/usr/lib/python3/dist-packages/wapitiCore/main/wapiti.py", line 445, in attack self.report_gen.generate_report(self.output_file) File "/usr/lib/python3/dist-packages/wapitiCore/report/htmlreportgenerator.py", line 57, in generate_report copytree(os.path.join(self.BASE_DIR, self.REPORT_DIR, subdir), os.path.join(output_path, subdir)) File "/usr/lib/python3.7/shutil.py", line 315, in copytree names = os.listdir(src) FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/wapitiCore/report_template/js'

Quoting the URL makes no difference.

renaudnotes commented 4 years ago

It's probably not the clean and definite answer, but simply create the directory (and you can leave it empty) : mkdir /usr/lib/python3/dist-packages/wapitiCore/report_template/js

ramiroluz commented 4 years ago

Looks like a broken package, someone said in a thread on SourceForge. Copying the files from the git repo also works.