You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed IndexError when parsing malformed --modules-extra-args
- Added validation to check for '=' sign before splitting
- Added validation to reject empty keys (e.g., '=value')
- Used internationalized error messages with _() function
- Added error_modules_extra_args_format and error_modules_extra_args_empty_key to locale
- Used split('=', 1) to properly handle values containing '=' characters
- Strip whitespace from keys
Fixes issue #1199
Copy file name to clipboardExpand all lines: nettacker/locale/en.yaml
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,8 @@ error_target_file: "Cannot specify the target(s), unable to open file: {0}"
37
37
error_username: "Cannot specify the username(s), unable to open file: {0}"
38
38
error_passwords: "Cannot specify the password(s), unable to open file: {0}"
39
39
error_wordlist: "Cannot specify the word(s), unable to open file {0}"
40
+
error_modules_extra_args_format: "Invalid format for --modules-extra-args: '{0}'\nExpected format: key1=value1&key2=value2\nExample: --modules-extra-args \"x_api_key=123&xyz_passwd=abc\""
41
+
error_modules_extra_args_empty_key: "Invalid --modules-extra-args: empty key is not allowed\nEach argument must be in format: key=value"
40
42
exclude_scan_method: choose scan method to exclude {0}
41
43
file_write_error: file "{0}" is not writable!
42
44
library_not_supported: library [{0}] is not support!
0 commit comments