Bug fix (place overriden in case of token)

This commit is contained in:
Miroslav Stampar 2019-05-30 21:27:00 +02:00
parent c188eb5608
commit 1f7ee039ad
2 changed files with 5 additions and 5 deletions

View File

@ -18,7 +18,7 @@ from lib.core.enums import OS
from thirdparty.six import unichr as _unichr
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.3.5.153"
VERSION = "1.3.5.154"
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

View File

@ -1082,11 +1082,11 @@ class Connect(object):
if token:
token.value = token.value.strip("'\"")
for place in (PLACE.GET, PLACE.POST):
if place in conf.parameters:
if place == PLACE.GET and get:
for candidate in (PLACE.GET, PLACE.POST):
if candidate in conf.parameters:
if candidate == PLACE.GET and get:
get = _adjustParameter(get, token.name, token.value)
elif place == PLACE.POST and post:
elif candidate == PLACE.POST and post:
post = _adjustParameter(post, token.name, token.value)
for i in xrange(len(conf.httpHeaders)):