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

Fix #4156, cmdstager NoMethodError undefined method `stop' #4160

Merged
merged 2 commits into from Nov 10, 2014

Conversation

wchen-r7
Copy link
Contributor

@wchen-r7 wchen-r7 commented Nov 9, 2014

This fixes: #4156

To verify the bug, you can do:

  • ruby -run -e httpd . -p 8181 and use this as your fake server
  • Start msfconsole
  • use exploit/multi/http/struts_code_exec
  • set rhost [target]
  • set lhost [ip]
  • set rport 8181
  • set PAYLOAD windows/meterpreter/reverse_https
  • set URI /
  • exploit
  • You should see "NoMethodError undefined method `stop' for nil:NilClass"

And then:

  • Apply the patch, repeat the same steps. You should no longer see the error.

This will fix rapid7#4156. It also fixes NoMethodError payload_exe
when I was trying to fix the undef 'stop' one
@wvu
Copy link
Contributor

wvu commented Nov 10, 2014

@wchen-r7: I changed use use exploit/multi/http/struts_code_exec to use exploit/multi/http/struts_code_exec and added set URI /. Also, I used rvmsudo, since the TFTP thingy needs root to bind.

@wvu wvu merged commit 8f3b1e7 into rapid7:master Nov 10, 2014
@todb-r7 todb-r7 changed the title Fix #4156 - NoMethodError undefined method `stop' Fix #4156, cmdstager NoMethodError undefined method `stop' Nov 11, 2014
@wchen-r7 wchen-r7 deleted the fix_4156 branch August 22, 2016 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cmdstager: NoMethodError undefined method `stop' for nil:NilClass
2 participants