fix for mod platform
git-svn-id: file:///home/svn/incoming/trunk@3222 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
8d7e729261
commit
f37776f830
|
@ -49,7 +49,10 @@ class ExploitDriver
|
|||
# current exploit. Assumes that target_idx is valid.
|
||||
#
|
||||
def compatible_payload?(payload)
|
||||
return ((payload.platform & exploit.targets[target_idx].platform).empty? == false)
|
||||
# Try to use the target's platform in preference of the exploit's
|
||||
exp_platform = exploit.targets[target_idx].platform || exploit.platform
|
||||
|
||||
return ((payload.platform & exp_platform).empty? == false)
|
||||
end
|
||||
|
||||
##
|
||||
|
|
Loading…
Reference in New Issue