Bhedak
A replacement of qsreplace
, accepts URLs as standard input, replaces all query string values with user-supplied values and stdout. Works on every OS
. Made with python
Installation
$ wget -O bhedak https://raw.githubusercontent.com/R0X4R/bhedak/main/bhedak.py -q && chmod +x bhedak && mv bhedak /usr/bin/
Usage
-
For
linux
,unix
anddebian
based systems$ waybackurls target.tld | bhedak "payload"
-
For
windows
based systemscmd> type urls.txt | python bhedak.py "payload"
-
If no
payload
passed$ waybackurls subdomain.target.tld | bhedak http://subdomain.target.tld/comment.php?pid=FUZZ&user=FUZZ http://subdomain.target.tld/disclaimer.php=FUZZ http://subdomain.target.tld/hpp/index.php?pp=FUZZ http://subdomain.target.tld/hpp/?pp=FUZZ&user=FUZZ
-
Example input file
$ waybackurls subdomain.target.tld | tee -a urls http://subdomain.target.tld/comment.php?pid=username&user=1 http://subdomain.target.tld/disclaimer.php=1 http://subdomain.target.tld/hpp/index.php?pp=12 http://subdomain.target.tld/hpp/?pp=12&user=5
-
Replace query string values
$ cat urls | bhedak "FUZZ" http://subdomain.target.tld/comment.php?pid=FUZZ&user=FUZZ http://subdomain.target.tld/disclaimer.php=FUZZ http://subdomain.target.tld/hpp/index.php?pp=FUZZ http://subdomain.target.tld/hpp/?pp=FUZZ&user=FUZZ
-
Replace query string with custom payloads
-
Remove duplicate urls
$ cat urls | bhedak "FUZZ" | sort -u http://subdomain.target.tld/comment.php?pid=FUZZ&user=FUZZ http://subdomain.target.tld/disclaimer.php=FUZZ http://subdomain.target.tld/hpp/index.php?pp=FUZZ http://subdomain.target.tld/hpp/?pp=FUZZ&user=FUZZ
-
Comparsion
$ echo "http://fakedomain.com/fakefile.jsp;jsessionid=2ed4262dbe69850d25bc7c6424ba59db?hardwareid=14&tarifid=9998" | qsreplace "FUZZ" http://fakedomain.com/fakefile.jsp;jsessionid=2ed4262dbe69850d25bc7c6424ba59db?hardwareid=FUZZ&tarifid=FUZZ $ echo "http://fakedomain.com/fakefile.jsp;jsessionid=2ed4262dbe69850d25bc7c6424ba59db?hardwareid=14&tarifid=9998" | bhedak "FUZZ" http://fakedomain.com/fakefile.jsp;jsessionid=FUZZ?hardwareid=FUZZ&tarifid=FUZZ
If this tool helped you or you like my work Donate
Thanks to @tomnomnom
for making an amazing tool called qsreplace
, from using qsreplace
I got idea to make bhedak