File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818from 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 "
2222TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2323TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2424VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
Original file line number Diff line number Diff line change 55See the file 'LICENSE' for copying permission
66"""
77
8- from lib .core .compat import xrange
98from lib .core .data import kb
109from lib .core .enums import PRIORITY
1110
@@ -16,7 +15,7 @@ def dependencies():
1615
1716def 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
You can’t perform that action at this time.
0 commit comments