Skip to content

Commit

Permalink
Fix statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocapikk committed Dec 20, 2023
1 parent 22a05c8 commit 9c9af0d
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -67,7 +67,7 @@ def send_request_with_auth(uri, method: 'GET', vars_get: {}, vars_post: {})
end

def majordomo?
favicon_uri = normalize_uri(datastore['TARGETURI'], '/favicon.ico')
favicon_uri = normalize_uri(datastore['TARGETURI'], 'favicon.ico')
res = send_request_with_auth(favicon_uri)

if res.nil? || res.code != 200
Expand Down Expand Up @@ -102,6 +102,6 @@ def check

return CheckCode::Unknown if res.nil?

res.code == 200 ? CheckCode::Safe : CheckCode::Vulnerable
res.code == 200 ? CheckCode::Vulnerable : CheckCode::Safe
end
end

0 comments on commit 9c9af0d

Please sign in to comment.