1N3 / Sn1per

Attack Surface Management Platform
https://sn1persecurity.com
Other
7.9k stars 1.82k forks source link

Issue with Zap integration #333

Closed digitizeddude closed 3 years ago

digitizeddude commented 3 years ago

I've got a weird error that i've never seen before and i'm not sure if it is a bug. Error below: RUNNING OWASP ZAP SCAN ====================================================================================•x2021-01-24x• [i] Scanning: http://testfire.net/ Traceback (most recent call last): File "/usr/share/sniper/bin/zap-scan.py", line 20, in from zapv2 import ZAPv2 ModuleNotFoundError: No module named 'zapv2' grep: /usr/share/sniper/bin/zap-report.txt: No such file or directory [i] Scan complete. [+] Report saved to: /usr/share/sniper/loot/workspace/testfire.net/web/zap-report-testfire.net-http-202101242244.html [i] Scanning: https://testfire.net/ Traceback (most recent call last): File "/usr/share/sniper/bin/zap-scan.py", line 20, in from zapv2 import ZAPv2 ModuleNotFoundError: No module named 'zapv2' grep: /usr/share/sniper/bin/zap-report.txt: No such file or directory [i] Scan complete. [+] Report saved to: /usr/share/sniper/loot/workspace/testfire.net/web/zap-report-testfire.net-https-202101242244.html

I have made all of the changes based on the zap integration details on the sn1per website but i get the error above. I'm running Kali 2020.4 Zap 2.10.0 Sniper version 9.0 Sniper Pro 8

Command i ran was: sniper -t testfire.net -m webscan -w testfire.net

Thanks

digitizeddude commented 3 years ago

By the way, i had ZAP open while running the webscan and i couldn't see any activity on ZAP because this error comes up. Thx

1N3 commented 3 years ago

The error message is ModuleNotFoundError: No module named 'zapv2'

You will need to run pip3 install python-owasp-zap-v2.4 as referenced in https://github.com/1N3/Sn1per/wiki/OWASP-ZAP-Integration to fix this.

digitizeddude commented 3 years ago

Zap is good now when running the command through terminal.