Improve error message

This commit is contained in:
William Vu 2020-07-01 13:56:57 -05:00
parent e0fbc9fd05
commit 89f7be3ef0
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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