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

Skip to content

Commit 5767333

Browse files
committed
Fixes #3641
1 parent 7a17988 commit 5767333

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

lib/core/option.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
See the file 'LICENSE' for copying permission
66
"""
77

8+
import functools
89
import glob
910
import inspect
1011
import logging
@@ -52,6 +53,7 @@
5253
from lib.core.common import setPaths
5354
from lib.core.common import singleTimeWarnMessage
5455
from lib.core.common import urldecode
56+
from lib.core.compat import cmp
5557
from lib.core.compat import round
5658
from lib.core.compat import xrange
5759
from lib.core.convert import getUnicode
@@ -822,7 +824,7 @@ def _setTamperingFunctions():
822824
logger.warning(warnMsg)
823825

824826
if resolve_priorities and priorities:
825-
priorities.sort(reverse=True)
827+
priorities.sort(key=functools.cmp_to_key(lambda a, b: cmp(a[0], b[0])), reverse=True)
826828
kb.tamperFunctions = []
827829

828830
for _, function in priorities:

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty import six
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.3.5.59"
21+
VERSION = "1.3.5.60"
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)

0 commit comments

Comments
 (0)