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

Expose options for logging to a file in mettle #16529

Merged
merged 1 commit into from
May 6, 2022

Conversation

dwelch-r7
Copy link
Contributor

Follow on from #16445 to leverage the same datastore options to enable/disable logging on mettle and optionally save those logs to a file

Removes the old datastore options, which were only available to be set for staged linux payloads, to be consistent with the recent additions of MeterpreterDebugBuild and MeterpreterDebugLogging and to support all mettle based payloads

Verification

  • Boot up framework
  • Use a mettle payload of your choosing (e.g. use payload/linux/x86/meterpreter/reverse_tcp)
  • run advanced and observe the two options MeterpreterDebugBuild and MeterpreterDebugLogging
  • run set MeterpreterDebugBuild true and set MeterpreterDebugLogging rpath:./this_is_a_text_file.txt to enable and configure the logger
  • run generate -f elf -o payload.elf followed by to_handler to generate your payload and start the appropriate handler
  • start your payload
  • view the logs int your log file

@adfoster-r7 adfoster-r7 self-assigned this May 5, 2022
Copy link
Contributor

@adfoster-r7 adfoster-r7 left a comment

Choose a reason for hiding this comment

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

Will land on 🍏 🤞

@adfoster-r7 adfoster-r7 merged commit 3b1792f into rapid7:master May 6, 2022
@adfoster-r7
Copy link
Contributor

Release Notes

Updates Mettle payloads to support logging to file. This now uses the same options as the other Meterpreters. For example within msfconsole:

use osx/x64/meterpreter_reverse_tcp
generate -f macho -o shell MeterpreterDebugbuild=true MeterpreterDebugLogging='rpath:/tmp/foo.txt'
to_handler

@ebleiweiss-r7 ebleiweiss-r7 added the rn-enhancement release notes enhancement label May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement rn-enhancement release notes enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants