File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818from 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 "
2222TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2323TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2424VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
601601# Step used in ORDER BY technique used for finding the right number of columns in UNION query injections
602602ORDER_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)
605608MAX_REVALIDATION_STEPS = 5
606609
Original file line number Diff line number Diff line change 3838from lib .core .settings import MIN_STATISTICAL_RANGE
3939from lib .core .settings import MIN_UNION_RESPONSES
4040from lib .core .settings import NULL
41+ from lib .core .settings import ORDER_BY_MAX
4142from lib .core .settings import ORDER_BY_STEP
4243from lib .core .settings import UNION_MIN_RESPONSE_CHARS
4344from 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
You can’t perform that action at this time.
0 commit comments