mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
added switch --cookie-del by request
This commit is contained in:
parent
4eeeb3655e
commit
f65abdaae3
|
@ -488,10 +488,7 @@ def paramToDict(place, parameters=None):
|
||||||
if place != PLACE.SOAP:
|
if place != PLACE.SOAP:
|
||||||
parameters = parameters.replace(", ", ",")
|
parameters = parameters.replace(", ", ",")
|
||||||
|
|
||||||
if place == PLACE.COOKIE:
|
splitParams = parameters.split(conf.cDel if place == PLACE.COOKIE else "&")
|
||||||
splitParams = parameters.split(";")
|
|
||||||
else:
|
|
||||||
splitParams = parameters.split("&")
|
|
||||||
|
|
||||||
for element in splitParams:
|
for element in splitParams:
|
||||||
elem = element.split("=")
|
elem = element.split("=")
|
||||||
|
|
|
@ -69,6 +69,9 @@ def cmdLineParser():
|
||||||
request.add_option("--cookie", dest="cookie",
|
request.add_option("--cookie", dest="cookie",
|
||||||
help="HTTP Cookie header")
|
help="HTTP Cookie header")
|
||||||
|
|
||||||
|
request.add_option("--cookie-del", dest="cDel", default=";",
|
||||||
|
help="Delimiter character used for splitting cookie values")
|
||||||
|
|
||||||
request.add_option("--cookie-urlencode", dest="cookieUrlencode",
|
request.add_option("--cookie-urlencode", dest="cookieUrlencode",
|
||||||
action="store_true", default=False,
|
action="store_true", default=False,
|
||||||
help="URL Encode generated cookie injections")
|
help="URL Encode generated cookie injections")
|
||||||
|
|
|
@ -39,6 +39,9 @@ data =
|
||||||
# HTTP Cookie header.
|
# HTTP Cookie header.
|
||||||
cookie =
|
cookie =
|
||||||
|
|
||||||
|
# Delimiter character used for splitting cookie values
|
||||||
|
cDel = ";"
|
||||||
|
|
||||||
# URL-encode generated cookie injections.
|
# URL-encode generated cookie injections.
|
||||||
# Valid: True or False
|
# Valid: True or False
|
||||||
cookieUrlencode = False
|
cookieUrlencode = False
|
||||||
|
|
Loading…
Reference in New Issue
Block a user