Skip to content

Commit ed838d7

Browse files
committed
Allow targets to specify Compat[ible] payloads
1 parent 709a7bf commit ed838d7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/msf/core/module.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,9 @@ def compatible?(mod)
449449
ch = self.compat['Nop']
450450
elsif (mod.type == MODULE_PAYLOAD)
451451
ch = self.compat['Payload']
452+
if self.respond_to?("target") and self.target['Payload'] and self.target['Payload']['Compat']
453+
ch.merge!(self.target['Payload']['Compat'])
454+
end
452455
else
453456
return true
454457
end

0 commit comments

Comments
 (0)