Skip to content

Prefix and Suffix not using a backslash #4211

@uBadRequest

Description

@uBadRequest

Describe the bug
The prefix and suffix is changing backslashes to __BACKSLASH

To Reproduce

  1. Run 'sqlmap -u 'http://docker.hackthebox.eu:30444/?obj=eyJJRCI6IjEifQo=' --base64=obj --prefix='{"ID":"' --suffix='"}' -v 5'
  2. 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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions