From defda01d87f6064413c802a69f12438ad285b9c6 Mon Sep 17 00:00:00 2001 From: wchen-r7 Date: Fri, 29 May 2015 15:09:29 -0500 Subject: [PATCH] Some doc --- lib/msf/core/exploit.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/msf/core/exploit.rb b/lib/msf/core/exploit.rb index 6740bf339d..8d4f02fdc3 100644 --- a/lib/msf/core/exploit.rb +++ b/lib/msf/core/exploit.rb @@ -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