zap-cli
zap-cli copied to clipboard
Problem with ZAP-CLI
I lunch the same command like you : zap-cli quick-scan --self-contained --spider -r -s xss http://....
I defined environment variables ZAP_PATH and ZAP_PORT. But I have error python like this :

I scan VM with DVWA
most probably you did not define API key. Find out by checking the zap.log helped me
Yeah, as @wheelq said, that error is nearly always due to a missing API key. Make sure you have also set your API key in ZAP_API_KEY.
in ubuntu where to set ZAP_API_KEY, @Grunny , I have not found any logs on running the same command in zap.log