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
parent 3e7c821119
commit ec3c37d963
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