Skip to content

Commit 60767de

Browse files
committed
Patching issue that got into with patch for #2934 (ORDER BY was unusable in majority of regular cases)
1 parent 29e683f commit 60767de

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

‎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.4.15"
22+
VERSION = "1.2.4.16"
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def _findUnionCharCount(comment, place, parameter, value, prefix, suffix, where=
5050
retVal = None
5151

5252
@stackedmethod
53-
def _orderByTechnique(lowerCount, upperCount):
53+
def _orderByTechnique(lowerCount=None, upperCount=None):
5454
def _orderByTest(cols):
5555
query = agent.prefixQuery("ORDER BY %d" % cols, prefix=prefix)
5656
query = agent.suffixQuery(query, suffix=suffix, comment=comment)
@@ -91,7 +91,7 @@ def _orderByTest(cols):
9191
lowerCount, upperCount = conf.uColsStart, conf.uColsStop
9292

9393
if lowerCount == 1 or conf.uCols:
94-
found = kb.orderByColumns or _orderByTechnique(lowerCount, upperCount)
94+
found = kb.orderByColumns or (_orderByTechnique(lowerCount, upperCount) if conf.uCols else _orderByTechnique())
9595
if found:
9696
kb.orderByColumns = found
9797
infoMsg = "target URL appears to have %d column%s in query" % (found, 's' if found > 1 else "")

‎txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ c9a56e58984420a5abb7a3f7aadc196d lib/core/optiondict.py
4646
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
4747
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
4848
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
49-
e22083ec5717d91e68a18bf73ebcc628 lib/core/settings.py
49+
f01ac839011009e7c219fc11f528f348 lib/core/settings.py
5050
0dfc2ed40adf72e302291f6ecd4406f6 lib/core/shell.py
5151
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
5252
a35efa7bec9f1e6cedf17c9830a79241 lib/core/target.py
@@ -96,7 +96,7 @@ f1decf0a987bd3a4bc757212cbe6a6c8 lib/takeover/xp_cmdshell.py
9696
f999f2e88dea9ac8831eb2f468478b5f lib/techniques/error/use.py
9797
1e5532ede194ac9c083891c2f02bca93 lib/techniques/__init__.py
9898
1e5532ede194ac9c083891c2f02bca93 lib/techniques/union/__init__.py
99-
cbe59feb11526068bbbd35dca97b3b37 lib/techniques/union/test.py
99+
a36be917cf86a5ee407c83d74567f324 lib/techniques/union/test.py
100100
11ecf2effbe9f40b361843d546c3c521 lib/techniques/union/use.py
101101
c552f8d924d962a26f2ded250bcea3b8 lib/utils/api.py
102102
37dfb641358669f62c2acedff241348b lib/utils/brute.py

0 commit comments

Comments
 (0)