Skip to content

Commit

Permalink
feat: add concurrency for scan:run command (#619)
Browse files Browse the repository at this point in the history
  • Loading branch information
SevenWhite authored Nov 26, 2024
1 parent 8b9b23f commit 7bbbfdf
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 @@ -145,6 +145,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 @@ -197,6 +205,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 7bbbfdf

Please sign in to comment.