fix for mod platform

git-svn-id: file:///home/svn/incoming/trunk@3222 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Matt Miller 2005-12-14 00:43:18 +00:00
parent 8d7e729261
commit f37776f830
1 changed files with 4 additions and 1 deletions

View File

@ -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
##