Qsreplace
Replace query string parameters
Recon & OSINT2 commands
#url#query#replace#golang
Installation
1Install via Go
2Verify installation
# Using Go
go install github.com/tomnomnom/qsreplace@latest
# Verify
qsreplace -hBasic Usage
Replace or manipulate query string values in URLs
# Replace all parameter values with a payload
cat urls.txt | qsreplace "payload"
# Accept all parameters (remove values)
cat urls.txt | qsreplace -a
# Replace with blank values
cat urls.txt | qsreplace ""
# Pipe to other tools for testing
cat urls.txt | qsreplace "><script>alert(1)</script>" | dalfox pipeCommand Reference
2 commands
1Accept all parameters (remove values)
-a2Show help
-hWhen to Use
1
Preparing URLs for XSS payload injection2
SQL injection parameter testing3
Replacing parameter values for fuzzing4
Normalizing URL structures for comparison5
Piping cleaned URLs into other toolsNotes & Tips
1
Simple but powerful tool for URL manipulation2
Often used in pipelines with httpx, dalfox, and nuclei3
Preserves URL structure while swapping parameter values4
Designed for chaining with other TomNomNom toolsCommon Errors & Solutions
No input URLs
Pipe URLs via stdin: cat urls.txt | qsreplace
No parameters in URLs
Input URLs must contain query parameters to replace