mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
More replacements for refactoring.
Minor layout adjustments. Alignment of conffile/optiondict/cmdline parameters.
This commit is contained in:
parent
eb999de0f1
commit
78d7b17483
10 changed files with 41 additions and 23 deletions
|
|
@ -21,6 +21,7 @@ from lib.core.common import posixToNtSlashes
|
|||
from lib.core.data import conf
|
||||
from lib.core.data import kb
|
||||
from lib.core.data import logger
|
||||
from lib.core.enums import PLACE
|
||||
from lib.parse.headers import headersParser
|
||||
from lib.parse.html import htmlParser
|
||||
|
||||
|
|
@ -33,9 +34,9 @@ def forgeHeaders(cookie, ua):
|
|||
headers = {}
|
||||
|
||||
for header, value in conf.httpHeaders:
|
||||
if cookie and header == "Cookie":
|
||||
if cookie and header == PLACE.COOKIE:
|
||||
headers[header] = cookie
|
||||
elif ua and header == "User-Agent":
|
||||
elif ua and header == PLACE.UA:
|
||||
headers[header] = ua
|
||||
else:
|
||||
headers[header] = value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue