在 Intruder > Positions 中,选择一个参数值并点击“Add §”
在此步骤中,你将定义攻击的目标。将请求发送到 Intruder 后,你需要精确指定 Payload 的插入位置。
首先,你需要有一个可用的请求。在本实验中,我们将假设你已在 Burp Proxy 中拦截了一个登录请求,并将其发送到 Intruder(通过右键单击请求并选择“Send to Intruder”)。Intruder 中的请求可能如下所示:
POST /login HTTP/1.1
Host: example.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 27
username=myuser&password=mypass
默认情况下,Burp Intruder 会自动在它认为请求中有趣的部分周围添加 Payload 标记(§)。为了获得精确的控制,最好清除这些标记并设置自己的标记。
- 导航到
Intruder > Positions 选项卡。
- 点击右侧的
Clear § 按钮,移除所有自动添加的 Payload 标记。
- 在请求编辑器中,使用鼠标仅高亮显示
username 参数的值(在本例中为 myuser)。
- 高亮显示该值后,点击
Add § 按钮。
你的请求现在应该如下所示,只有用户名值被标记为 Payload 位置:
POST /login HTTP/1.1
Host: example.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 27
username=§myuser§&password=mypass
这会告诉 Intruder 只在 myuser 的位置插入 Payload,在每次尝试时保持请求的其余部分不变。