mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-25 08:59:02 +00:00
transformed cDel to pDel as a more generic option
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user