Skip to content

Commit c65ff2f

Browse files
committed
Land rapid7#7646, get_cookies fix for dolibarr_login
2 parents 9325ef8 + 11906eb commit c65ff2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/scanner/http/dolibarr_login.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def get_sid_token
4646
return [nil, nil] if res.nil? || res.get_cookies.empty?
4747

4848
# Get the session ID from the cookie
49-
m = get_cookies.match(/(DOLSESSID_.+);/)
49+
m = res.get_cookies.match(/(DOLSESSID_.+);/)
5050
id = (m.nil?) ? nil : m[1]
5151

5252
# Get the token from the decompressed HTTP body response

0 commit comments

Comments
 (0)