Skip to content

Commit a5e14d5

Browse files
committed
Use checkcode status text when not obviously vulnerable, more consistent text
1 parent 14fc8d4 commit a5e14d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/auxiliary/scanner/http/allegro_rompager_misfortune_cookie.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def run_host(ip)
6565
when Exploit::CheckCode::Vulnerable
6666
print_good("#{peer} #{status.last}")
6767
else
68-
vprint_status("#{peer} is not vulnerable")
68+
vprint_status("#{peer} #{status.last}")
6969
end
7070
end
7171

@@ -171,7 +171,7 @@ def test_misfortune
171171
# Exploit::CheckCode::Vulnerable
172172
if res.body.include?(canary_value)
173173
if res.body.include?(canary_cookie_name)
174-
vprint_status("#{full_uri} HTTP code #{res.code} response contained test cookie name #{canary_cookie_name}")
174+
vprint_status("#{full_uri} HTTP code #{res.code} response contained canary cookie name #{canary_cookie_name}")
175175
return check_response_fingerprint(res, Exploit::CheckCode::Detected)
176176
else
177177
vprint_good("#{full_uri} HTTP code #{res.code} response contained canary cookie value #{canary_value} as URI")

0 commit comments

Comments
 (0)