Skip to content

Commit bce8f34

Browse files
committed
Set proper Cookie header from built cookie string
1 parent a3e1e11 commit bce8f34

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

modules/auxiliary/scanner/http/owa_login.rb

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -224,13 +224,7 @@ def try_user_pass(opts)
224224
return :abort
225225
end
226226
end
227-
sessionid_value = cookies.split('sessionid=')[1]
228-
sessionid_value = sessionid_value.to_s.split('; ')[0]
229-
sessionid_header = "sessionid=#{sessionid_value}"
230-
cadata_value = cookies.split('cadata=')[1]
231-
cadata_value = cadata_value.to_s.split('; ')[0]
232-
cadata_header = "cadata=#{cadata_value}"
233-
headers['Cookie'] = 'PBack=0; ' << sessionid_header << '; ' << cadata_header
227+
headers['Cookie'] = cookie_header
234228
end
235229

236230
begin

0 commit comments

Comments
 (0)