显示Fiddler的目标服务器IP地址

Published: Tags: WEB DNS

服务器在响应请求之后,我们就能知道它的IP地址,在Fiddler Rules添加如下代码即可:

static function Main() {
    var today: Date = new Date();
    FiddlerObject.StatusText = " CustomRules.js was loaded at: " + today;

    // Uncomment to add a "Server" column containing the response "Server" header, if present
    // UI.lvSessions.AddBoundColumn("Server", 50, "@response.server");

    // Uncomment to add a global hotkey (Win+G) that invokes the ExecAction method below...
    // UI.RegisterCustomHotkey(HotkeyModifiers.Windows, Keys.G, "screenshot"); 

    UI.lvSessions.AddBoundColumn("ServerIP", 50, "X-HOSTIP");
}