百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
M

MaR

> 编程语言
开源

MaR - Matcher and Replacer,基于精准匹配进行智能替换。

372 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

MaR - Matcher and Replacer,基于精准匹配进行智能替换。

README Version: [English | 简体中文]

Project Introduction

MaR (Matcher and Replacement) is an auxiliary project in the field of cybersecurity (vulnerability research), primarily used for precise matching and intelligent replacement of HTTP protocol packets. It can automatically modify HTTP request or response content based on user-defined rules when specific conditions are met, helping security researchers achieve automated data tampering during penetration testing.

The design concept of MaR originates from BurpSuite's native Match and Replace functionality, but provides more flexible and powerful rule configuration capabilities, supporting conditional matching, regular expressions, multiple scopes, and other advanced features.

Notes:

  1. MaR is developed using the Montoya API. You need BurpSuite version (>=2023.12.1) to use it.

Usage

Plugin Installation: Extender - Extensions - Add - Select File - Next

When you load MaR for the first time, it will automatically create the configuration file Config.yml and rules file Rules.yml:

  1. For Linux/Mac users: ~/.config/MaR/
  2. For Windows users: %USERPROFILE%/.config/MaR/

In addition, you can also choose to place the configuration files in the /.config/MaR/ directory under the same folder as the MaR Jar package, for easier offline portability.

Practical Tips

You can select text in the HTTP request/response editor, right-click and choose "Create MaR Rule" to quickly create a rule. The selected text will be automatically filled into the condition and match fields.

Functional Description

Rule Configuration Items:

Item Description
Name Rule name, used to identify the rule
C-Scope Condition scope, specifies which part to check the condition
Relationship Match relationship, supports "Matches" and "Does not match"
Condition Condition content, used to determine whether to execute replacement
C-Regex Whether the condition uses regular expression
E-Scope Extract scope, specifies which part to extract data from for dynamic replacement
F-Regex First regex, used to extract content from the E-Scope target. Captured groups can be referenced in Match/Replace fields using {1}, {2}, etc.
S-Regex Second regex (optional), applied to the first capture group result of F-Regex for further extraction
M-Scope Replacement scope, specifies which part to execute replacement
Match Match content, the content to be replaced. Supports {n} identifiers from Extract
Replace Replace content, the new content after replacement. Supports {n} identifiers from Extract
M-Regex Whether the replacement uses regular expression

Supported Scopes:

  • request - Full request
  • request method - Request method
  • request uri - Request URI
  • request header - Request headers
  • request body - Request body
  • response - Full response
  • response status - Response status code
  • response header - Response headers
  • response body - Response body

Configuration Management:

  1. Exclude suffix - Exclude requests with specified suffixes to avoid processing static resources
  2. Block host - Exclude requests to specified domains
  3. Scope - Select which BurpSuite modules MaR applies to (Proxy, Repeater, Intruder, etc.)

Interface Information

Interface Name Interface Display
Rules
Config

Use Cases

  1. Parameter Tampering - Automatically modify request parameter values based on conditions
  2. Response Modification - Modify response content to bypass frontend validation
  3. Request Injection - Automatically add or modify request/response headers

Appreciation List

We appreciate everyone's support for the project. The following list is sorted based on the time of appreciation and is not in any particular order. If there are any omissions, please contact the project author for additions.

ID Amount
柯林斯 888.00 CNY
JaveleyQAQ 50.00 CNY
Kite 20.00 CNY
ArG3 66.00 CNY
祝祝 288.00 CNY
洺熙 88.88 CNY
秋之 99.00 CNY
Redbag 66.00 CNY
毁三观大人 200.00 CNY
朽木 200.00 CNY
wxmmmlmmm 99.99 CNY
Shu2e 50.00 CNY
NOP Team 88.00 CNY

Support the Project

If you find MaR useful, you can show your appreciation by donating to the author, giving them the motivation to continue updating and improving it!

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Java

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言