mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-09-01 08:41:24 +00:00
Fixing shitty concat2concatws tamper script
This commit is contained in:
parent
762037e78d
commit
d373eeaea5
3 changed files with 5 additions and 4 deletions
|
|
@ -6,6 +6,7 @@ See the file 'LICENSE' for copying permission
|
|||
"""
|
||||
|
||||
import os
|
||||
import re
|
||||
|
||||
from lib.core.common import singleTimeWarnMessage
|
||||
from lib.core.enums import DBMS
|
||||
|
|
@ -35,6 +36,6 @@ def tamper(payload, **kwargs):
|
|||
"""
|
||||
|
||||
if payload:
|
||||
payload = payload.replace("CONCAT(", "CONCAT_WS(MID(CHAR(0),0,0),")
|
||||
payload = re.sub(r"(?i)(?<!GROUP_)CONCAT\(", "CONCAT_WS(MID(CHAR(0),0,0),", payload)
|
||||
|
||||
return payload
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue