mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 02:53:46 +03:00
Fixes #5477
This commit is contained in:
parent
5ad099c61d
commit
89f9e5b1e0
|
@ -217,6 +217,7 @@ def checkSqlInjection(place, parameter, value):
|
||||||
if _ > 1:
|
if _ > 1:
|
||||||
__ = 2 * (_ - 1) + 1 if _ == lower else 2 * _
|
__ = 2 * (_ - 1) + 1 if _ == lower else 2 * _
|
||||||
unionExtended = True
|
unionExtended = True
|
||||||
|
test.request._columns = test.request.columns
|
||||||
test.request.columns = re.sub(r"\b%d\b" % _, str(__), test.request.columns)
|
test.request.columns = re.sub(r"\b%d\b" % _, str(__), test.request.columns)
|
||||||
title = re.sub(r"\b%d\b" % _, str(__), title)
|
title = re.sub(r"\b%d\b" % _, str(__), title)
|
||||||
test.title = re.sub(r"\b%d\b" % _, str(__), test.title)
|
test.title = re.sub(r"\b%d\b" % _, str(__), test.title)
|
||||||
|
@ -819,6 +820,9 @@ def checkSqlInjection(place, parameter, value):
|
||||||
choice = readInput(msg, default=str(conf.verbose), checkBatch=False)
|
choice = readInput(msg, default=str(conf.verbose), checkBatch=False)
|
||||||
conf.verbose = int(choice)
|
conf.verbose = int(choice)
|
||||||
setVerbosity()
|
setVerbosity()
|
||||||
|
if hasattr(test.request, "columns") and hasattr(test.request, "_columns"):
|
||||||
|
test.request.columns = test.request._columns
|
||||||
|
delattr(test.request, "_columns")
|
||||||
tests.insert(0, test)
|
tests.insert(0, test)
|
||||||
elif choice == 'N':
|
elif choice == 'N':
|
||||||
return None
|
return None
|
||||||
|
|
|
@ -49,6 +49,19 @@ class AttribDict(dict):
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
def __delattr__(self, item):
|
||||||
|
"""
|
||||||
|
Deletes attributes
|
||||||
|
"""
|
||||||
|
|
||||||
|
try:
|
||||||
|
return self.pop(item)
|
||||||
|
except KeyError:
|
||||||
|
if self.keycheck:
|
||||||
|
raise AttributeError("unable to access item '%s'" % item)
|
||||||
|
else:
|
||||||
|
return None
|
||||||
|
|
||||||
def __setattr__(self, item, value):
|
def __setattr__(self, item, value):
|
||||||
"""
|
"""
|
||||||
Maps attributes to values
|
Maps attributes to values
|
||||||
|
|
|
@ -20,7 +20,7 @@ from thirdparty import six
|
||||||
from thirdparty.six import unichr as _unichr
|
from thirdparty.six import unichr as _unichr
|
||||||
|
|
||||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||||
VERSION = "1.7.8.1"
|
VERSION = "1.7.8.2"
|
||||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
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)
|
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user