Skip to content

saeed0x1/qsmod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qsmod

A command-line tool for modifying query parameters in URLs from standard input. It supports deduplication, appending or replacing values, and optional encoding control.

Features

  • 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

Usage

Pipe URLs into qsmod and specify options:

cat urls.txt | ./qsmod [flags] <value>

Flags

  • -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)

Example

Replace all query values with "test":

cat urls.txt | ./qsmod test

Append "123" to all query values:

cat urls.txt | ./qsmod -a 123

Ignore path for deduplication:

cat urls.txt | ./qsmod -ignore-path test

Disable encoding:

cat urls.txt | ./qsmod -no-encode test

Installation

Build from source

git clone https://github.com/saeed0x1/qsmod.git
cd qsmod
go build -o qsmod main.go

Install directly using Go

go install github.com/saeed0x1/qsmod@latest

License

MIT

About

simple utility tool for query string replacing

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages