> For the complete documentation index, see [llms.txt](https://davidtancredi.gitbook.io/pentesting-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://davidtancredi.gitbook.io/pentesting-notes/r3dcl1ff/webapp-pentest/text-manipulation/qsreplace-tomnomnom.md).

# qsreplace (Tomnomnom)

Accept URLs on stdin, replace all query string values with a user-supplied value, only output each combination of query string parameters once per host and path.

```
Install from source:

sudo git clone https://github.com/tomnomnom/qsreplace.git
cd qsreplace
sudo go build
sudo mv qsreplace /usr/local/bin
qsreplace --help

###Replace or append values to a given url###
Replace:
cat urls.txt 
https://example.com/path?one=1&two=2

cat urls.txt | qsreplace newval
https://example.com/path?one=newval&two=newval

Append:
cat urls.txt | qsreplace -a newval
https://example.com/path?one=1newval&two=2newval


```
