how to add more listening port in FiddlerScript?

96 Views Asked by At

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.

1

There are 1 best solutions below

0
AutumnFrog On BEST ANSWER

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"