Skip to content

Fix command parsing option frofrom msfconsole cli#21174

Open
adfoster-r7 wants to merge 1 commit intorapid7:masterfrom
adfoster-r7:fix-command-parsing-option-from-msfconsole-cli
Open

Fix command parsing option frofrom msfconsole cli#21174
adfoster-r7 wants to merge 1 commit intorapid7:masterfrom
adfoster-r7:fix-command-parsing-option-from-msfconsole-cli

Conversation

@adfoster-r7
Copy link
Contributor

Closes #21107

Fixes a bug when parsing a user's command with the -x flag with semicolons present. i.e. msfconsole -x 'set option_name "a;b"'

Verification

  • Ensure CI passes
  • Ensure the original repro now works as expected

@adfoster-r7
Copy link
Contributor Author

adfoster-r7 commented Mar 24, 2026

Release Notes

Fixes a bug when parsing msfconsole's -x flag when additional semicolons are present that are not meant to separate commands. i.e. msfconsole -x 'set option_name "a;b"'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

Parse error: Unmatched quote when trying to use ; via cli: msfconsole -x 'set foo "blah=;123"'

2 participants