{"id":15042451,"url":"https://github.com/r0x4r/bhedak","last_synced_at":"2025-08-20T12:31:52.648Z","repository":{"id":37695598,"uuid":"431065459","full_name":"R0X4R/bhedak","owner":"R0X4R","description":"A replacement of \"qsreplace\", accepts URLs as standard input, replaces all query string values with user-supplied values and stdout.","archived":false,"fork":false,"pushed_at":"2022-03-01T15:45:06.000Z","size":383,"stargazers_count":104,"open_issues_count":0,"forks_count":17,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-12-19T11:12:34.867Z","etag":null,"topics":["bash-script","bugbounty","python-regex","python3","regex","sed"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/bhedak/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/R0X4R.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"ko_fi":"r0x4r"}},"created_at":"2021-11-23T10:58:29.000Z","updated_at":"2024-11-30T10:04:56.000Z","dependencies_parsed_at":"2022-08-30T05:41:38.902Z","dependency_job_id":null,"html_url":"https://github.com/R0X4R/bhedak","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R0X4R%2Fbhedak","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R0X4R%2Fbhedak/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R0X4R%2Fbhedak/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R0X4R%2Fbhedak/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/R0X4R","download_url":"https://codeload.github.com/R0X4R/bhedak/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230423564,"owners_count":18223435,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash-script","bugbounty","python-regex","python3","regex","sed"],"created_at":"2024-09-24T20:47:20.093Z","updated_at":"2024-12-19T11:12:41.391Z","avatar_url":"https://github.com/R0X4R.png","language":"Python","funding_links":["https://ko-fi.com/r0x4r","https://ko-fi.com/i/IK3K34SJSA"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\".github/image.png\" width=20%\u003e\n\u003c/p\u003e\n\u003ch1 align=\"center\"\u003e\n\u003cb\u003eBhedak\u003c/b\u003e\n\u003c/h2\u003e\n\nA replacement of [`qsreplace`](https://github.com/tomnomnom/qsreplace), accepts URLs as standard input, replaces all query string values with user-supplied values and stdout. Works on every `OS`. Made with `python`\u003cbr/\u003e\n\n\u003ch3\u003e\u003cb\u003eInstallation\u003c/b\u003e\u003c/h3\u003e\u003cbr/\u003e\n\n```sh\n$ pip3 install bhedak\n```\n\n\n```sh\n$ wget -O bhedak https://raw.githubusercontent.com/R0X4R/bhedak/main/bhedak.py -q \u0026\u0026 chmod +x bhedak \u0026\u0026 mv bhedak /usr/bin/\n```\n\n\u003ch3\u003e\u003cb\u003eUsage\u003c/b\u003e\u003c/h3\u003e\u003cbr/\u003e\n\n- **For `linux`, `unix` and `debian` based systems**\n\n    ![linux](.github/linux.jpg)\n\n    ```sh\n    $ waybackurls target.tld | bhedak \"payload\"\n    ```\n\n- **For `windows` based systems**\n\n    ![windows](.github/windows.png)\n\n    ```sh\n    cmd\u003e type urls.txt | python bhedak.py \"payload\"\n    ```\n\n- **If no `payload` passed**\n\n    ```console\n    $ waybackurls subdomain.target.tld | bhedak\n    \n    http://subdomain.target.tld/comment.php?pid=FUZZ\u0026user=FUZZ\n    http://subdomain.target.tld/disclaimer.php=FUZZ\n    http://subdomain.target.tld/hpp/index.php?pp=FUZZ\n    http://subdomain.target.tld/hpp/?pp=FUZZ\u0026user=FUZZ\n    ```\n\n- **Example input file**\n    \n    ```console\n    $ waybackurls subdomain.target.tld | tee -a urls\n\n    http://subdomain.target.tld/comment.php?pid=username\u0026user=1\n    http://subdomain.target.tld/disclaimer.php=1\n    http://subdomain.target.tld/hpp/index.php?pp=12\n    http://subdomain.target.tld/hpp/?pp=12\u0026user=5\n    ```\n\n- **Replace query string values**\n\n    ```console\n    $ cat urls | bhedak \"FUZZ\"\n\n    http://subdomain.target.tld/comment.php?pid=FUZZ\u0026user=FUZZ\n    http://subdomain.target.tld/disclaimer.php=FUZZ\n    http://subdomain.target.tld/hpp/index.php?pp=FUZZ\n    http://subdomain.target.tld/hpp/?pp=FUZZ\u0026user=FUZZ\n    ```\n\n- **Replace query string with custom payloads**\n\n    ```console\n    $ cat urls | bhedak \"\\\"\u003e\u003csvg/onload=alert(1)\u003e*'/---+{{7*7}}\"\n\n    http://subdomain.target.tld/comment.php?pid=%22%3E%3Csvg%2Fonload%3Dalert%281%29%3E%2A%27%2F---%2B%7B%7B7%2A7%7D%7D\u0026user=%22%3E%3Csvg%2Fonload%3Dalert%281%29%3E%2A%27%2F---%2B%7B%7B7%2A7%7D%7D\n    http://subdomain.target.tld/disclaimer.php=%22%3E%3Csvg%2Fonload%3Dalert%281%29%3E%2A%27%2F---%2B%7B%7B7%2A7%7D%7D\n    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\n    http://subdomain.target.tld/hpp/?pp=%22%3E%3Csvg%2Fonload%3Dalert%281%29%3E%2A%27%2F---%2B%7B%7B7%2A7%7D%7D\u0026user=%22%3E%3Csvg%2Fonload%3Dalert%281%29%3E%2A%27%2F---%2B%7B%7B7%2A7%7D%7D\n    ```\n- **Remove duplicate urls**\n\n    ```console\n    $ cat urls | bhedak \"FUZZ\" | sort -u\n\n    http://subdomain.target.tld/comment.php?pid=FUZZ\u0026user=FUZZ\n    http://subdomain.target.tld/disclaimer.php=FUZZ\n    http://subdomain.target.tld/hpp/index.php?pp=FUZZ\n    http://subdomain.target.tld/hpp/?pp=FUZZ\u0026user=FUZZ\n    ```\n- **Comparsion**\n\n\n    \u003cbr/\u003e\u003cimg src=\".github/image.jpg\"\u003e\u003cbr/\u003e\n\n\n    ```console\n    $ echo \"http://fakedomain.com/fakefile.jsp;jsessionid=2ed4262dbe69850d25bc7c6424ba59db?hardwareid=14\u0026tarifid=9998\" | qsreplace \"FUZZ\"\n    http://fakedomain.com/fakefile.jsp;jsessionid=2ed4262dbe69850d25bc7c6424ba59db?hardwareid=FUZZ\u0026tarifid=FUZZ\n    \n    $ echo \"http://fakedomain.com/fakefile.jsp;jsessionid=2ed4262dbe69850d25bc7c6424ba59db?hardwareid=14\u0026tarifid=9998\" | bhedak \"FUZZ\"\n    http://fakedomain.com/fakefile.jsp;jsessionid=FUZZ?hardwareid=FUZZ\u0026tarifid=FUZZ\n    ```\n\n\u003ch3\u003e\u003cb\u003eDonate\u003c/b\u003e\u003c/h3\u003e\nIf this tool helped you or you like my work\u003cbr/\u003e\n\n\u003c/br\u003e\u003ca href=\"https://rzp.io/l/pQny7s0n\"\u003e\u003cimg src=\".github/support.svg\" width=\"200\"\u003e\u003c/a\u003e    \u003ca href=\"https://ko-fi.com/i/IK3K34SJSA\"\u003e\u003cimg src=\"https://ko-fi.com/img/githubbutton_sm.svg\"\u003e\u003c/a\u003e\u003cbr/\u003e\u003cbr/\u003e\n\n---\n\nThanks to [`@tomnomnom`](https://github.com/tomnomnom) for making an amazing tool called [`qsreplace`](https://github.com/tomnomnom/qsreplace), from using [`qsreplace`](https://github.com/tomnomnom/qsreplace) I got idea to make [`bhedak`](https://github.com/R0X4R/bhedak)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr0x4r%2Fbhedak","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr0x4r%2Fbhedak","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr0x4r%2Fbhedak/lists"}