Skip to content

Commit defda01

Browse files
committed
Some doc
1 parent b33ace2 commit defda01

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/msf/core/exploit.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,14 @@ def target_arch
698698
(target and target.arch) ? target.arch : (arch == []) ? nil : arch
699699
end
700700

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+
#
701709
def is_payload_compatible?(payload_name)
702710
c_platform = (target and target.platform) ? target.platform : platform
703711
c_arch = (target and target.arch) ? target.arch : (arch == []) ? nil : arch

0 commit comments

Comments
 (0)