| Match/Replace | 统一注入测试标识与固定头 |
|---|---|
| Session Rules | 登录态维护、token 刷新 |
| 宏 | Macro Recorder 录制登录并提取参数 |
| 原则 | 测试标识用于审计联络,不伪装身份 |
配置要点
配置要点
Settings → Tools → Proxy → Match and Replace:
Add → Type: Request header → Replace: X-Pentest-ID: 2026-001
Settings → Sessions → Session Handling Rules:
Add → Rule Actions: Run a macro(录制登录流程)
宏内提取 token 并绑定到后续请求替换规则可能误伤正常请求头:启用前用 Repeater 验证单项请求。