Fixed msfvenom NoMethodError with alpha_mixed encoder.

The issue was reported on Github[1] and Redmine[2].

The error consisted of trying to use the supports?() method
on an Array instead of a PlatformList.

[1] https://github.com/rapid7/metasploit-framework/issues/357
[2] http://dev.metasploit.com/redmine/issues/6826

Reported by: Brandon Perry
Signed off by: Silviu Popescu <silviupopescu1990@gmail.com>
unstable
Silviu-Mihai Popescu 2012-05-03 17:47:25 +03:00
parent 5151a4c530
commit 605e1929e4
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class Metasploit3 < Msf::Encoder::Alphanum
# Configure SEH getpc code on Windows
#
def init_platform(platform)
if(platform.supports?(::Msf::Module::PlatformList.win32))
if(::Msf::Module::PlatformList.from_a(platform).supports?(::Msf::Module::PlatformList.win32))
datastore['AllowWin32SEH'] = true
end
end