diff --git a/modules/post/windows/manage/driver_loader.rb b/modules/post/windows/manage/driver_loader.rb index e01c286a77..641499ab1e 100644 --- a/modules/post/windows/manage/driver_loader.rb +++ b/modules/post/windows/manage/driver_loader.rb @@ -8,6 +8,7 @@ class Metasploit3 < Msf::Post include Msf::Post::File include Msf::Post::Windows::Priv include Msf::Post::Windows::Services + include Msf::Post::Windows::Error START_TYPE = { "demand" => "SERVICE_DEMAND_START", @@ -81,11 +82,11 @@ class Metasploit3 < Msf::Post if inst ss = service_start(name) case ss - when Windows::Error::SUCCESS; + when Windows::Error::SUCCESS print_good("Driver loaded successfully.") - when Windows::Error::SERVICE_ALREADY_RUNNING; + when Windows::Error::SERVICE_ALREADY_RUNNING print_error("Service already started.") - when Windows::Error::SERVICE_DISABLED; + when Windows::Error::SERVICE_DISABLED print_error("Service disabled.") else print_error("There was an error starting the service.")