{"id":7841,"date":"2021-01-11T03:44:45","date_gmt":"2021-01-11T03:44:45","guid":{"rendered":"http:\/\/blogs.aaddevsup.xyz\/?p=7841"},"modified":"2021-01-13T22:48:14","modified_gmt":"2021-01-13T22:48:14","slug":"some-tips-and-tricks-with-fiddler-capture","status":"publish","type":"post","link":"https:\/\/blogs.aaddevsup.xyz\/2021\/01\/some-tips-and-tricks-with-fiddler-capture\/","title":{"rendered":"Some tips and tricks with Fiddler capture"},"content":{"rendered":"\n

Recently, I came across a couple of scenarios where I could not get Fiddler<\/a> to capture SSL traffic easily. Below are the some tips and tricks that may help in these situations.<\/p>\n\n\n\n

Scenario 1: Capture Node.js web traffic in Fiddler<\/h3>\n\n\n\n

In the same command window where you run npm start<\/strong> to start the node server, run the below set commands first to set the proxy info before running npm start<\/strong>.<\/p>\n\n\n\n

Note: The below assumes Fiddler is listening on port 8888. To find out what port Fiddler listens to, click on Tools -> options -> Connections from the Fiddler menu:<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n
\n\n\n\n
set https_proxy=http:\/\/127.0.0.1:8888\nset http_proxy=http:\/\/127.0.0.1:8888\nset NODE_TLS_REJECT_UNAUTHORIZED=0<\/pre>\n\n\n\n

Reference:<\/h4>\n\n\n\n

Capture network traffic in NodeJS with Fiddler \u2013 the green geek (knor.net)<\/a><\/p>\n\n\n\n


\n\n\n\n

Scenario 2: Capture Azure KeyVault Secret Client (from Azure SDK for .NET) with Fiddler<\/h3>\n\n\n\n

Set proxy info specifically in application code as below:<\/p>\n\n\n\n

using Azure.Identity;\nusing Azure.Security.KeyVault.Secrets;\n\n...\n\/\/ add these lines in your method to call Azure Key Vault\nEnvironment.SetEnvironmentVariable(\"HTTP_PROXY\", \"http:\/\/127.0.0.1:8888\");\nEnvironment.SetEnvironmentVariable(\"HTTPS_PROXY\", \"http:\/\/127.0.0.1:8888\");\n\nvar client = new SecretClient(new Uri(keyVaultUrl), credential);\nKeyVaultSecret result = client.GetSecret(\"MySecret\");<\/pre>\n","protected":false},"excerpt":{"rendered":"

Recently, I came across a couple of scenarios where I could not get Fiddler to capture SSL traffic easily. Below are the some tips and tricks that may help in these situations. Scenario 1: Capture Node.js web traffic in Fiddler In the same command window where you run npm start to start the node server, run the below set commands first to set the proxy info before running npm start.…<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[67],"class_list":["post-7841","post","type-post","status-publish","format-standard","hentry","category-tool","tag-fiddler"],"_links":{"self":[{"href":"https:\/\/blogs.aaddevsup.xyz\/wp-json\/wp\/v2\/posts\/7841"}],"collection":[{"href":"https:\/\/blogs.aaddevsup.xyz\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.aaddevsup.xyz\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.aaddevsup.xyz\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.aaddevsup.xyz\/wp-json\/wp\/v2\/comments?post=7841"}],"version-history":[{"count":16,"href":"https:\/\/blogs.aaddevsup.xyz\/wp-json\/wp\/v2\/posts\/7841\/revisions"}],"predecessor-version":[{"id":7873,"href":"https:\/\/blogs.aaddevsup.xyz\/wp-json\/wp\/v2\/posts\/7841\/revisions\/7873"}],"wp:attachment":[{"href":"https:\/\/blogs.aaddevsup.xyz\/wp-json\/wp\/v2\/media?parent=7841"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.aaddevsup.xyz\/wp-json\/wp\/v2\/categories?post=7841"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.aaddevsup.xyz\/wp-json\/wp\/v2\/tags?post=7841"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}