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

Rename Acceptance::Meterpreter module to Acceptance::Session #19428

Merged

Conversation

cgranleese-r7
Copy link
Contributor

@cgranleese-r7 cgranleese-r7 commented Aug 28, 2024

This PR renames Acceptance::Meterpreter module to Acceptance::Session. This has been done as more tests have now been added to our acceptance testing. In this PR we will be adding command shell acceptance testing ontop of our existing Meterpreter testing. So this PR is in preparation to adding those new tests.

Verification

  • Code changes are sane
  • Acceptance tests pass (use ReadMe to test this locally as well)

@cgranleese-r7 cgranleese-r7 force-pushed the rename-meterpreter-module-to-session branch from 6398e25 to 5d49b85 Compare August 28, 2024 15:50
return true if ENV['METERPRETER'].blank?
# Allows restricting the tests of a specific session's test suite with the SESSION environment variable
# @return [TrueClass, FalseClass] True if the given session should be run, false otherwise.
def self.run_session?(session_config)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we still want unique identifiers here for environment variables, for the scenario of running the test suite all at once instead of on a per-file basis 🤔

I think we should either revert run_meterpreter? and run_meterpreter_module_test?, or update it to take a parameter of the session type that's expected

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to jump on a call if you disagree with that approach, i.e. if I'm missing an edgecase or such and you'd prefer to follow a different pattern

@cgranleese-r7 cgranleese-r7 marked this pull request as draft August 29, 2024 12:28
@cgranleese-r7 cgranleese-r7 force-pushed the rename-meterpreter-module-to-session branch from 5d49b85 to 37cedf8 Compare August 30, 2024 09:24
@cgranleese-r7 cgranleese-r7 force-pushed the rename-meterpreter-module-to-session branch 2 times, most recently from 1d331e7 to ceffede Compare September 16, 2024 11:48
@cgranleese-r7 cgranleese-r7 force-pushed the rename-meterpreter-module-to-session branch from ceffede to 76b0bc5 Compare September 16, 2024 12:11
@cgranleese-r7 cgranleese-r7 marked this pull request as ready for review September 16, 2024 14:30
@adfoster-r7 adfoster-r7 merged commit 3b33b23 into rapid7:master Sep 18, 2024
73 checks passed
@adfoster-r7 adfoster-r7 added the rn-no-release-notes no release notes label Sep 18, 2024
@cgranleese-r7 cgranleese-r7 deleted the rename-meterpreter-module-to-session branch September 19, 2024 08:24
cgranleese-r7 added a commit to cgranleese-r7/metasploit-framework that referenced this pull request Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rn-no-release-notes no release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants