Skip to content

Commit

Permalink
Add suggested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocapikk committed Nov 21, 2023
1 parent fff8d20 commit 9b050e2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 9b050e2

Please sign in to comment.