2

1 Introduction

An easy-to-use and completely free packet capture tool

2. Use

 npm i whistle --global
w2 start

Easy to start, and then open the corresponding monitoring window in the browser according to the prompts
image.png

image.png

3. Use proxy switch omega proxy

Search the Google Web Store, search for the name, and install the plugin.
image.png

Change the configuration and select Enable this configuration.

image.png

4. Monitor HTTPS

image.png

  1. Windows users, download and open, and then install it in the 受信任的证书颁发机构 list
    image.png
  2. Mac users, also trust
    image.png
    image.png
Be sure to install the certificate to a trusted certificate authority. If you do not have a certificate installed, and then check Capture TUNNEL CONNECTs, then clicking on the webpage will prompt a warning about protected xxx.

5. Restart the browser (this step is very important)

6. Mobile phone capture

The mobile phone is connected to the same wifi as the computer, and the wifi is set to manually proxy to the ip and port. For example, here is the proxy to 10.227.42.125:8899

Then scan the QR code of HTTPS to download.

If there is no way to download, you can consider starting a download service yourself, and then transfer the downloaded content from the computer to the mobile phone. (The Android phone can directly send WeChat to the phone to open it, but ios requires that you must visit a certain webpage to download, what kind of gadgets, and IOS must use the safari browser to open, other browsers cannot download the certificate)

The following is a simple example fragment of the express service, the mobile phone and the pc can access the service on the same wifi to download the certificate.

If the router is turned on AP隔离 then different devices under the same wifi cannot access each other, need to pay attention! It may also be because of this reason that the previous setting proxy scan code cannot be downloaded!
 # 直接快速生成一个express应用
npx express-generator
 // 更改router/index,记得要把静态文件放在public下,然后启动服务即可。
var express = require('express');
var router = express.Router();

router.get('/', function(req, res, next) {
  res.download('public/rootCA.pem');
});

module.exports = router;

李大雷
4k 声望389 粉丝

想学唱歌的码农