|
| 1 | +<h2><b>Bhedak</b></h2> |
| 2 | + |
| 3 | +--- |
| 4 | + |
| 5 | +A replacement of [`qsreplace`](https://github.com/tomnomnom/qsreplace), accepts URLs as standard input, replaces all query string values with user-supplied values and stdout. Only for `linux`, `unix` and `debian` based systems.<br/> |
| 6 | + |
| 7 | +<h3><b>Installation</b></h3><br/> |
| 8 | + |
| 9 | +```css |
| 10 | +$root:~ sudo apt install python3 python3-pip |
| 11 | +$root:~ wget https://raw.githubusercontent.com/ROX4R/bhedak/main/bhedak && chmod +x bhedak && mv bhedak /usr/bin/ |
| 12 | +``` |
| 13 | + |
| 14 | +<h3><b>Usage</b></h3><br/> |
| 15 | + |
| 16 | +- **Example input file** |
| 17 | + |
| 18 | + ```bash |
| 19 | + $ waybackurls subdomain.target.tld | tee -a urls |
| 20 | + |
| 21 | + http://subdomain.target.tld/comment.php?pid=username&user=1 |
| 22 | + http://subdomain.target.tld/disclaimer.php=1 |
| 23 | + http://subdomain.target.tld/hpp/index.php?pp=12 |
| 24 | + http://subdomain.target.tld/hpp/?pp=12&user=5 |
| 25 | + ``` |
| 26 | + |
| 27 | +- **Replace query string values** |
| 28 | + |
| 29 | + ```bash |
| 30 | + $ cat urls | bhedak "FUZZ" |
| 31 | +
|
| 32 | + http://subdomain.target.tld/comment.php?pid=FUZZ&user=FUZZ |
| 33 | + http://subdomain.target.tld/disclaimer.php=FUZZ |
| 34 | + http://subdomain.target.tld/hpp/index.php?pp=FUZZ |
| 35 | + http://subdomain.target.tld/hpp/?pp=FUZZ&user=FUZZ |
| 36 | + ``` |
| 37 | + |
| 38 | +- **Replace query string with custom payloads** |
| 39 | + |
| 40 | + ```bash |
| 41 | + $ cat urls | bhedak "\"><svg/onload=alert(1)>*'/---+{{7*7}}" |
| 42 | +
|
| 43 | + http://subdomain.target.tld/comment.php?pid=%22%3E%3Csvg%2Fonload%3Dalert%281%29%3E%2A%27%2F---%2B%7B%7B7%2A7%7D%7D&user=%22%3E%3Csvg%2Fonload%3Dalert%281%29%3E%2A%27%2F---%2B%7B%7B7%2A7%7D%7D |
| 44 | + |
| 45 | + http://subdomain.target.tld/disclaimer.php=%22%3E%3Csvg%2Fonload%3Dalert%281%29%3E%2A%27%2F---%2B%7B%7B7%2A7%7D%7D |
| 46 | + |
| 47 | + http://subdomain.target.tld/hpp/index.php?pp=%22%3E%3Csvg%2Fonload%3Dalert%281%29%3E%2A%27%2F---%2B%7B%7B7%2A7%7D%7D |
| 48 | + |
| 49 | + http://subdomain.target.tld/hpp/?pp=%22%3E%3Csvg%2Fonload%3Dalert%281%29%3E%2A%27%2F---%2B%7B%7B7%2A7%7D%7D&user=%22%3E%3Csvg%2Fonload%3Dalert%281%29%3E%2A%27%2F---%2B%7B%7B7%2A7%7D%7D |
| 50 | + ``` |
| 51 | +- **Remove duplicate urls** |
| 52 | + |
| 53 | + ```bash |
| 54 | + $ cat urls | bhedak "FUZZ" | sort -u |
| 55 | +
|
| 56 | + http://subdomain.target.tld/comment.php?pid=FUZZ&user=FUZZ |
| 57 | + http://subdomain.target.tld/disclaimer.php=FUZZ |
| 58 | + http://subdomain.target.tld/hpp/index.php?pp=FUZZ |
| 59 | + http://subdomain.target.tld/hpp/?pp=FUZZ&user=FUZZ |
| 60 | + ``` |
| 61 | + |
| 62 | +<h3><b>Donate</b></h3> |
| 63 | +If this tool helped you or you like my work<br/> |
| 64 | + |
| 65 | +</br><a href="https://ko-fi.com/i/IK3K34SJSA"><img src="https://ko-fi.com/img/githubbutton_sm.svg"></a> <a href="https://rzp.io/l/pQny7s0n"><img src=".github/support.svg" width="200"></a><br/><br/> |
| 66 | + |
| 67 | + |
| 68 | +Thanks to [`@tomnomnom`](https://github.com/tomnomnom) for making this an amazing tool called [`qsreplace`](https://github.com/tomnomnom/qsreplace), from using [`qsreplace`](https://github.com/tomnomnom/qsreplace) I got idea to make `bhedak` |
0 commit comments