We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b33ace2 commit defda01Copy full SHA for defda01
lib/msf/core/exploit.rb
@@ -698,6 +698,14 @@ def target_arch
698
(target and target.arch) ? target.arch : (arch == []) ? nil : arch
699
end
700
701
+
702
+ #
703
+ # Returns whether the requested payload is compatible with the module.
704
705
+ # @param [String] payload_name The payload name
706
+ # @return [TrueClass] Payload is compatible.
707
+ # @return [FalseClass] Payload is not compatible.
708
709
def is_payload_compatible?(payload_name)
710
c_platform = (target and target.platform) ? target.platform : platform
711
c_arch = (target and target.arch) ? target.arch : (arch == []) ? nil : arch
0 commit comments