Skip to content

Instantly share code, notes, and snippets.

@limhoff-r7
Created February 25, 2014 16:04
Show Gist options
  • Save limhoff-r7/9211873 to your computer and use it in GitHub Desktop.
Save limhoff-r7/9211873 to your computer and use it in GitHub Desktop.
How to find a compatibility payload from a list of reference names
exploit = framework.modules.create_from_module_class(module_class)
# ensure target is set correct
reference_names = # Array<Mdm::Module::Class#reference_name> order by preference with most desired first.
payload_compatibility = exploit.target.payload_compatibility(reference_names: reference_names)
payload_reference_name = payload_compatibility.preferred_class_reference_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment