Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wapiti error during scan #13

Open
tanujjane opened this issue Jan 2, 2019 · 6 comments
Open

Wapiti error during scan #13

tanujjane opened this issue Jan 2, 2019 · 6 comments

Comments

@tanujjane
Copy link

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
Copy link

NHPT commented Apr 11, 2019

Try adding a / symbol at the end of the URL

@NHPT
Copy link

NHPT commented Apr 17, 2019

I know that you remove that js folder

@lyhistory
Copy link

simply quote on the parameters' value solved the issue

@RM6SS62
Copy link

RM6SS62 commented Jan 1, 2020

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
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants