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

Fixes the create session datastore option from appearing for payloads #18873

Conversation

cgranleese-r7
Copy link
Contributor

In a a previous PR the CreateSession options was moved from the advanced options into the basic options. Previously it was not as apparent an issue as it was hidden with the advanced options, whereas now it was being displayed with the module options.

The fix is to update how the create session options is being include in modules. Previously Msf::Auxiliary::CommandShell mixin would include include Msf::Sessions::CommandShellOptions which added the CreateSession option, which caused the CreateSession option to appear in the payload options.

This has now been moved into it's own mxin, so we have more control over where it is added.

Verification

  • Start msfconsole
  • Check modules that have the new mixin now display the CreateSession in the module options
  • Verify payloads that make use of Msf::Auxiliary::CommandShell no longer have the CreateSession options appearing with the payload options.
  • Make sure code changes are sane

@cgranleese-r7 cgranleese-r7 added the rn-fix release notes fix label Feb 22, 2024
@cgranleese-r7 cgranleese-r7 force-pushed the fix-create-session-datastore-option-appearing-for-payloads branch from e5a224b to 9ddbd89 Compare February 22, 2024 14:41
@cgranleese-r7 cgranleese-r7 force-pushed the fix-create-session-datastore-option-appearing-for-payloads branch from 9ddbd89 to d52220c Compare February 22, 2024 14:58
@adfoster-r7 adfoster-r7 merged commit f3a637b into rapid7:master Feb 22, 2024
34 checks passed
@adfoster-r7
Copy link
Contributor

Release Notes

Fixes a regression that caused a CreateSession option to be available for payloads that did not make sense

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rn-fix release notes fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants