Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use Fiddler to grab data packets on a mobile phone

2025-04-08 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

A lot of times we have this problem:

1. How to crawl a page visited on the phone or an APP packet

2. How to let the mobile phone host access a certain server and then test it on this server

The above problems can be solved by using Fiddler, which is implemented as follows:

Download Fiddler and install it (easy to install, next step is fine)

Address: https://www.telerik.com/download/fiddler;

2. Set Fiddler:

Open Fiddler, click * * Tools * * →, click * * Telerik Fiddler Options * *, jump out of the pop-up box →, and click * * Connections * * on the pop-up box. The pop-up box is as follows:

Check the port and remember the port number. The default is' 8888'. Check [Allow remote computers to connect]. Mine is the second →, click OK, and restart Fiddler.

3. Check the native IP (I won't elaborate on how to get the native IP)

4. Install Fiddler certificate (required for iPhone phone, skip this step for Android phone):

Open the mobile browser and enter the local IP+ port number. Mine is xx.xx.xx.xx:8888. The page jumps as shown in the picture.

Click [FiddlerRoot certificate] on the page, and the page jumps as shown in the figure.

The certificate is thus installed.

5. Configure the IP address of mobile phone (iPhone as an example):

1. Click the settings on your phone to find the linked wireless network.

2. Click the button under IP Settings (HTTP Agent), as shown in the figure.

3. Wireless network HTTP proxy here, click Manual to fill in the port numbers on the local IP and fiddler, as shown in the figure

6. Modify native host:

Location of the Host file:

In XP, win7 systems, HOST files

On the system disk C:\ Windows\ System32\ drivers\ etc

If you go in and don't see the Hos file, it's because some systems hide the Host file.

How to configure:

1. Open the host file by [notepad] through the path above.

2. After opening. You can edit the file:

Configure it according to your needs. The format is: # For example:

#

# 102.54.94.97 rhino.acme.com # source server

# 38.25.63.10 x.acme.com # x client host

# localhost name resolution is handled within DNS itself.

# 127.0.0.1 localhost

#:: 1 localhost

# indicates a comment. If the # is removed, the configured address takes effect. Just save the file.

This allows you to access a server through host.

7. After the above settings are completed, you can use Fiddler to grab the packets on the phone. The illustration shows Baidu data crawled on the mobile phone.

8. Question:

1. Prerequisite: the machine on which Fiddler is installed is on the same network as Iphone, otherwise IPhone cannot send HTTP to Fiddler machine.

2. Baidu cannot be accessed after the link (the Android phone should not have this problem and has not been verified).

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report