官方版

Capture Traffic from iOS Device

Configure Fiddler

  1. Click Tools > Fiddler Options > Connections.
  2. Click the checkbox by Allow remote computers to connect.

18.Configure Fiddler for ios(为ios配置Fiddler) - 图1

  1. Restart Fiddler.
  2. Ensure your firewall allows incoming connections to the Fiddler process, and that it’s not blocking all incoming connections, including those in the list of allowed apps.
  3. Hover over the Online indicator at the far right of the Fiddler toolbar to display the IP addresses assigned to Fiddler’s machine.
    18.Configure Fiddler for ios(为ios配置Fiddler) - 图2
  4. Verify client iOS device can reach Fiddler by navigating in the browser to http://FiddlerMachineIP:8888. This address should return the Fiddler Echo Service page.
  5. For iPhone: Disable the 3g/4g connection.

    Set the iOS Device Proxy

  6. Tap Settings > General > Network > Wi-Fi.

  7. Tap the settings for the Wi-Fi network.
  8. Tap the Manual option in the HTTP Proxy section.
  9. In the Server box, type the IP address or hostname of your Fiddler instance.
  10. In the Port box, type the port Fiddler is listening on (usually 8888).
  11. Ensure the Authentication slider is set to Off.
    18.Configure Fiddler for ios(为ios配置Fiddler) - 图3

    Decrypt HTTPS Traffic from iOS Devices

  12. Download the Certificate Maker plugin for Fiddler.

  13. Install the Certificate Maker plugin.
  14. Restart Fiddler.
  15. Configure the device where Fiddler is installed to trust Fiddler root certificate.
  16. On the iOS device, go to http://ipv4.fiddler:8888/ in a browser. Do this from Safari, Chrome will just download the certificate and will not offer to install it, the same for Firefox.
  17. From the bottom of the Fiddler Echo Service webpage, download the FiddlerRoot certificate.
    18.Configure Fiddler for ios(为ios配置Fiddler) - 图4
  18. Click Allow to download a configuration profile.
  19. Go to Settings > Profile Downloaded, tap the downloaded DO_NOT_TRUST_FiddlerRoot profile, click Install.
    18.Configure Fiddler for ios(为ios配置Fiddler) - 图5
  20. Tap the Install button again, and confirm with yet another Install button.

18.Configure Fiddler for ios(为ios配置Fiddler) - 图6
On iOS 10 and later, after installing the FiddlerRoot certificate, go to Settings -> General -> About -> _Certificate Trust Settings_and manually enable full trust for the FiddlerRoot root certificate. Accept the dialog that says that this will allow a third-party to eavesdrop on all your communications.

Uninstall FiddlerRoot Certificate

If you decide to uninstall the root certificate:

  1. Tap the Settings app.
  2. Tap General.
  3. Scroll to Profiles.
  4. Tap the DO_NOT_TRUST_FiddlerRoot* profile.
  5. Tap Remove.

谷歌翻译版

捕获来自iOS设备的流量

配置Fiddler

  1. 单击 Tools > Fiddler Options > Connections。
  2. 点击选中 Allow remote computers to connect.

18.Configure Fiddler for ios(为ios配置Fiddler) - 图7

  1. 重新启动Fiddler。
  2. 确保你的防火墙允许进入Fiddler进程的连接,并且没有阻止所有进入的连接,包括允许应用列表中的那些.
  3. 将鼠标悬停在Fiddler工具栏最右侧的Online指示器上,以显示分配给Fiddler机器的IP地址。
    18.Configure Fiddler for ios(为ios配置Fiddler) - 图8
  4. 通过在浏览器中导航到http://FiddlerMachineIP:8888,验证客户端iOS设备可以访问Fiddler。 此地址应返回Fiddler Echo Service页面。
  5. 对于iPhone:禁用3g / 4g连接。

    设置iOS设备代理

  6. 点击 Settings > General > Network > Wi-Fi.

  7. 点击Wi-Fi网络设置。
  8. 点击“ HTTP代理”部分中的“手动”选项。
  9. 在“服务器”框中,键入Fiddler实例的IP地址或主机名。
  10. 在Port框中,键入Fiddler正在监听的端口(通常是8888)。
  11. 确保身份验证滑块设置为Off。
    18.Configure Fiddler for ios(为ios配置Fiddler) - 图9

    解密来自iOS设备的HTTPS流量

  12. 下载Fiddler中的 Certificate Maker plugin插件

  13. 安装 Certificate Maker 插件。
  14. 重新启动Fiddler。
  15. 配置安装的Fiddler设备信任Fiddler根证书
  16. 在iOS设备上,通过浏览器访问http://ipv4.fiddler:8888/。从Safari执行此操作,Chrome只会下载证书,而不会提供安装证书(与Firefox相同)。
  17. 从Fiddler Echo Service网页的底部,下载FiddlerRoot证书。
    18.Configure Fiddler for ios(为ios配置Fiddler) - 图10
  18. 单击Allow下载配置概要文件。
  19. 依次点击 Settings > Profile Downloaded, 点击下载 DO_NOT_TRUST_FiddlerRoot 配置文件, 点击安装.
    18.Configure Fiddler for ios(为ios配置Fiddler) - 图11
  20. 接着点击 Install 按钮, 并按另一个“Install”按钮进行确认。

18.Configure Fiddler for ios(为ios配置Fiddler) - 图12
在iOS 10和更高版本上,安装FiddlerRoot证书后,转到“设置”->“常规”->“关于”->“证书信任设置”,然后手动启用FiddlerRoot根证书的完全信任。 接受对话框,该对话框将允许第三方窃听您的所有通信。

卸载Fiddler根证书

如果你的设备想要卸载Fiddler根证书:

  1. 点击设置app。
  2. 点击常规.
  3. 滚动到 配置文件。
  4. 点击 DO_NOT_TRUST_FiddlerRoot* 配置文件。
  5. 点击 删除。