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

Skip to content

Commit cd88caa

Browse files
committed
Fixes #2977
1 parent c024233 commit cd88caa

3 files changed

Lines changed: 11 additions & 9 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.enums import OS
2020

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

lib/techniques/union/test.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,14 +142,16 @@ def _orderByTest(cols):
142142

143143
elif abs(max_ - min_) >= MIN_STATISTICAL_RANGE:
144144
deviation = stdev(ratios)
145-
lower, upper = average(ratios) - UNION_STDEV_COEFF * deviation, average(ratios) + UNION_STDEV_COEFF * deviation
146145

147-
if min_ < lower:
148-
retVal = minItem[0]
146+
if deviation is not None:
147+
lower, upper = average(ratios) - UNION_STDEV_COEFF * deviation, average(ratios) + UNION_STDEV_COEFF * deviation
149148

150-
if max_ > upper:
151-
if retVal is None or abs(max_ - upper) > abs(min_ - lower):
152-
retVal = maxItem[0]
149+
if min_ < lower:
150+
retVal = minItem[0]
151+
152+
if max_ > upper:
153+
if retVal is None or abs(max_ - upper) > abs(min_ - lower):
154+
retVal = maxItem[0]
153155
finally:
154156
kb.errorIsNone = popValue()
155157

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ ffa5f01f39b17c8d73423acca6cfe86a lib/core/readlineng.py
4646
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
4747
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
4848
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
49-
a4f32062f445d10c9cb655595beecc78 lib/core/settings.py
49+
401efa6aae28b56f34420323ac4c2296 lib/core/settings.py
5050
d0adc28a38e43a787df4471f7f027413 lib/core/shell.py
5151
63491be462c515a1a3880c27c2acc4a2 lib/core/subprocessng.py
5252
3cc852f927833895361973fbcfd156d2 lib/core/target.py
@@ -96,7 +96,7 @@ b84d45fc7349caa714f9769b13d70cab lib/techniques/blind/inference.py
9696
627ddc86a5a969e5509c7531c5c27a6c lib/techniques/error/use.py
9797
1e5532ede194ac9c083891c2f02bca93 lib/techniques/__init__.py
9898
1e5532ede194ac9c083891c2f02bca93 lib/techniques/union/__init__.py
99-
e58ab8029ffb2cc37e42d68747c4da39 lib/techniques/union/test.py
99+
da5a117fb64723e6c815b0e33d50f66a lib/techniques/union/test.py
100100
ac67ebbabd06bf9853befc65ad49679e lib/techniques/union/use.py
101101
e4146464cf968d4015a52cb8c10e3da5 lib/utils/api.py
102102
37dfb641358669f62c2acedff241348b lib/utils/brute.py

0 commit comments

Comments
 (0)