Updated Jul 15, 2026

Utilities

Inject a payload into every URL query value

Replace every query-string value across a URL list.

commit 0b053d2 on Trickest · Go · MIT license

Free plan: 1 user, 3 execution slots, no card.

overview

What qsreplace does

qsreplace sits between a crawler and an injection tester. It rewrites every query value to a marker or payload you supply.

Use it when crawled URLs need payload injection and shape dedup before dalfox, kxss, or sqlmap runs.

Feed url-list plus replace-query-param; -a appends onto existing values instead of overwriting. Output is a file of rewritten URLs.

source github.com/tomnomnom/qsreplace · commit 0b053d2 on Trickest

image quay.io/trickest/qsreplace:0b053d2

use cases

qsreplace use cases

Inject a payload into every parameter

Replace each query-string value with an XSS or SQLi probe so crawled URLs arrive at the testing stage already carrying the payload.

Deduplicate parameter shapes

Collapse URLs that differ only in their values down to the unique parameter sets, so a fuzzing run tests each shape once instead of thousands of near-duplicates.

Append to existing values

Use -a to add a marker to current parameter values rather than overwriting them, preserving context the application expects.

Prime URLs for a fuzzer

Emit FUZZ (or a tool-specific marker) into every value, then hand the list to wfuzz, ffuf, or an XSS scanner.

reference

qsreplace inputs and flags

4 inputs
NameTypeFlagDescription
url-listFILE·File of URLs to rewrite (stdin equivalent on the CLI).
replace-query-paramSTRING·User-supplied value that replaces every query-string value.
append-to-query-paramSTRING-aAppend to query-string values instead of replacing them (-a).
each-param-combinationBOOLEAN-aOnly output each parameter combination.

Showing key inputs. qsreplace exposes 4 inputs in total.

example

qsreplace command examples

qsreplace · command
# replace every query value with an XSS probe
cat urls.txt | qsreplace '"><script>alert(1)</script>'
Illustrative
https://example.com/search?q="><script>alert(1)</script>&lang="><script>alert(1)</script>
https://example.com/product?id="><script>alert(1)</script>
https://example.com/redirect?next="><script>alert(1)</script>
https://app.example.com/api?user="><script>alert(1)</script>&ref="><script>alert(1)</script>
https://example.com/login?returnUrl="><script>alert(1)</script>
https://example.com/blog?page="><script>alert(1)</script>&sort="><script>alert(1)</script>

guidance

qsreplace vs alternatives

Use qsreplace to prepare crawled URLs for injection testing by swapping every parameter value for a payload and collapsing duplicate shapes. It rewrites URLs; it does not test them. Feed output to dalfox, kxss, or sqlmap.

ToolPick it when
unfurlDecomposes URLs into parts. Use it to extract or analyse components; qsreplace rewrites values.
gfGreps URLs for interesting patterns. Run it before qsreplace to select URLs worth injecting.
anewAppends only unique lines. Complements qsreplace dedup when merging URL sets from multiple sources.

faq

qsreplace FAQ

Every query-string value in each URL it reads. Parameter names stay the same; values become your fuzz marker or injection payload.

Append mode. Instead of overwriting each value, -a appends your string onto the existing query values so original context remains.

Yes. After rewriting, URLs that differed only in their old parameter values collapse to unique parameter shapes worth testing.

A vulnerability tester such as dalfox, kxss, or sqlmap that consumes the payload-injected, deduplicated URLs.

Use -a when the app still needs the original value and you only want to attach a probe, for example a suffix on an existing id or path.

Provide a url-list file and a replace-query-param string. That matches the CLI pattern of piping URLs on stdin into qsreplace.

Run qsreplace yourself

Crawled URLs feed qsreplace, which injects a payload into every parameter and deduplicates them for dalfox to test before the findings land as output.

Facts on this page come from the live Trickest tool library.