Skip to content

Commit

Permalink
Adds spiderAjax
Browse files Browse the repository at this point in the history
  • Loading branch information
nickschuch committed Oct 11, 2024
1 parent 848f2fc commit 8b5f765
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmd/zap-wrapper/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,14 @@ func getPassiveScanConfig(endpoint string) (*zapconfig.Config, error) {
MaxDepth: 1,
},
},
{
Name: "spiderAjax",
Type: "spiderAjax",
Parameters: zapconfig.SpiderAjaxParameters{
MaxDuration: 60,
MaxCrawlDepth: 1,
},
},
{
Name: "passiveScan-wait",
Type: "passiveScan-wait",
Expand Down
6 changes: 6 additions & 0 deletions internal/zap/autorun/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ type SpiderParameters struct {
MaxDepth int32 `yaml:"maxDepth,omitempty"`
}

// SpiderAjaxParameters to Job config.
type SpiderAjaxParameters struct {
MaxDuration int32 `yaml:"maxDuration,omitempty"`
MaxCrawlDepth int32 `yaml:"maxCrawlDepth,omitempty"`
}

// PassiveScanParameters to Job config.
type PassiveScanParameters struct {
ScanOnlyInScope bool `yaml:"scanOnlyInScope,omitempty"`
Expand Down

0 comments on commit 8b5f765

Please sign in to comment.