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

Skip to content

Commit 2647ac9

Browse files
committed
Bug fix (less queries to make - patching the patch 3544793)
1 parent 9b9902b commit 2647ac9

3 files changed

Lines changed: 6 additions & 6 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.3.3.12"
22+
VERSION = "1.3.3.13"
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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,9 @@ def _unionTestByCharBruteforce(comment, place, parameter, value, prefix, suffix)
303303
if not all((validPayload, vector)) and not warnMsg.endswith("consider "):
304304
singleTimeWarnMessage(warnMsg)
305305

306-
if count and orderBy is None and kb.orderByColumns is not None: # discard ORDER BY results (not usable - e.g. maybe invalid altogether)
307-
conf.uChar, kb.uChar = uChars
308-
validPayload, vector = _unionTestByCharBruteforce(comment, place, parameter, value, prefix, suffix)
306+
if orderBy is None and kb.orderByColumns is not None and not all((validPayload, vector)): # discard ORDER BY results (not usable - e.g. maybe invalid altogether)
307+
conf.uChar, kb.uChar = uChars
308+
validPayload, vector = _unionTestByCharBruteforce(comment, place, parameter, value, prefix, suffix)
309309

310310
return validPayload, vector
311311

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ d5ef43fe3cdd6c2602d7db45651f9ceb lib/core/readlineng.py
5050
7d8a22c582ad201f65b73225e4456170 lib/core/replication.py
5151
3179d34f371e0295dd4604568fb30bcd lib/core/revision.py
5252
d6269c55789f78cf707e09a0f5b45443 lib/core/session.py
53-
011dfdf53d887c215e533be10a7bd69a lib/core/settings.py
53+
b4db7c3967f8c8daa5f32f1c5efd8b1b lib/core/settings.py
5454
4483b4a5b601d8f1c4281071dff21ecc lib/core/shell.py
5555
10fd19b0716ed261e6d04f311f6f527c lib/core/subprocessng.py
5656
0a5b0a97a36c19022665f66858fd7450 lib/core/target.py
@@ -100,7 +100,7 @@ fb6be55d21a70765e35549af2484f762 lib/techniques/error/__init__.py
100100
7b58029a51b9bf989d18e5bb6e99635c lib/techniques/error/use.py
101101
fb6be55d21a70765e35549af2484f762 lib/techniques/__init__.py
102102
fb6be55d21a70765e35549af2484f762 lib/techniques/union/__init__.py
103-
9d9a6148f10693aaab5fac1273d981d4 lib/techniques/union/test.py
103+
54d077ef49056031fe746bcc53b1f081 lib/techniques/union/test.py
104104
e141fb96f2a136bafd6bb2350f02d33b lib/techniques/union/use.py
105105
8e9ddc7220f6beda89cc45c65e51e72b lib/utils/api.py
106106
544dee96e782560fe4355cbf6ee19b8c lib/utils/brute.py

0 commit comments

Comments
 (0)