commit
faaf0787a5
|
@ -106,7 +106,7 @@ class Metasploit3 < Msf::Exploit::Local
|
||||||
process = client.sys.process.open(notepad_process_pid, PROCESS_ALL_ACCESS)
|
process = client.sys.process.open(notepad_process_pid, PROCESS_ALL_ACCESS)
|
||||||
print_good("Process #{process.pid} launched.")
|
print_good("Process #{process.pid} launched.")
|
||||||
rescue Rex::Post::Meterpreter::RequestError
|
rescue Rex::Post::Meterpreter::RequestError
|
||||||
print_status("Operation failed. Trying to elevate the current process...")
|
print_status("Operation failed. Hosting exploit in the current process...")
|
||||||
process = client.sys.process.open
|
process = client.sys.process.open
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue