Skip to content

Commit d79810a

Browse files
Update modules/exploits/multi/http/wingftp_null_byte_rce.rb
Co-authored-by: msutovsky-r7 <[email protected]>
1 parent d625ab5 commit d79810a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/multi/http/wingftp_null_byte_rce.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def exploit
133133
)
134134
fail_with(Failure::UnexpectedReply, 'Injection failed') unless res&.code == 200
135135

136-
uid = res.get_cookies.to_s[/UID=[^;]+/]
136+
uid = res.get_cookies_parsed.fetch('UID', nil)
137137
fail_with(Failure::UnexpectedReply, 'UID cookie not returned') unless uid
138138
print_good("Received UID: #{uid}, injection succeeded")
139139

0 commit comments

Comments
 (0)