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

Skip to content

Commit a324901

Browse files
committed
Patch for an Issue #2690
1 parent 96f8087 commit a324901

3 files changed

Lines changed: 5 additions & 5 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.1.9.7"
22+
VERSION = "1.1.9.8"
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)

tamper/greatest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ def tamper(payload, **kwargs):
3636
retVal = payload
3737

3838
if payload:
39-
match = re.search(r"(?i)(\b(AND|OR)\b\s+)(?!.*\b(AND|OR)\b)([^>]+?)\s*>\s*([^>#-]+)", payload)
39+
match = re.search(r"(?i)(\b(AND|OR)\b\s+)([^>]+?)\s*>\s*(\w+|'[^']+')", payload)
4040

4141
if match:
42-
_ = "%sGREATEST(%s,%s+1)=%s" % (match.group(1), match.group(4), match.group(5), match.group(4))
42+
_ = "%sGREATEST(%s,%s+1)=%s" % (match.group(1), match.group(3), match.group(4), match.group(3))
4343
retVal = retVal.replace(match.group(0), _)
4444

4545
return retVal

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ c5f09788ee8ff9c9d12a052986875bc6 lib/core/option.py
4646
d8e9250f3775119df07e9070eddccd16 lib/core/replication.py
4747
785f86e3f963fa3798f84286a4e83ff2 lib/core/revision.py
4848
40c80b28b3a5819b737a5a17d4565ae9 lib/core/session.py
49-
4bb83f1325fdd8aea4f88b090ce304f2 lib/core/settings.py
49+
0462adcff8d2d98318bbcaf29e9c9ca9 lib/core/settings.py
5050
d91291997d2bd2f6028aaf371bf1d3b6 lib/core/shell.py
5151
2ad85c130cc5f2b3701ea85c2f6bbf20 lib/core/subprocessng.py
5252
1576b63db3261e2afd5459189abf967b lib/core/target.py
@@ -240,7 +240,7 @@ f341a48112354a50347546fa73f4f531 tamper/commalessmid.py
240240
28c21fd9c9801d398698c646bb894260 tamper/concat2concatws.py
241241
d496b8abd40ea1a86c771d9d20174f61 tamper/equaltolike.py
242242
fb3c31b72675f6ef27fa420a4e974a55 tamper/escapequotes.py
243-
9efcdbfd3012d3c84ee67e87550d8432 tamper/greatest.py
243+
a5770c537c7e05510108af62fa0ad7b0 tamper/greatest.py
244244
b3df54fef913223b4f4fd90aa122870f tamper/halfversionedmorekeywords.py
245245
a3a0e76922b4f40f422a0daca4e71af3 tamper/htmlencode.py
246246
6fa2d48bf8a1020a07d1cb95a14688a8 tamper/ifnull2ifisnull.py

0 commit comments

Comments
 (0)