Telerik Forums
Fiddler Forum
2 answers
45 views
Hello, i have app using fiddler, and i have problem like in Subject. Proxy in windows settings turn on like normal but i can't see result of fiddler proxy. Im using windows 11. There's any way to fix that? Thanks! :) 
robert
Top achievements
Rank 1
Iron
 answered on 22 May 2024
1 answer
58 views

In my program; I use Fiddler Core. When ran on a pc; it set's the proxy as it should but when trying to browse the network with the proxy on; i'm getting "Your connection is Not private"; error message on all browsers. Please see attached photos for reference. Here is my running code:

 


private void stopfiddler()
{
    if (!FiddlerApplication.IsStarted())
    {
    }
    else
    {
        FiddlerApplication.Shutdown();
    }
}

public static void SavePreferences()
{

    Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
    string cert = ConfigurationManager.AppSettings["fiddler.certmaker.bc.cert"];
    string key = ConfigurationManager.AppSettings["fiddler.certmaker.bc.key"];
    if (cert == null || key == null)
    {
        config.AppSettings.Settings.Add("fiddler.certmaker.bc.cert", FiddlerApplication.Prefs.GetStringPref("fiddler.certmaker.bc.cert", null));
        config.AppSettings.Settings.Add("fiddler.certmaker.bc.key", FiddlerApplication.Prefs.GetStringPref("fiddler.certmaker.bc.key", null));
        config.Save(ConfigurationSaveMode.Modified);
        ConfigurationManager.RefreshSection("appSettings");
    }
    else
    {
        config.AppSettings.Settings["fiddler.certmaker.bc.cert"].Value = FiddlerApplication.Prefs.GetStringPref("fiddler.certmaker.bc.cert", null);
        config.AppSettings.Settings["fiddler.certmaker.bc.key"].Value = FiddlerApplication.Prefs.GetStringPref("fiddler.certmaker.bc.key", null);
        config.Save(ConfigurationSaveMode.Modified);
        ConfigurationManager.RefreshSection("appSettings");
    }
}

public static bool IsCertCreated()
{

    Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
    string cert = ConfigurationManager.AppSettings["fiddler.certmaker.bc.cert"];
    string key = ConfigurationManager.AppSettings["fiddler.certmaker.bc.key"];
    if (cert != null && key != null)
    {
        return true;
    }
    else
    {
        return false;
    }
}

public static void RemoveFiddlerPreferences()
{
    Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);

    config.AppSettings.Settings.Remove("fiddler.certmaker.bc.cert");
    config.AppSettings.Settings.Remove("fiddler.certmaker.bc.key");

    config.Save(ConfigurationSaveMode.Modified);
    ConfigurationManager.RefreshSection(config.AppSettings.SectionInformation.Name);
}

public static void LoadPreferences()
{
    string cert = ConfigurationManager.AppSettings["fiddler.certmaker.bc.cert"];
    string key = ConfigurationManager.AppSettings["fiddler.certmaker.bc.key"];

    if (!string.IsNullOrEmpty(cert) && !string.IsNullOrEmpty(key))
    {
        FiddlerApplication.Prefs.SetStringPref("fiddler.certmaker.bc.cert", cert);
        FiddlerApplication.Prefs.SetStringPref("fiddler.certmaker.bc.key", key);
    }

}
private void Installcert()
{

    if (IsCertCreated())
    {
        
    }
    else
    {
        BCCertMaker.BCCertMaker certProvider = new BCCertMaker.BCCertMaker();
        certProvider.CreateRootCertificate();
        X509Certificate2 rootCert = certProvider.GetRootCertificate();
        // Create a certificate store and add the root certificate to it
        X509Store store = new X509Store(StoreName.Root, StoreLocation.LocalMachine);
        store.Open(OpenFlags.ReadWrite);
        store.Add(rootCert);
        SavePreferences();
    }
}

private void Remove()
{
    using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine))
    {
        store.Open(OpenFlags.ReadWrite);

        var certificatesToRemove = store.Certificates
            .Cast<X509Certificate2>()
            .Where(c => c.SubjectName.Name.ToLower().Contains("DO_NOT_TRUST_FiddlerRoot"))
            .ToList();

        foreach (var cert in certificatesToRemove)
        {
            string certPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, cert.Thumbprint + ".cer");
            if (File.Exists(certPath))
            {
                File.Delete(certPath);
            }

            store.Remove(cert);
        }
        RemoveFiddlerPreferences();
        store.Close();
        MessageBox.Show("Deleted");
    }
}

private void appentext(string value)
{
    if (InvokeRequired)
    {
        return;
    }
}

 

 

 

 

Nick Iliev
Telerik team
 answered on 26 Feb 2024
1 answer
42 views
How can I exempt all in FiddlerCore as if I was using the Win Config option in Fiddler Classic? Thank you in Advance!
Nick Iliev
Telerik team
 answered on 21 Feb 2024
1 answer
222 views

Okay, so i'm not sure if this is in the right spot or not but here it goes.

 

I am using Fiddler Core in my C# program. In my program; I have several checkboxes and each checkbox sets utilreplaceinresponse; while this is all good; After the session is complete; I need to have Fiddler Block that same url from reloading unless the program is closed or cache is cleared. How can I achieve this?

Nick Iliev
Telerik team
 answered on 29 Aug 2023
1 answer
54 views
Hi, how would I in the BeforeRequest event return a file from the local computer?

This is related to FiddlerCore, and I'm trying to recreate the function of the Fiddler AutoResponder, to match a string and then respond with a file. Would BeforeRequest be the right thing?

I found this somewhere else on the forum: http://fiddler.wikidot.com/fiddlercore-autorespond

Hope someone has a bit more knowledge,

Thanks
Nick Iliev
Telerik team
 answered on 16 Aug 2023
0 answers
43 views
我尝试了所有方法,但无法解密他的HTTPS。请帮助我。

网址:https://visa.vfsglobal.com/chn/zh/pol/

请尝试使用 F5 刷新页面,它会提示:对不起,您已被阻止。

谢谢。
ss
Top achievements
Rank 1
 asked on 26 Jun 2023
1 answer
105 views

When I tried to install the certificate with this function, it popped up and installed the certificate, but still reminded me when I tried to decrypt the https traffic
"To view the encrypted sessions inside this tunnel, enable the Tools > Options > HTTPS > Decrypt HTTPS traffic option."


public static bool InstallCertificate()
        {
            if (!CertMaker.rootCertExists())
            {
                if (!CertMaker.createRootCert())
                    return false;

                if (!CertMaker.trustRootCert())
                    return false;
            }

            return true;
        }


 

Is it because of this function? What should I do, please help me...

 

 

Nick Iliev
Telerik team
 answered on 18 Nov 2022
0 answers
362 views

Hi,

I lost my data after recovering the data when I'm opening the saz file it shows me this error. "The selected file is not a Fiddler-generated .SAZ archive of Web Sessions."  Picture attached. A quick response will be highly appreciated 

Regards,
Raph

Raph
Top achievements
Rank 1
 asked on 14 Apr 2022
0 answers
173 views

I have Fiddler up and running on box A.  I can see all traffic from my local machine and my autoresponders are working as expected.

On my Android cell phone I have set up the network to use box A as proxy.  The pages are being rendered in the Android browser as expected and autoresponders are giving the correct data as expected, but none of the traffic is showing in the Fiddler UI.

Any idea?

Ed
Top achievements
Rank 1
 asked on 18 Nov 2021
2 answers
207 views

I am working on fiddler core with C#. But FiddlerApplication.Shutdown(); I don't think your command works. FiddlerApplication.Shutdown(); After the application, the internet access of the current computer is turned off. When the fiddler core application is closed, as in the picture I shared, internet access is cut off when the fiddlerapplication.shutdown command is applied.

How can I solve this problem?

 

For example, we cannot access any websites or internet when the internet is disconnect ;

 

Note: This problem happens when I close and open the program 3 or 5 times.

Lini
Telerik team
 answered on 21 Jul 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?