Search code examples
fiddlerfiddlercore

how to add more listening port in FiddlerScript?


Documentation says we can use QuickExec to start another port by manually typing: !listen <port>, how to listen in another port in Fiddlerscript?

more generally, can we do Quickexec in Fiddlerscript?

This kind of operation seems to be unsupported by the classes exposed by default.


Solution

  • Use actQuickExec() and automate it with the OnBoot callback:

    static function OnBoot() {
        FiddlerApplication.UI.actQuickExec("!listen 443 your.domain");
    }
    

    Outside of FiddlerScript, you can use ExecAction.exe with command line arguments:

    & "$env:LOCALAPPDATA\Programs\Fiddler\ExecAction.exe" "!listen 443 your.domain"