rapid7/metasploit-framework — pull request #1838 by jvennix-r7 (2013-05-16 17:46:45+00:00)
Title: Call super() in regenerate_payload with correct args.

In core/exploit/tcp.rb:478, in the method "regenerate_payload", super() is invoked:

`if ((p = super(arch, platform, target)) == nil)`

However, in core/exploit.rb, regenerate_payload's method def looks like:

`def regenerate_payload(platform = nil, arch = nil, explicit_target = nil)`

So the arch and platform args were swapped in the super call, which can result in the exception:

`Exception handling request: No classes in Msf::Module::Platform for x86!`