Less repetitive error messages
parent
26659d8b17
commit
5cdab2ef41
|
@ -88,7 +88,7 @@ class Metasploit3 < Msf::Post
|
||||||
cmd_exec("sudo -s")
|
cmd_exec("sudo -s")
|
||||||
end
|
end
|
||||||
rescue
|
rescue
|
||||||
print_error "SUDO: Passwordless sudo didn't work out."
|
print_error "SUDO: Passwordless sudo failed."
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
|
@ -110,7 +110,7 @@ class Metasploit3 < Msf::Post
|
||||||
cmd_exec("rm #{askpass_sh}")
|
cmd_exec("rm #{askpass_sh}")
|
||||||
end
|
end
|
||||||
rescue ::IOError, ::Timeout::Error
|
rescue ::IOError, ::Timeout::Error
|
||||||
print_error "Sudo with a password didn't work out."
|
print_error "Sudo with a password failed."
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue