File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
modules/post/windows/manage Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ class Metasploit3 < Msf::Post
88 include Msf ::Post ::File
99 include Msf ::Post ::Windows ::Priv
1010 include Msf ::Post ::Windows ::Services
11+ include Msf ::Post ::Windows ::Error
1112
1213 START_TYPE = {
1314 "demand" => "SERVICE_DEMAND_START" ,
@@ -81,11 +82,11 @@ def run
8182 if inst
8283 ss = service_start ( name )
8384 case ss
84- when Windows ::Error ::SUCCESS ;
85+ when Windows ::Error ::SUCCESS
8586 print_good ( "Driver loaded successfully." )
86- when Windows ::Error ::SERVICE_ALREADY_RUNNING ;
87+ when Windows ::Error ::SERVICE_ALREADY_RUNNING
8788 print_error ( "Service already started." )
88- when Windows ::Error ::SERVICE_DISABLED ;
89+ when Windows ::Error ::SERVICE_DISABLED
8990 print_error ( "Service disabled." )
9091 else
9192 print_error ( "There was an error starting the service." )
You can’t perform that action at this time.
0 commit comments