Skip to content

Commit

Permalink
Exclude jquery from the zap scanners.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfourn committed Aug 22, 2019
1 parent 6ff34a2 commit b1ad7eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion security.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ while !(curl -s http://0.0.0.0:1001) > /dev/null
echo "ZAP has successfully started"
zap-cli --zap-url http://0.0.0.0 -p 1001 status -t 120
zap-cli --zap-url http://0.0.0.0 -p 1001 open-url "${TEST_URL}"
zap-cli --zap-url http://0.0.0.0 -p 1001 exclude ".*jquery-3.4.1.min.js$"
zap-cli --zap-url http://0.0.0.0 -p 1001 spider ${TEST_URL}
zap-cli --zap-url http://0.0.0.0 -p 1001 active-scan --scanners all --recursive "${TEST_URL}"
zap-cli --zap-url http://0.0.0.0 -p 1001 report -o activescan.html -f html
echo 'Changing owner from $(id -u):$(id -g) to $(id -u):$(id -u)'
chown -R $(id -u):$(id -u) activescan.html
cp *.html functional-output/
zap-cli -p 1001 alerts -l Informational
zap-cli --zap-url http://0.0.0.0 -p 1001 alerts -l High --exit-code False
zap-cli --zap-url http://0.0.0.0 -p 1001 alerts -l High --exit-code False

0 comments on commit b1ad7eb

Please sign in to comment.