bug/bundler_fix
wchen-r7 2015-05-29 15:09:29 -05:00
parent b33ace2f44
commit defda01d87
1 changed files with 8 additions and 0 deletions

View File

@ -698,6 +698,14 @@ class Exploit < Msf::Module
(target and target.arch) ? target.arch : (arch == []) ? nil : arch
end
#
# Returns whether the requested payload is compatible with the module.
#
# @param [String] payload_name The payload name
# @return [TrueClass] Payload is compatible.
# @return [FalseClass] Payload is not compatible.
#
def is_payload_compatible?(payload_name)
c_platform = (target and target.platform) ? target.platform : platform
c_arch = (target and target.arch) ? target.arch : (arch == []) ? nil : arch