From e6049eebf0dc5972cb6928a0d25b65781e9438ab Mon Sep 17 00:00:00 2001 From: Marcos Medeiros <32443664+soulinux@users.noreply.github.com> Date: Sun, 17 Apr 2022 18:43:25 -0300 Subject: [PATCH] New param Add pram -e X (encode) payload usage: qsreplace -e X 'payload' --- main.go | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 7516383..c370859 100644 --- a/main.go +++ b/main.go @@ -11,6 +11,9 @@ import ( ) func main() { + var nEncode int + flag.IntVar(&nEncode, "e", 1, "Number Url Encode for Bypass WAF") + var appendMode bool flag.BoolVar(&appendMode, "a", false, "Append the value instead of replacing it") flag.Parse() @@ -53,8 +56,18 @@ func main() { } } - u.RawQuery = qs.Encode() + // Param for encode Payload - Bypass WAF + + if nEncode > 0 { + u.RawQuery = qs.Encode() + for i := 0; i < nEncode; i++ { + u.RawQuery += qs.Encode() + } + } else { + u.RawQuery = qs.Encode() + } + fmt.Printf("%s\n", u) }