Beispiel #1
0
 public void Stop()
 {
     FiddlerApplication.AfterSessionComplete -= FiddlerApplication_AfterSessionComplete;
     if (!FiddlerApplication.IsStarted())
     {
         return;
     }
     FiddlerApplication.Shutdown();
 }
Beispiel #2
0
 private static void Console_CancelKeyPress(object sender, ConsoleCancelEventArgs e)
 {
     Console.WriteLine("程序即将退出...");
     e.Cancel = true;
     FiddlerApplication.Shutdown();
     //UninstallCertificate();
     Thread.Sleep(750);
     Flag = false;
 }
Beispiel #3
0
        /// <summary>
        /// Listening しているスレッドを終了し、ソケットを閉じる。
        /// </summary>
        public static void Shutdown()
        {
            FiddlerApplication.BeforeRequest            -= setUpstreamProxyHandler;
            FiddlerApplication.AfterSessionComplete     -= raiseAfterSessionComplete;
            FiddlerApplication.RequestHeadersAvailable  -= raiseRequestHeadersAvailable;
            FiddlerApplication.ResponseHeadersAvailable -= raiseResponseHeadersAvailable;

            FiddlerApplication.Shutdown();
        }
Beispiel #4
0
 void Application_ApplicationExit(object sender, EventArgs e)
 {
     if (isCapture)
     {
         // Fiddlerのシャットダウン
         FiddlerApplication.Shutdown();
     }
     global::KanColleDbPost.Properties.Settings.Default.Save();
 }
Beispiel #5
0
        void Stop()
        {
            FiddlerApplication.AfterSessionComplete -= FiddlerApplication_AfterSessionComplete;

            if (FiddlerApplication.IsStarted())
            {
                FiddlerApplication.Shutdown();
            }
        }
Beispiel #6
0
        private void ResetSetup()
        {
            FiddlerApplication.Shutdown();

            ConnectBtn.Text      = "Connect";
            CustomClientTxt.Text = string.Empty;
            UseCustomClient      = _replaceKeys = false;

            StatusTxt.EndAnimation("Standing By...");
        }
Beispiel #7
0
 public static void PerformShutDown()
 {
     try {
         WriteLine("[INFO] - Shutting down...");
         listen.Stop();
         FiddlerApplication.Shutdown();
     } finally {
         Environment.Exit(0);
     }
 }
Beispiel #8
0
 public static void DoQuit()
 {
     WriteCommandResponse("Shutting down...");
     if (null != oSecureEndpoint)
     {
         oSecureEndpoint.Dispose();
     }
     FiddlerApplication.Shutdown();
     Thread.Sleep(500);
 }
Beispiel #9
0
        private static void Stop()
        {
            FiddlerApplication.BeforeRequest        -= FiddlerApplication_BeforeRequest;
            FiddlerApplication.AfterSessionComplete -= FiddlerApplication_AfterSessionComplete;

            if (FiddlerApplication.IsStarted())
            {
                FiddlerApplication.Shutdown();
            }
        }
Beispiel #10
0
        public void StopFiddler()
        {
            RecentMatchesBox.Visibility = Visibility.Collapsed;
            _isRunning = false;
            ToggleFields();

            FiddlerApplication.Shutdown();

            _watcher.EnableRaisingEvents = false;
        }
Beispiel #11
0
 public void StopCapture()
 {
     if (FiddlerApplication.IsStarted())
     {
         FiddlerApplication.Shutdown();
         log("shutdown");
         mainForm.CapturePLinkToolStripMenuItem.Checked = false;
         mainForm.CapturePLinkToolStripMenuItem.Text    = "Capture Stop!";
     }
 }
Beispiel #12
0
 void Stop()
 {
     FiddlerApplication.AfterSessionComplete += FiddlerApplication_AfterSessionComplete;
     FiddlerApplication.BeforeResponse       -= FiddlerApplication_BeforeResponse;
     //FiddlerApplication.BeforeReturningError -= FiddlerApplication_BeforeReturningError;
     FiddlerApplication.BeforeRequest -= FiddlerApplication_BeforeRequest;
     if (FiddlerApplication.IsStarted())
     {
         FiddlerApplication.Shutdown();
     }
 }
Beispiel #13
0
 private void TanjiConnect_FormClosing(object sender, FormClosingEventArgs e)
 {
     TanjiSettings.Save();
     if (!_main.Game.IsConnected)
     {
         FiddlerApplication.Shutdown();
         _main.Game.Dispose();
         Environment.Exit(0);
     }
     ResetSetup();
 }
Beispiel #14
0
 public void StopVisit()
 {
     FiddlerApplication.AfterSessionComplete -= FiddlerApplicationAfterSessionComplete;
     FiddlerApplication.Shutdown();
     if (CanSave && Documents.Count > 0)
     {
         SysDataManager.AddDataCollection(Documents.Select(d => d.DictSerialize(Scenario.Other)), "爬虫记录");
     }
     IsRunning = FiddlerApplication.IsStarted();
     OnPropertyChanged("IsRunning");
 }
 public void Dispose()
 {
     FiddlerApplication.oProxy?.Detach();
     FiddlerApplication.Shutdown();
     FiddlerApplication.FiddlerAttach               -= FiddlerAttach;
     FiddlerApplication.FiddlerDetach               -= FiddlerDetach;
     FiddlerApplication.OnReadRequestBuffer         -= OnBufferRead;
     FiddlerApplication.OnReadResponseBuffer        -= OnBufferWrite;
     FiddlerApplication.BeforeRequest               -= BeforeRequest;
     FiddlerApplication.OnValidateServerCertificate -= OnValidateServerCertificate;
 }
Beispiel #16
0
 /// <summary>
 /// Shuts down the fiddler application
 /// </summary>
 internal void ShutDown()
 {
     try
     {
         FiddlerApplication.Shutdown();
     }
     catch (Exception ex)
     {
         Utility.DisplayException("ShutDown", ex);
     }
 }
Beispiel #17
0
        private static void TestPvpRecipe(string userName, string password, string opponentName, int times)
        {
            FiddlerApplication.Startup(8666, FiddlerCoreStartupFlags.Default);
            FiddlerApplication.oSAZProvider = new DNZSAZProvider();
            PvPRecipe recipe = new PvPRecipe(userName, password, opponentName);

            //GoWTHRecipe recipe = new GoWTHRecipe("AnzPk4MLuY29", "KDkuCjLMVLXC");
            //GoWTHRecipe recipe = new GoWTHRecipe("9jPPy3DWqZgt", "19yf5dsJ2FQS");
            recipe.Cook(1000, times, 10);
            FiddlerApplication.Shutdown();
        }
 public static void Stop()
 {
     UninstallCertificate();
     FiddlerApplication.ResponseHeadersAvailable -= ResponseHeadersAvailable;
     FiddlerApplication.Log.OnLogString          -= Log_OnLogString;
     if (IsStarted)
     {
         FiddlerApplication.oProxy.DetachedUnexpectedly -= OProxy_DetachedUnexpectedly;
         FiddlerApplication.Shutdown();
     }
 }
Beispiel #19
0
 private void Form1_Formclosed(object sender, FormClosedEventArgs e)
 {
     try
     {
         URLMonInterop.ResetProxyInProcessToDefault();
         FiddlerApplication.Shutdown();
     }
     catch (Exception exception)
     {
         Console.WriteLine(exception);
     }
 }
Beispiel #20
0
 public static void Stop()
 {
     if (FiddlerApplication.oProxy != null)
     {
         FiddlerApplication.oProxy.DetachedUnexpectedly -= NotifyProxyChanged;
     }
     if (FiddlerApplication.IsStarted())
     {
         FiddlerApplication.Shutdown();
     }
     Thread.Sleep(500);
 }
Beispiel #21
0
 private void btnout_Click(object sender, EventArgs e)
 {
     btnstart.Enabled = true;
     btnout.Enabled   = false;
     if (null != oSecureEndpoint)
     {
         oSecureEndpoint.Dispose();
     }
     FiddlerApplication.Shutdown();
     log("断开代理成功");
     Thread.Sleep(500);
 }
Beispiel #22
0
        public static void Shutdown()
        {
            if (_SecureEndpoint != null)
            {
                _SecureEndpoint.Dispose();
                _SecureEndpoint = null;
            }

            if (FiddlerApplication.IsStarted())
            {
                FiddlerApplication.Shutdown();
            }
        }
 public void QuitFiddler()
 {
     if (null != oSecureEndpoint)
     {
         oSecureEndpoint.Dispose();
     }
     while (FiddlerApplication.IsStarted())
     {
         TestBase.LogEvent("Stopping Fiddler Proxy on port " + proxyPort);
         FiddlerApplication.Shutdown();
         Common.Delay(500);
     }
 }
Beispiel #24
0
 static public void Listen()
 {
     System.Diagnostics.Process.Start("rundll32.exe", "InetCpl.cpl,ClearMyTracksByProcess 4351"); // Ironically speaking, everything's an interface of IE. sight.
     FiddlerApplication.Startup(0, FiddlerCoreStartupFlags.Default);
     FiddlerApplication.BeforeRequest += delegate(Session session)
     {
         if (session.uriContains("omega284.swf"))
         {
             session.oFlags["x-replywithfile"] = Path.GetFullPath(session.url.Replace("epicduelstage.artix.com/", "C:\\Users\\Public\\"));
             FiddlerApplication.Shutdown();
         }
     };
 }
Beispiel #25
0
        /// <summary>
        /// 停止服务
        /// </summary>
        /// <param name="hostControl"></param>
        /// <returns></returns>
        public bool Stop(HostControl hostControl)
        {
            HistoryDataTable.Save();
            KingProcesser.CloseListener();
            Debugger.Log(0, null, "Save HistoryDataTable Datas OK ..");

            if (sslProxyServer != null)
            {
                sslProxyServer.Dispose();
            }
            FiddlerApplication.Shutdown();
            return(true);
        }
Beispiel #26
0
        public void Shutdown()
        {
            FiddlerApplication.BeforeRequest -= beforeRequest;
            FiddlerApplication.OnValidateServerCertificate -= onValidateServerCertificate;

            if (FiddlerApplication.oProxy != null)
            {
                FiddlerApplication.oProxy.Detach();
            }

            FiddlerApplication.Shutdown();

            Thread.Sleep(1000);
        }
Beispiel #27
0
 static void Main()
 {
     try
     {
         Application.EnableVisualStyles();
         Application.ApplicationExit += new EventHandler(Application_ApplicationExit);
         Application.SetCompatibleTextRenderingDefault(false);
         //Application.Run(new DataCatchLog("ljbbean"));
         Application.Run(new DataCatch());
     }
     catch (Exception e)
     {
         FiddlerApplication.Shutdown();
     }
 }
Beispiel #28
0
        public static bool HandlerRoutine(int CtrlType)
        {
            switch (CtrlType)
            {
            case 0:
                FiddlerApplication.Shutdown();     //Ctrl+C关闭
                break;

            case 2:
                FiddlerApplication.Shutdown();     //按控制台关闭按钮关闭
                break;
            }
            Console.ReadLine();
            return(false);
        }
Beispiel #29
0
 private static void KillFiddler()
 {
     try
     {
         if (FiddlerApplication.oProxy != null)
         {
             if (FiddlerApplication.oProxy.IsAttached)
             {
                 FiddlerApplication.oProxy?.Detach();
                 FiddlerApplication.Shutdown();
             }
         }
     }
     catch { }
 }
Beispiel #30
0
 static void Main(string[] args)
 {
     try
     {
         bool                bRet          = SetConsoleCtrlHandler(newDelegate, true);
         FidderFence         fidderFence   = new FidderFence();
         WeChatServerStarter serverStarter = new WeChatServerStarter();
         fidderFence.StartFidderFence();
         serverStarter.StartUpApi();
     }
     catch (Exception ex)
     {
         ProxySettings.UnsetProxy();
         FiddlerApplication.Shutdown();
     }
 }