Telerik Forums
Fiddler Forum
1 answer
645 views

I know that Fiddler uses local DNS resolver as it didn't work on some test sites that only worked through DoH geobypassing proxy. Are there any trick/method to make Fiddler respect browsers DoH setting? If not, would you guys please consider adding it since DoH/DoT seems to be very useful/popular these days.

Here's some use case scenarios

  • You want to hide your DNS queries from your ISP while doing Fiddler session on a browser.
  • Your ISP filters your DNS (transparent DNS proxy, etc) and you want to debug sites that are blocked by your ISP with Fiddler.
  • You want to debug geo-blocked sites which can be bypassed by geo-bypassing DoH resolver.
  • and so on.

You can also add following to any of the scenarios above if we think alternative solutions like using Windows 10/11, configuring DoH on the router, using VPN, etc.

  • "you use an operating system that doesn't support configuring DoH/DoT"
  • "your ISP/Organization blocks VPN/proxies"
  • "your router doesn't support DoH/DoT"

BTW, I know Microsoft natively added DoH in Windows 10 more than a year ago, DoT to Windows 11 insider build a few months ago. I don't know if Fiddler works on them (works as in properly using DoH/DoT) as i don't use those OSes. I am curious to know about it though.

Anyways,

Here's quick guide to confirm that Fiddler/Firefox bypasses DNS-over-HTTPS just in case anyone wants to test.

Open Firefox (Use this guide for other browsers)

  1. Click the menu button Fx89menuButtonand select Settings.
  2. In the General panel, scroll down to Network Settings and click the Settings… button
  3. Check "Use system proxy settings"
  4. Scroll down to Enable DNS over HTTPS.
    • On: Select the Enable DNS over HTTPS checkbox.
      Check Custom and paste this server (this is DoH DNS resolver that blocks social media sites we are using for the test)
    • https://freedns.controld.com/p3
    • Press OK

  5. Open www.facebook.com and it should be blocked.

  6. Now open Fiddler and try to open www.facebook.com again on the browser. Facebook will work.



Nick Iliev
Telerik team
 answered on 24 Oct 2022
1 answer
206 views

i used these settings:

public static void StartupFiddlerCore()
        {
            // Build startup settings:
            var settings = new FiddlerCoreStartupSettingsBuilder()
                                //.CaptureLocalhostTraffic()
                                .MonitorAllConnections()
                                .CaptureFTP()
                                .DecryptSSL()
                                .RegisterAsSystemProxy()
                                .OptimizeThreadPool()
                                .Build();
            FiddlerApplication.Startup(settings);
            //FiddlerApplication.oProxy.Attach();

        }

 

when i use WinSCP and use the fiddlerCore's ftp proxy to connect ftp server, the fiddlerCore's ftp proxy did net capture the ftp traffic.

 

the picture is winscp's proxy setting.

Nick Iliev
Telerik team
 answered on 18 Oct 2022
0 answers
729 views

I am using fiddlerCore to capture ftp traffic, and i used the "CaptureFTP()" setting and "RegisterAsSystemProxy()" setting.

But when i use Winscp application with fiddlerCore's proxy to connect ftp server,it did not work,and connect failed. 

how dose fiddlerCore's ftp proxy work? how to use it?

 

s
Top achievements
Rank 1
 asked on 17 Oct 2022
0 answers
232 views

Hi,

I tried

static function OnBeforeRequest(oSession: Session) {
var arr: Byte[] = oSession.requestBodyBytes;
var istr: String = '';
istr =  Convert.ToBase64String(arr);

// ... do something with request body ...

oSession.RequestHeaders['Fiddler-Encoding'] = 'base64';
oSession.utilSetRequestBody(istr);
}

base on this article. Unfortunately this does not work. Any help appreciated.

D
Top achievements
Rank 1
 asked on 17 Oct 2022
1 answer
1.6K+ views

I'm using Fiddler Classic and android Emulator - MEmu. I have installed some android application there.

Of course I have installed fiddler certificates on my host and on android also i moved them to the system folder, I set up fiddler proxy in the Wi-Fi settings and everything works fine, I can receive all https traffic but somehow in this application when I'm trying to log-in the application logs in but in the fiddler I don't have any activity, it is just empty at this moment. Same thing when I enter wrong password the application says me "Wrong password" which means it sends request to the server somehow but fiddler doesn't have any requests when I press the button "Log in".

How is this possible? Can application bypass proxy that set up in the wi-fi connection settings in the android somehow? Or how is it possible even it theory?

I also tried android firewall with block all connections option on, when I Log in in the application with this firewall that blocks everything - I have error in the application and in the blocked list I can see requests like IP address and some urls, so why I can't see this requests in the fiddler?

Janusz
Top achievements
Rank 1
Iron
 answered on 16 Oct 2022
1 answer
2.3K+ views

Hi,

I use Fiddler Classic as a proxy between client and server. I tried to replace the entire response body for a request.


static function OnBeforeResponse(oSession: Session) {
...
var body = '<?xml version="1.0" encoding="UTF-8"?><Test/>';
oSession.ResponseBody = System.Text.Encoding.UTF8.GetBytes(body);
oSession.oResponse['Content-Length'] = body.Length;
oSession.utilSetResponseBody(body);
...
}

Unfortunately this does not work. Fiddler show the changed content, but body was send to server completely unchanged. Any suggestion?
Nick Iliev
Telerik team
 answered on 12 Oct 2022
1 answer
875 views

Within a .net application when the CheckCertificateRevocationList is set SSL connections can no longer be made while fiddler is running.

An example:

ServicePointManager.CheckCertificateRevocationList = true;

WebRequest request = WebRequest.Create("https://www.google.com");

var response = await request.GetResponseAsync();

This fails with

The remote certificate is invalid according to the validation procedure.

 

If I register a validation callback (ServicePointManager.ServerCertificateValidationCallback) too  see what is going on I see

SSLPolicyErrors = RemoteCertificateChainErrors

When looking at the X509Chain I see "The revocation function was unable to check revocation for the certificate.\r\n"

Some other threads on stack overflow indicated this may be due to no revocation list being attached to the fiddler root certificates.

So I was wondering if anyone was able to get fiddler to work with the CheckCertificateRevocationList= true.  I know I can disable it but that would not be good for security. I also could in the handler allow fiddler certificates, but I was hoping there was a way to generate the fiddler certificates in a way that worked with that setting.

 

Nick Iliev
Telerik team
 answered on 12 Oct 2022
1 answer
224 views

Hello, it seems like there are a few ways to configure fiddler to chain to an upstream proxy, but none of the instructions i found mentioned what to do when you are using a setup script for the proxy. Is there a way to still configure fiddler to chain to the upstream proxy in this case? 
Nick Iliev
Telerik team
 answered on 12 Oct 2022
1 answer
964 views

https://vimeo.com/758966052

Pleas take a look at video above here.

I compare between fiddler classic and echo mirage and i want to know why fiddler can't capture it? and how to fix this. (fiddler classic can capture http(s) normally)

Nick Iliev
Telerik team
 answered on 11 Oct 2022
0 answers
172 views

I can capture traffic, decrypt HTTPs from web browsers and other applications with Fiddler just fine.

But with this app, Fiddler doesn't see anything. Tried options like adding protocols,  checking ignore cert errors, even tried tried turning off HTTPS decryption. No difference, just nothing.

With Wireshark. I can see the SSL/TCP traffic.

Here's the app link (You can register for free with junk email to login via app)

https://tinyurl.com/4yd3e94r

Please help

 

Noob Saibot
Top achievements
Rank 1
Iron
 asked on 10 Oct 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?