Improve error message
This commit is contained in:
parent
e0fbc9fd05
commit
89f7be3ef0
|
@ -21,7 +21,7 @@ module Exploit::Remote::AutoCheck
|
|||
print_status('Executing automatic check (disable AutoCheck to override)')
|
||||
|
||||
warning_msg = 'ForceExploit is enabled, proceeding with exploitation.'
|
||||
error_msg = 'Enable ForceExploit to override.'
|
||||
error_msg = 'Enable ForceExploit to override check result.'
|
||||
|
||||
case (checkcode = check)
|
||||
when Exploit::CheckCode::Vulnerable, Exploit::CheckCode::Appears
|
||||
|
|
|
@ -119,15 +119,15 @@ RSpec.describe Msf::Exploit::Remote::AutoCheck do
|
|||
|
||||
it_behaves_like "An AutoCheck module which can be overridden",
|
||||
check_code: ::Msf::Exploit::CheckCode::Safe,
|
||||
expected_error: "The target is not exploitable. Enable ForceExploit to override."
|
||||
expected_error: "The target is not exploitable. Enable ForceExploit to override check result."
|
||||
|
||||
it_behaves_like "An AutoCheck module which can be overridden",
|
||||
check_code: ::Msf::Exploit::CheckCode::Unsupported,
|
||||
expected_error: "This module does not support check. Enable ForceExploit to override."
|
||||
expected_error: "This module does not support check. Enable ForceExploit to override check result."
|
||||
|
||||
it_behaves_like "An AutoCheck module which can be overridden",
|
||||
check_code: ::Msf::Exploit::CheckCode::Unknown,
|
||||
expected_error: "Cannot reliably check exploitability. Enable ForceExploit to override."
|
||||
expected_error: "Cannot reliably check exploitability. Enable ForceExploit to override check result."
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue