diff --git a/lib/msf/core/exploit/auto_check.rb b/lib/msf/core/exploit/auto_check.rb index 1177aa3574..3c466ed6ce 100644 --- a/lib/msf/core/exploit/auto_check.rb +++ b/lib/msf/core/exploit/auto_check.rb @@ -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 diff --git a/spec/lib/msf/core/exploit/remote/auto_check.rb b/spec/lib/msf/core/exploit/remote/auto_check.rb index 6cd9fb1041..a0260b8d08 100644 --- a/spec/lib/msf/core/exploit/remote/auto_check.rb +++ b/spec/lib/msf/core/exploit/remote/auto_check.rb @@ -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