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

Coerce DisablePayloadHandler into a Boolean string #10989

Merged
merged 1 commit into from
Nov 19, 2018

Conversation

wvu
Copy link
Contributor

@wvu wvu commented Nov 19, 2018

Due to discrepancies in how command dispatchers receive datastore options, especially after a save of the console, Boolean values are stored as strings.

This is a quick fix for DisablePayloadHandler specifically, since it was driving me insane.

msf5 exploit(unix/local/[redacted]) > pry
[*] Starting Pry shell...
[*] You are in exploit/unix/local/[redacted]

[1] pry(#<Msf::Modules::Exploit__Unix__Local__[redacted]::MetasploitModule>)> datastore['DisablePayloadHandler']
=> "false"
[2] pry(#<Msf::Modules::Exploit__Unix__Local__[redacted]::MetasploitModule>)>

Closes #10179 and closes #10240. Does not fix the systemic issue.

Due to discrepancies in how command dispatchers receive datastore
options, especially after a "save" of the console, Boolean values are
stored as strings.

This is a quick fix for DisablePayloadHandler specifically, since it was
driving me insane.
@busterb busterb self-assigned this Nov 19, 2018
@bcook-r7 bcook-r7 merged commit 6d317ba into rapid7:master Nov 19, 2018
@busterb
Copy link
Member

busterb commented Nov 19, 2018

Release Notes

This fixes an issue where saving and restoring datastore state leads to an incorrect message about the payload handler being disabled.

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.

DisablePayloadHandler has mind of its own when saving config External modules have some stringified Bools
4 participants