Skip to content

Commit 4641b02

Browse files
committed
Base canary path from TARGET_URI
1 parent 1f6defd commit 4641b02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/scanner/http/allegro_rompager_misfortune_cookie.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def check_response_fingerprint(res, fallback_status)
7979
def find_canary
8080
vprint_status("#{peer} locating suitable canary URI")
8181
0.upto(4) do
82-
canary = '/' + Rex::Text.rand_text_alpha(16)
82+
canary = target_uri.path.to_s + '/' + Rex::Text.rand_text_alpha(16)
8383
res = send_request_raw(
8484
'uri' => normalize_uri(canary),
8585
'method' => 'GET',

0 commit comments

Comments
 (0)