CTF Arsenal
Boot2Root / Command Mistakes & Recovery

Payload with quotes breaks when sent through a URL/parameter

1. Error or symptom

A command-injection or SQLi payload that worked locally fails or errors when sent via curl/browser.

2. Likely cause

Quotes/spaces/special characters aren't URL-encoded, or shell quoting on your own end mangles the payload before it's even sent.

3. How to verify

Echo/print the exact payload string right before sending it; compare byte-for-byte with what you intended.

4. Correct command

curl -G TARGET_URL --data-urlencode 'param=PAYLOAD'

5. Recovery procedure

Re-send using --data-urlencode or a proxy tool (Burp) that handles encoding for you.

6. How to avoid repeating it

Prefer Burp Repeater or --data-urlencode over manually hand-encoding special characters in a raw curl string.