Fiddler

 

https://www.telerik.com/forums/how-to-automatically-re-enable-fiddle-as-system-proxy

https://www.cnblogs.com/TankXiao/archive/2012/02/06/2337728.html

 

问题:【The system proxy was changed.Click to reenable capturing.】

解决:Reattaching Fiddler automatically is perilous for a bunch of reasons, but yes, it's technically possible to observe changes in the proxy setting for the current user and reattach if they change.

In CustomRules, add the following code:

static function DoReattach(o: Object, ea: EventArgs)
{
   ScheduledTasks.ScheduleWork("reattach", 1000, innerReattach);
}

static function innerReattach()
{
   FiddlerApplication.UI.actAttachProxy();
}

static function OnRetire()
{
   FiddlerApplication.oProxy.remove_DetachedUnexpectedly(DoReattach);
}

and inside the existing Main() function, add:

  FiddlerApplication.oProxy.add_DetachedUnexpectedly(DoReattach);

 

posted @   chenyizh  阅读(99)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示