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

Skip to content

Commit d51e45f

Browse files
committed
Minor update for #4344
1 parent 3258e29 commit d51e45f

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

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.six import unichr as _unichr
1919

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

tamper/sleep2getlock.py

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

8-
from lib.core.compat import xrange
98
from lib.core.data import kb
109
from lib.core.enums import PRIORITY
1110

@@ -16,7 +15,7 @@ def dependencies():
1615

1716
def tamper(payload, **kwargs):
1817
"""
19-
Replaces instances like 'SLEEP(5)' with (e.g.) "get_lock('ETgP',5)"
18+
Replaces instances like 'SLEEP(5)' with (e.g.) "GET_LOCK('ETgP',5)"
2019
2120
Requirement:
2221
* MySQL
@@ -30,11 +29,11 @@ def tamper(payload, **kwargs):
3029
3130
* Reference: https://zhuanlan.zhihu.com/p/35245598
3231
33-
>>> tamper('SLEEP(5)') == "get_lock('%s',5)" % kb.aliasName
32+
>>> tamper('SLEEP(5)') == "GET_LOCK('%s',5)" % kb.aliasName
3433
True
3534
"""
3635

3736
if payload:
38-
payload = payload.replace("SLEEP(", "get_lock('%s'," % kb.aliasName)
37+
payload = payload.replace("SLEEP(", "GET_LOCK('%s'," % kb.aliasName)
3938

4039
return payload

0 commit comments

Comments
 (0)