mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Fixes #2547
This commit is contained in:
parent
0864387885
commit
6dd9d5b2dd
3 changed files with 4 additions and 6 deletions
|
|
@ -90,14 +90,12 @@ def forgeHeaders(items=None):
|
|||
headers[key] = value
|
||||
|
||||
if conf.cj:
|
||||
import pdb
|
||||
pdb.set_trace()
|
||||
if HTTP_HEADER.COOKIE in headers:
|
||||
for cookie in conf.cj:
|
||||
if cookie.domain_specified and not conf.hostname.endswith(cookie.domain):
|
||||
continue
|
||||
|
||||
if ("%s=" % getUnicode(cookie.name)) in headers[HTTP_HEADER.COOKIE]:
|
||||
if ("%s=" % getUnicode(cookie.name)) in getUnicode(headers[HTTP_HEADER.COOKIE]):
|
||||
if conf.loadCookies:
|
||||
conf.httpHeaders = filter(None, ((item if item[0] != HTTP_HEADER.COOKIE else None) for item in conf.httpHeaders))
|
||||
elif kb.mergeCookies is None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue