-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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 meterpreter compatibility metadata to screenshare module #15669
Add meterpreter compatibility metadata to screenshare module #15669
Conversation
end | ||
end | ||
missing_cmd_ids -= s.commands | ||
return "missing Meterpreter features: #{command_names_for(missing_cmd_ids)}" unless missing_cmd_ids.empty? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was just extracted into a method below, and it returns an array of issues instead of a string
end | ||
|
||
# Arch is okay, now check the platform. | ||
if self.platform && self.platform.kind_of?(Msf::Module::PlatformList) | ||
return "incompatible session platform: #{s.platform}" unless self.platform.supports?(Msf::Module::PlatformList.transform(s.platform)) | ||
issues << "incompatible session platform: #{s.platform}" unless self.platform.supports?(Msf::Module::PlatformList.transform(s.platform)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to return the potential platform issue, as well as the meterpreter issues, so returning early wasn't the right pattern here for me.
Potential example:
[!] SESSION may not be compatible with this module (incompatible session platform: linux. missing Meterpreter features: stdapi_ui_desktop_screenshot, stdapi_ui_send_keyevent, stdapi_ui_send_mouse, espia_image_get_dev_screen)
[] Using URL: http://127.0.0.1:8080/WNOheBiKs
[] Server started.
Error from sanity test run for Linux meterpreter:
|
23d5589
to
49db8b9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good, just left a few general comments.
49db8b9
to
6072382
Compare
797673b
to
e81f1b5
Compare
Release NotesUpdates the |
Building on the work of #15295 and #15659
Verification
Verify validation works as expected:
Expected output:
Verify validation works as expected:
Expected output: