Fiddler (5) Use Fiddler in Mac

Source: Internet
Author: User
Tags vmware fusion

Fiddler is developed in C. Therefore, Fiddler cannot run in Mac. There is no way to directly use Fiddler to intercept HTTP/HTTPS in MAC systems. What should Mac users do?

Fiddler allows "remote connection ". We can use this indirect method to implement Fiddler to capture the HTTP/HTTPS

 

Reading directory:

  1. Use virtual machines
  2. The Virtual Machine network uses the "Bridged" Mode
  3. Configure the Fiddler on the Virtual Machine to allow "remote connection"
  4. Obtain the IP address of the Virtual Machine Windows 7
  5. Configure Mac and direct proxy server to Fiddler
  6. Success! Start to capture packets
  7. After running out, remember to disable proxy in Mac

 

Use virtual machines

Install Virtual Machine software (such as VMware Fusion) on Mac. then install a Windows 7 system on the Virtual Machine (other Windows systems are acceptable), and then install Fiddler On ipvsw7.

 

The Virtual Machine network uses the "Bridged" Mode

The "Bridged" mode enables the Windows 7 system running on the virtual machine, just like an independent host in the LAN, with an independent IP address.

 

 

Configure the Fiddler on the Virtual Machine to allow "remote connection"

On the virtual machine, open Fiddler Tools-> Fiddler Options. (Remember to restart Fiddler after configuration ).

Select "Decrpt HTTPS traffic", and Fiddler can intercept HTTPS requests.

Select "Allow remote computers to connect" to Allow other machines to send HTTP/HTTPS requests to Fiddler.

 

Obtain the IP address of the Virtual Machine Windows 7

This is too simple. Run ipconfig. In CMD to get the IP address of Windows 7,

Or you can get the IP address in Fiddler. Place the mouse over "Online" on the Fiddler toolbar.

 

 

 

Configure Mac and direct proxy server to Fiddler

On the Mac System, choose System Preferences> Network> Advanced...> Proxies.

Select "Web Proxy (HTTP)" and enter the IP address 10.29.56.93 and port 8888.

Select "Secure Web Proxy (HTTPS)" and enter the IP address 10.29.56.93 and port 8888.


 

 

Success! Start to capture packets

HTTP/HTTPS sent by any Mac program (such as Safari, Firefox, Itunes, and App Store) can be obtained by Fiddler.

Instance: on Mac, open Safari,

1. Enter the http://www.cnblogs.com/tankxiao to see if Fiddler can capture it.

2. Enter the https://dynamic.12306.cn/otsweb/ to see if Fiddler can capture it.

 

Are both HTTP and HTTPS intercepted ????, You can not only intercept, but also break the breakpoint, modify the Request, modify the Response, Do what you want.

After running out, remember to disable proxy in Mac

When you run out of the service, you must disable the proxy on the Mac. Otherwise, the Mac may not be able to access the Internet.

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.