Land #5306, payload_exe NameError fix

bug/bundler_fix
William Vu 2015-05-06 11:29:29 -05:00
commit 59ffe5d98f
No known key found for this signature in database
GPG Key ID: 68BD00CE25866743
1 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@ class Metasploit3 < Msf::Exploit::Remote
include Msf::Exploit::CmdStager
include Msf::Exploit::Remote::Tcp
include Msf::Exploit::EXE
def initialize(info = {})
super(update_info(info,
@ -53,7 +54,7 @@ class Metasploit3 < Msf::Exploit::Remote
def windows_stager
print_status("Sending request to #{datastore['RHOST']}:#{datastore['RPORT']}")
execute_cmdstager({ :temp => '.' })
@payload_exe = payload_exe
@payload_exe = generate_payload_exe
print_status("Attempting to execute the payload...")
execute_command(@payload_exe)