Fixes #261. Default the exploit arch to x86 so we dont match on the wrong payloads

git-svn-id: file:///home/svn/framework3/trunk@5959 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2008-11-19 07:09:09 +00:00
parent a585fca827
commit 412e4a27ef
1 changed files with 3 additions and 2 deletions

View File

@ -671,6 +671,7 @@ class Exploit < Msf::Module
c_platform = (target and target.platform) ? target.platform : platform
c_arch = (target and target.arch) ? target.arch : (arch == []) ? nil : arch
c_arch ||= [ ARCH_X86 ]
framework.payloads.each_module(
'Platform' => c_platform,