Skip to content

Commit a6d86fb

Browse files
Update modules/exploits/linux/http/ictbroadcast_unauth_cookie.rb
Co-authored-by: msutovsky-r7 <[email protected]>
1 parent c8f756d commit a6d86fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/exploits/linux/http/ictbroadcast_unauth_cookie.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ def get_valid_cookies
5959
'uri' => normalize_uri(target_uri.path, 'login.php')
6060
)
6161

62-
return [] unless res&.get_cookies
63-
64-
cookies = res.get_cookies.split('; ').map do |c|
62+
res_cookies = res&.get_cookies
63+
return [] unless res_cookies
64+
cookies = res_cookies.split('; ').map do |c|
6565
key, value = c.split('=', 2)
6666
next unless key && value
6767

0 commit comments

Comments
 (0)