Actually, don't really have a good reason for that exception handling anymore. I think.

This commit is contained in:
sinn3r 2011-11-25 00:41:28 -06:00 committed by HD Moore
parent 0eb3b5a49b
commit 608a5586b2
1 changed files with 1 additions and 6 deletions

View File

@ -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