Adds --exclude-usernames option

This commit is contained in:
erwanlr
2021-03-22 16:35:33 +01:00
parent f887f8baa4
commit 87c2f82b80
4 changed files with 22 additions and 2 deletions

View File

@@ -170,6 +170,12 @@ module WPScan
['--users-detection MODE',
'Use the supplied mode to enumerate Users, instead of the global (--detection-mode) mode.'],
choices: %w[mixed passive aggressive], normalize: :to_sym, advanced: true
),
OptRegexp.new(
[
'--exclude-usernames REGEXP_OR_STRING',
'Exclude usernames matching the Regexp/string (case insensitive). Regexp delimiters are not required.'
], options: Regexp::IGNORECASE
)
]
end