Skip to content

Commit 7c456f2

Browse files
committed
Land rapid7#4993, ams_xfr "payload_exe" NameError fix
2 parents 3dac637 + 8255e7a commit 7c456f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/exploits/windows/antivirus/ams_xfr.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class Metasploit3 < Msf::Exploit::Remote
1111

1212
include Msf::Exploit::CmdStager
1313
include Msf::Exploit::Remote::Tcp
14+
include Msf::Exploit::EXE
1415

1516
def initialize(info = {})
1617
super(update_info(info,
@@ -57,7 +58,7 @@ def windows_stager
5758

5859
print_status("Sending request to #{datastore['RHOST']}:#{datastore['RPORT']}")
5960
execute_cmdstager({ :temp => '.' })
60-
@payload_exe = payload_exe
61+
@payload_exe = generate_payload_exe
6162

6263
print_status("Attempting to execute the payload...")
6364
execute_command(@payload_exe)

0 commit comments

Comments
 (0)