-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Description
Describe the bug
The prefix and suffix is changing backslashes to __BACKSLASH
To Reproduce
- Run 'sqlmap -u 'http://docker.hackthebox.eu:30444/?obj=eyJJRCI6IjEifQo=' --base64=obj --prefix='{"ID":"' --suffix='"}' -v 5'
- Decode base64 encoded parameter and you'll see the backslashes are changed to __BACKSLASH
Expected behavior
{"ID":"{"ID":"'UNION SELECT * FROM (SELECT 1)a JOIN (SELECT 1)b#"}"}
I wanted sqlmap to place payloads where "UNION SELECT * FROM (SELECT 1)a JOIN (SELECT 1)b#" is and figured I could use prefixes to accomplish this.
Screenshots
If applicable, add screenshots to help explain your problem.
Running environment:
- sqlmap version [1.4.5.27#dev]
- Installation method [git]
- Operating system: [Debian Linux]
- Python version [3.8.3]
Target details:
- DBMS [MySQL]
- SQLi techniques found by sqlmap [e.g. error-based and boolean-based blind]
- WAF/IPS [if any]
- Relevant console output [if any]
- Exception traceback [if any]
Additional context
Challenge EZPZ on hackthebox