I'm running an Automation plan on my kali linux using a yaml file, it works fine gives me traditional-json report with more than 300 URLs found.
But when I'm running it on Amazon EC2 kali server using same Yaml file, it just gives 1 URL in report and throws this warning at the end of terminal :
Automation plan warnings : job spider error accessing url
https://www.***.com/ status code returned : 202 expected 200.
I can't figure out what's wrong, please help to identify and resolve this problem.
It is only happening with one of my websites, working fine for others.
Here's my YAML config :
---
env:
contexts:
- name: "defaultcontext"
urls:
- "%URL%"
includePaths:
excludePaths: []
sessionManagement:
method: "http"
parameters: {}
parameters:
failOnError: true
failOnWarning: false
progressToStdout: true
vars: {}
jobs:
- parameters:
context: "defaultcontext"
maxDuration: 10
maxDepth: 5
maxChildren: 100
name: "spider"
type: "spider"
- parameters:
context: "defaultcontext"
maxDuration: 10
maxCrawlDepth: 5
name: "spiderAjax"
type: "spiderAjax"
- parameters:
template: "traditional-json"
reportDir: "/opt/pentester/result/"
reportFile: "zapUrl%FILE_NAME%.json"
type: "report"