Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ce65733

Browse files
committed
Minor patch (problem reported via email)
1 parent 6ab1cf8 commit ce65733

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

lib/core/settings.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.3.11.106"
21+
VERSION = "1.3.11.107"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
@@ -601,6 +601,9 @@
601601
# Step used in ORDER BY technique used for finding the right number of columns in UNION query injections
602602
ORDER_BY_STEP = 10
603603

604+
# Maximum value used in ORDER BY technique used for finding the right number of columns in UNION query injections
605+
ORDER_BY_MAX = 1000
606+
604607
# Maximum number of times for revalidation of a character in inference (as required)
605608
MAX_REVALIDATION_STEPS = 5
606609

lib/techniques/union/test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
from lib.core.settings import MIN_STATISTICAL_RANGE
3939
from lib.core.settings import MIN_UNION_RESPONSES
4040
from lib.core.settings import NULL
41+
from lib.core.settings import ORDER_BY_MAX
4142
from lib.core.settings import ORDER_BY_STEP
4243
from lib.core.settings import UNION_MIN_RESPONSE_CHARS
4344
from lib.core.settings import UNION_STDEV_COEFF
@@ -74,6 +75,9 @@ def _orderByTest(cols):
7475
if not conf.uCols and _orderByTest(highCols):
7576
lowCols = highCols
7677
highCols += ORDER_BY_STEP
78+
79+
if highCols > ORDER_BY_MAX:
80+
break
7781
else:
7882
while not found:
7983
mid = highCols - (highCols - lowCols) // 2

0 commit comments

Comments
 (0)