mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
transformed cDel to pDel as a more generic option
This commit is contained in:
parent
dd0ed5f5da
commit
8720aad6dc
|
@ -652,7 +652,7 @@ def paramToDict(place, parameters=None):
|
|||
if place != PLACE.SOAP:
|
||||
parameters = parameters.replace(", ", ",")
|
||||
|
||||
splitParams = parameters.split(conf.cDel if place == PLACE.COOKIE else "&")
|
||||
splitParams = parameters.split(conf.pDel or (";" if place == PLACE.COOKIE else "&"))
|
||||
|
||||
for element in splitParams:
|
||||
elem = element.split("=")
|
||||
|
|
|
@ -14,7 +14,6 @@ _defaults = {
|
|||
"googlePage": 1,
|
||||
"cpuThrottle": 5,
|
||||
"verbose": 1,
|
||||
"cDel": ";",
|
||||
"delay": 0,
|
||||
"timeout": 30,
|
||||
"retries": 3,
|
||||
|
|
|
@ -24,8 +24,8 @@ optDict = {
|
|||
|
||||
"Request": {
|
||||
"data": "string",
|
||||
"pDel": "string",
|
||||
"cookie": "string",
|
||||
"cDel": "string",
|
||||
"cookieUrlencode": "boolean",
|
||||
"dropSetCookie": "boolean",
|
||||
"agent": "string",
|
||||
|
|
|
@ -68,12 +68,12 @@ def cmdLineParser():
|
|||
request.add_option("--data", dest="data",
|
||||
help="Data string to be sent through POST")
|
||||
|
||||
request.add_option("--param-del", dest="pDel",
|
||||
help="Character used for splitting parameter values")
|
||||
|
||||
request.add_option("--cookie", dest="cookie",
|
||||
help="HTTP Cookie header")
|
||||
|
||||
request.add_option("--cookie-del", dest="cDel",
|
||||
help="Delimiter character used for splitting cookie values")
|
||||
|
||||
request.add_option("--cookie-urlencode", dest="cookieUrlencode",
|
||||
action="store_true",
|
||||
help="URL Encode generated cookie injections")
|
||||
|
|
|
@ -36,12 +36,12 @@ googleDork =
|
|||
# Data string to be sent through POST.
|
||||
data =
|
||||
|
||||
# Character used for splitting cookie values
|
||||
pDel =
|
||||
|
||||
# HTTP Cookie header.
|
||||
cookie =
|
||||
|
||||
# Delimiter character used for splitting cookie values
|
||||
cDel = ";"
|
||||
|
||||
# URL-encode generated cookie injections.
|
||||
# Valid: True or False
|
||||
cookieUrlencode = False
|
||||
|
|
Loading…
Reference in New Issue
Block a user