A command-line tool for modifying query parameters in URLs from standard input. It supports deduplication, appending or replacing values, and optional encoding control.
- Deduplicate URLs based on host, path, and query parameter names
- Optionally ignore the path for deduplication
- Replace or append query parameter values
- Optionally disable URL encoding for query values
Pipe URLs into qsmod and specify options:
cat urls.txt | ./qsmod [flags] <value>-a: Append the value instead of replacing it-ignore-path: Ignore the path when considering duplicates-no-encode: Do not URL encode query values (keep them raw)
Replace all query values with "test":
cat urls.txt | ./qsmod testAppend "123" to all query values:
cat urls.txt | ./qsmod -a 123Ignore path for deduplication:
cat urls.txt | ./qsmod -ignore-path testDisable encoding:
cat urls.txt | ./qsmod -no-encode testgit clone https://github.com/saeed0x1/qsmod.git
cd qsmod
go build -o qsmod main.gogo install github.com/saeed0x1/qsmod@latestMIT