transformed cDel to pDel as a more generic option

This commit is contained in:
Miroslav Stampar 2011-10-06 22:03:33 +00:00
parent dd0ed5f5da
commit 8720aad6dc
5 changed files with 8 additions and 9 deletions

View File

@ -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("=")

View File

@ -14,7 +14,6 @@ _defaults = {
"googlePage": 1,
"cpuThrottle": 5,
"verbose": 1,
"cDel": ";",
"delay": 0,
"timeout": 30,
"retries": 3,

View File

@ -24,8 +24,8 @@ optDict = {
"Request": {
"data": "string",
"pDel": "string",
"cookie": "string",
"cDel": "string",
"cookieUrlencode": "boolean",
"dropSetCookie": "boolean",
"agent": "string",

View File

@ -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")

View File

@ -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