mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
Minor bug fix to --cookie-urlencode
This commit is contained in:
parent
c4215ce8d2
commit
505647b00f
2 changed files with 5 additions and 7 deletions
|
|
@ -26,7 +26,6 @@ import re
|
|||
|
||||
from lib.core.common import randomInt
|
||||
from lib.core.common import randomStr
|
||||
from lib.core.convert import urlencode
|
||||
from lib.core.data import conf
|
||||
from lib.core.data import kb
|
||||
from lib.core.data import queries
|
||||
|
|
@ -79,11 +78,6 @@ class Agent:
|
|||
retValue = paramString.replace("%s=%s" % (parameter, value),
|
||||
"%s=%s" % (parameter, newValue))
|
||||
|
||||
if conf.cookieUrlencode and (kb.injPlace == "Cookie" or place == "Cookie"):
|
||||
name = retValue[:retValue.find('=')]
|
||||
value = retValue[retValue.find('=') + 1:]
|
||||
retValue = "%s=%s" % (name, urlencode(value, convall=True))
|
||||
|
||||
return retValue
|
||||
|
||||
def fullPayload(self, query):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue