I have some problems when running scans with the weekly image : with the AJAX Spider (using the zap-full-scan.py) and with a Selenium script (either using the automation framework or the zap-full-scan.py script).
Here is the command I run :
docker run -v $(pwd):/zap/wrk/:rw -t owasp/zap2docker-weekly zap-full-scan.py -t http://10.0.2.15:9000 -r ../rapport.html -n ciri-context.context -j -z "-config connection.timeoutInSecs=40 -config ajaxSpider.maxDuration=2" --hook=my-hooks.py -d
1. Selenium script
The Selenium script is well added and it's launched at the beginning of the AJAX Spider. However, the script doesn't run until the end. Sometimes it just shows the first messages and sometimes it makes some clicks after.
As soon as the AJAX Spider run, the proxy starts. Then, I get this error just before the first message of my Selenium script :
<eval>:14 TypeError: null has no such function "contains".
Note that my Selenium script works entirely (most of the time) when I use it in local with the automation framework.
Do you know why it stops randomly and doesn't go to the end ?
2. AJAX Spider
The max duration of the AJAX spider is 2 minutes. When the two minutes are up, this message appears in the zap.out file :
145957 [pool-2-thread-1] INFO com.crawljax.core.CrawlController - Time is up! Shutting down...
Then, it takes a few minutes to turn off (about 3-4 minutes) but in the terminal where I ran my command to start ZAP, nothing happens. I don't see any message. It's like the AJAX Spider is still running. The active scan doesn't start.
Do you know what is the problem ?
I put the zap.out and the zap.log files attached.