Some doc
parent
b33ace2f44
commit
defda01d87
|
@ -698,6 +698,14 @@ class Exploit < Msf::Module
|
||||||
(target and target.arch) ? target.arch : (arch == []) ? nil : arch
|
(target and target.arch) ? target.arch : (arch == []) ? nil : arch
|
||||||
end
|
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)
|
def is_payload_compatible?(payload_name)
|
||||||
c_platform = (target and target.platform) ? target.platform : platform
|
c_platform = (target and target.platform) ? target.platform : platform
|
||||||
c_arch = (target and target.arch) ? target.arch : (arch == []) ? nil : arch
|
c_arch = (target and target.arch) ? target.arch : (arch == []) ? nil : arch
|
||||||
|
|
Loading…
Reference in New Issue