Fiddler 4 抓包

时间:2025-04-04 11:35:37

Fiddler

Tools –> Fiddler Options

HTTPS -> 勾选“CaptureHTTPS CONNECTs”,同时勾选“Decrypt HTTPS traffic”, 选择“…fromremote clients only” , 勾选 “Ignore servercertificate errors”

Conections -> 勾选“Allow remote computersto connect”

//Customize Rules
//在class Handlers中加入以下代码 可以在Fiddler右边栏的Log标签里,看到WebSocket的数据包
static function OnWebSocketMessage(oMsg: WebSocketMessage) {
FiddlerApplication.Log.LogString(oMsg.ToString());
} //在函数OnBeforeResponse里面添加下面代码:
if (oSession.oRequest["User-Agent"].indexOf("Android") > - && oSession.HTTPMethodIs("CONNECT")) {
oSession.oResponse.headers["Connection"] = "Keep-Alive";
} //修改后
static function OnBeforeResponse(oSession: Session) {
if (m_Hide304s && oSession.responseCode == ) {
oSession["ui-hide"] = "true";
}
if (oSession.oRequest["User-Agent"].indexOf("Android") > - && oSession.HTTPMethodIs("CONNECT")) {
oSession.oResponse.headers["Connection"] = "Keep-Alive";
}
}

手机打开网页下载证书 Fiddler Root certificate

Ios

设置->通用->描述文件

设置->通用->关于本机->证书信任设置