Created
February 25, 2014 16:04
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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