diff --git a/modules/post/windows/escalate/ms10_092_schelevator.rb b/modules/post/windows/escalate/ms10_092_schelevator.rb index 4c42fdef33..bf70c37799 100644 --- a/modules/post/windows/escalate/ms10_092_schelevator.rb +++ b/modules/post/windows/escalate/ms10_092_schelevator.rb @@ -164,12 +164,7 @@ class Metasploit3 < Msf::Post print_status("Creating task: #{taskname}") cmdline = "schtasks.exe /create /tn #{taskname} /tr \"#{cmd}\" /sc monthly /f" # print_debug("Will Execute:\n\t#{cmdline}") - begin - exec_schtasks(cmdline, "create the task") - rescue ::Exception => e - print_error(e.to_s) - return - end + exec_schtasks(cmdline, "create the task") # # Read the contents of the newly creates task file