Skip to content

Commit 89f9e5b

Browse files
committed
Fixes #5477
1 parent 5ad099c commit 89f9e5b

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

lib/controller/checks.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ def checkSqlInjection(place, parameter, value):
217217
if _ > 1:
218218
__ = 2 * (_ - 1) + 1 if _ == lower else 2 * _
219219
unionExtended = True
220+
test.request._columns = test.request.columns
220221
test.request.columns = re.sub(r"\b%d\b" % _, str(__), test.request.columns)
221222
title = re.sub(r"\b%d\b" % _, str(__), title)
222223
test.title = re.sub(r"\b%d\b" % _, str(__), test.title)
@@ -819,6 +820,9 @@ def genCmpPayload():
819820
choice = readInput(msg, default=str(conf.verbose), checkBatch=False)
820821
conf.verbose = int(choice)
821822
setVerbosity()
823+
if hasattr(test.request, "columns") and hasattr(test.request, "_columns"):
824+
test.request.columns = test.request._columns
825+
delattr(test.request, "_columns")
822826
tests.insert(0, test)
823827
elif choice == 'N':
824828
return None

lib/core/datatype.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,19 @@ def __getattr__(self, item):
4949
else:
5050
return None
5151

52+
def __delattr__(self, item):
53+
"""
54+
Deletes attributes
55+
"""
56+
57+
try:
58+
return self.pop(item)
59+
except KeyError:
60+
if self.keycheck:
61+
raise AttributeError("unable to access item '%s'" % item)
62+
else:
63+
return None
64+
5265
def __setattr__(self, item, value):
5366
"""
5467
Maps attributes to values

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.7.8.1"
23+
VERSION = "1.7.8.2"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

0 commit comments

Comments
 (0)