Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add concurrency for scan:run command #622

Merged
merged 1 commit into from
Dec 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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