EDIT: redacted website, sorry.
I wrote a reply and somehow it went poof. I got a little further in the logs and something was going on with the spider. However, my current yaml:
env:
contexts:
- excludePaths: []
name: baseline
urls:
- https://[website redacted]
parameters:
failOnError: true
progressToStdout: true
jobs:
- parameters:
enableTags: false
maxAlertsPerRule: 10
type: passiveScan-config
- parameters:
maxDuration: 5
url: [website redacted]
type: spider
- parameters:
maxDuration: 0
type: passiveScan-wait
- parameters:
format: Short
summaryFile: /zap/wrk/zap_out.json
rules: []
type: outputSummary
- parameters:
reportDescription: ''
reportDir: /zap/wrk/
reportFile: report.json
reportTitle: ZAP Scanning Report
template: traditional-json
type: report
- parameters:
action: "add"
type: "httpsender"
engine: "Oracle Nashorn"
name: "LogMessages.js"
file: "/zap/wrk/LogMessages.js"
name: "script"
type: "script"
- type: script
parameters:
action: run
name: "SaveSession"
type: standalone
engine: "Python 3"
file: "/zap/wrk/export_session.py"
https://github.com/zaproxy/community-scripts/blob/main/scan-hooks/export_session.py is that file.
I know this file line item is wrong but I'm struggling to figure out how to do this. 188765 [ZAP-daemon] INFO org.parosproxy.paros.CommandLine - Job: SaveSession File specified but not needed so will be ignored
I just want to save the session to /zap/wrk which is mounted to my pwd. As a follow up, I also need direction on how to load the session in a different config. I tried with the API and no dice so far.
I appreciate your help. :)