mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-15 02:32:31 +03:00
minor beautification
This commit is contained in:
parent
0db0571f35
commit
05b9951a8b
|
@ -334,15 +334,9 @@ def start():
|
||||||
checkNullConnection()
|
checkNullConnection()
|
||||||
|
|
||||||
if not conf.dropSetCookie and conf.cj:
|
if not conf.dropSetCookie and conf.cj:
|
||||||
for _, cookie in enumerate(conf.cj):
|
cookieStr = ";".join("%s=%s" % (getUnicode(cookie.name), getUnicode(cookie.value)) for _, cookie in enumerate(conf.cj))
|
||||||
cookie = getUnicode(cookie)
|
|
||||||
index = cookie.index(" for ")
|
|
||||||
|
|
||||||
cookieStr += "%s;" % cookie[8:index]
|
|
||||||
|
|
||||||
if cookieStr:
|
if cookieStr:
|
||||||
cookieStr = cookieStr[:-1]
|
|
||||||
|
|
||||||
if PLACE.COOKIE in conf.parameters:
|
if PLACE.COOKIE in conf.parameters:
|
||||||
message = "you provided an HTTP Cookie header value. "
|
message = "you provided an HTTP Cookie header value. "
|
||||||
message += "The target url provided its own Cookie within "
|
message += "The target url provided its own Cookie within "
|
||||||
|
|
Loading…
Reference in New Issue
Block a user