Exemplo n.º 1
0
 //AfterSessionComplete
 void FiddlerApplication_AfterSessionComplete(Fiddler.Session oSession)
 {
     if (RKey.GetValue("RegisterTraffic").ToString() == "true")
     {
         Thread myThread = new Thread(() => InsertUrl(oSession.url, true));
         myThread.Start();
     }
 }
Exemplo n.º 2
0
 private string[] instanciasInstaladas()
 {
     Microsoft.Win32.RegistryKey RKey;
     RKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Microsoft SQL Server", false);
     string[] instancias;
     instancias = ((string[])RKey.GetValue("InstalledInstances"));
     return(instancias);
 }
Exemplo n.º 3
0
        //Before Request
        void FiddlerApplication_BeforeRequest(Fiddler.Session oSession)
        {
            string url = oSession.url;

            if (CheckUrl(oSession) == false || CheckDomain(oSession) == false)
            {
                //start a new thread to insert the rejected url
                if (RKey.GetValue("RegisterTraffic").ToString() == "true")
                {
                    Thread myThread = new Thread(() => InsertUrl(url, false));
                    myThread.Start();
                }

                //Redirect from the blocked website
                oSession.url = RedirectUrl;
            }
        }