Kotani bald collection
- We used it in reverse
tcpdump
.wireshark
Grab a bag. Here’s what Gu likesCharles(Blue and white)
1. Charles captures HTTPS packets
It’s actually pretty easy to configure when we use a Mac
-
- So let’s start with
The iPhone and Mac
Connected to theThe same network
Under the
- So let’s start with
In this case, Kotani’s approach is that WiFi is on the Mac and the iPhone is connected
-
Mac open WiFi
-
The iPhone connect WiFi
Settings – > WIRELESS LAN – > Connections. Then click on WiFi Settings
-
- Open the
Charles(Blue and white)
. inInstall the root certificate on the Mac
- Open the
-
- Trust certificate
-
- Install the mobile phone trust certificate
-
- Configure the protocol port
At this point, you can restart Charles on your Mac and grab HTTPS packets.
-
- Example: Suppose we ask Baidu (www.baidu.com)
It worked out
2. Charles changes the packet
2.1. Redirect the request address
Then our request www.qq.com. Becomes a request www.baidu.com
2.2. Rewrite the function
Find and replace
- then
iPhone
See the effect
Perfect turned into a little valley
2.3. Their context
BreakPoints function
This is suitable for debuggingModify a
Network data.redirect
andRewrite the function
It’s a long-term modification
When a breakpoint is reached, Charles intercepts the network request, which can then be modified to continue execution. (This guy can play)
2.4 Compose functions
Here comes the most popular one
Compose function
When you feel like you’ve captured an important request, you canAn unscrupulous, bottomless experiment
Execute and see the result, in short, can always change the parameters of the test
3. Break SSL bidirectional authentication
- We use
Charles
You can grab a lot of network packets, but if you use themSSL Two-way authentication
.Charles
You can’t catch it
Is there nothing to be done? How could it be! Ha ha 😆
-
Ssl-kill -switch2 plug-in download (interested can see his source code is how to achieve ~)
-
Download com. Nablac0d3. Sslkillswitch2_0. 14. Deb (the latest)
-
Install it in the /var/mobile-/ directory of your phone
Install and restart the screen
- After the
Set the interface
You can see one of these
With this enabled, Charles can capture data packets!
4. To summarize
-
I was gonna give you an example at the end. But what example do you have in mind
-
Charles is pretty good at catching bags. You guys can use it. (However, there is not much contact with positive development, and Xiaoya is also a wave of interest research.)
-
Finally, I hope this blog is useful for brothers, wish brothers wuyun Changlong ~