zap.bat automation batch scan

29 views
Skip to first unread message

Matheus Marques

unread,
Nov 8, 2021, 10:51:59 AM11/8/21
to OWASP ZAP User Group
Hi everyone, I created a script to scan all our links, it currently looks like this:

@echo off

start zap.bat.lnk -daemon -silent -nostdout -quickurl https://url1.com -quickout C:\OwaspZapScan\url1.com.xml -quickprogress

@pause

start zap.bat.lnk -daemon -silent -nostdout -quickurl https://url2.com -quickout C:\OwaspZapScan\url2.com.xml -quickprogress

@pause

When a scan ends, it stays with the window open until I close it. I would like to know if I can make a window close when the scan is finished and if it is possible that this window will also send a command to the main bat to start the next scan.

Simon Bennetts

unread,
Nov 8, 2021, 11:20:43 AM11/8/21
to OWASP ZAP User Group
Use "-cmd" instead of "-daemon" :)

No, you cant keep sending new commands. But look at the Automation Framework for something with more options https://www.zaproxy.org/docs/automate/automation-framework/

Cheers,

Simon
Reply all
Reply to author
Forward
0 new messages