Skip to content

Commit

Permalink
feat: add concurrency for scan:run command (#622)
Browse files Browse the repository at this point in the history
  • Loading branch information
SevenWhite authored Dec 1, 2024
1 parent 933b39b commit 3c01080
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Commands/RunScan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,14 @@ export class RunScan implements CommandModule {
describe:
'Use automatic smart decisions such as: parameter skipping, detection phases, etc. to minimize scan time.'
})
.option('concurrency', {
number: true,
default: 10,
requiresArg: true,
describe:
'Number of parallel requests to send. ' +
'The default value is 10, but it can be increased up to 50 to improve performance.'
})
.option('param', {
array: true,
defaultDescription: `[${ATTACK_PARAM_LOCATIONS_DEFAULT.map(
Expand Down Expand Up @@ -200,6 +208,7 @@ export class RunScan implements CommandModule {
repeaters: args.repeater,
smart: args.smart,
attackParamLocations: args.param,
poolSize: args.concurrency,
exclusions: {
requests: args.excludeEntryPoint,
params: args.excludeParam
Expand Down

0 comments on commit 3c01080

Please sign in to comment.