diff --git a/modules/exploits/linux/http/vinchin_backup_recovery_cmd_inject.rb b/modules/exploits/linux/http/vinchin_backup_recovery_cmd_inject.rb index 13b79e926ec4..896c5085e284 100644 --- a/modules/exploits/linux/http/vinchin_backup_recovery_cmd_inject.rb +++ b/modules/exploits/linux/http/vinchin_backup_recovery_cmd_inject.rb @@ -84,13 +84,13 @@ def check target_uri_path = normalize_uri(target_uri.path, 'login.php') res = send_request_cgi('uri' => target_uri_path) - return CheckCode::Unknown.new('Failed to connect to the target.') unless res + return CheckCode::Unknown('Failed to connect to the target.') unless res version_pattern = /Vinchin build: (\d+\.\d+\.\d+\.\d+)/ version_match = res.body.match(version_pattern) if !version_match || !version_match[1] - return CheckCode::Unknown.new('Unable to extract version.') + return CheckCode::Unknown('Unable to extract version.') end version = Rex::Version.new(version_match[1])