爬虫Fiddler-手机抓包

[ti:Good Time]
[ar:Carly Rae Jepsen/Owl City]
[al:Kiss (Deluxe Version)]
[by:]
[offset:0]
[00:00.00]Good Time (好时光) - Owl City (猫头鹰之城)/Carly Rae Jepsen
[00:01.05]Lyrics by:Adam Young/Matthew Thiessen/Brian Lee
[00:02.11]Composed by:Adam Young/Matthew Thiessen/Brian Lee
[00:03.17]Arranged by:Adam Young
[00:04.22]Woah oh oh oh
[00:05.99]It's always a good time
[00:08.15]Woah oh oh oh
[00:09.82]It's always a good time
[00:15.96]Woke up on the right side of the bed
[00:19.81]What's up with this Prince song inside my head
[00:23.49]Hands up if you're down to get down tonight
[00:28.72]Cause it's always a good time
[00:31.17]Slept in all my clothes like I didn't care
[00:35.02]Hopped into a cab take me anywhere
[00:38.81]I'm in if you're down to get down tonight
[00:44.00]Cause it's always a good time
[00:46.76]Good morning and good night
[00:50.54]I wake up at twilight
[00:54.40]It's gonna be alright
[00:57.41]We don't even have to try
[00:59.25]It's always a good time
[01:01.55]Woah oh oh oh oh oh oh
[01:05.28]Woah oh oh oh
[01:07.01]It's always a good time
[01:09.09]Woah oh oh oh oh oh oh
[01:12.53]We don't even have to try
[01:14.45]It's always a good time
[01:16.59]Good time
[01:17.44]Good time
[01:18.27]It's always a good time
[01:20.60]Woah oh oh oh
[01:24.52]Freaked out dropped my phone in the pool again
[01:28.34]Checked out of my room hit the ATM
[01:32.00]Let's hang out if you're down to get down tonight
[01:37.37]Cause it's always a good time
[01:40.11]Good morning and good night
[01:43.87]I wake up at twilight
[01:47.71]It's gonna be alright
[01:50.71]We don't even have to try
[01:52.54]It's always a good time
[01:54.88]Woah oh oh oh oh oh oh
[01:58.62]Woah oh oh oh
[02:00.26]It's always a good time
[02:02.42]Woah oh oh oh oh oh oh
[02:05.93]We don't even have to try
[02:07.75]It's always a good time
[02:10.06]Woah oh oh oh oh oh oh
[02:13.83]Woah oh oh oh
[02:15.47]It's always a good time
[02:17.66]Woah oh oh oh oh oh oh
[02:21.08]We don't even have to try
[02:22.92]It's always a good time
[02:25.06]Doesn't matter when
[02:26.97]It's always a good time then
[02:29.07]Doesn't matter where
[02:30.66]It's always a good time there
[02:32.77]Doesn't matter when
[02:34.60]It's always a good time then
[02:38.46]It's always a good time
[02:40.60]Woah oh oh oh oh oh oh
[02:44.32]Woah oh oh oh
[02:45.97]It's always a good time
[02:48.16]Woah oh oh oh oh oh oh
[02:51.65]We don't even have to try
[02:53.49]It's always a good time
[02:55.77]Woah oh oh oh oh oh oh
[02:59.57]Woah oh oh oh
[03:01.13]It's always a good time
[03:03.41]Woah oh oh oh oh oh oh
[03:06.89]We don't even have to try
[03:08.71]It's always a good time
[03:11.12]Woah oh oh oh oh oh oh
[03:14.85]Woah oh oh oh
[03:16.36]It's always a good time
[03:18.69]Woah oh oh oh oh oh oh

#前言- iOS 系统抓包

出于python的兴趣,不少人肯定去选择爬虫,目前大众浏览器的开发者工具(F12)可满足大部分的需求。然而我最近练手爬虫时,发现手机APP端的对比网页比较简单,百度教程的时候全是前几年的 手机抓包教程 利用Fiddler,可当自己配置好后 却发现手机浏览器访问网页仍有提示未知证书 同时部分APP显示无法连接网络,之后从B站得知 Android9.x 系统之后都不行 需要安装一些框架,教程百度就有。—-下面我给出IOS的手机抓包教程。

Fiddler 配置 -window10系统

需要配置 Fiddler 允许远程连接,点击 Tools –> Fiddler Options –> Connections,勾选 allow remote computers to connect,默认监听端口为 8888,若端口被占用可以设置成其他的,配置好后要重新启动 Fiddler,如下图:

设置网络代理

打开 iPhone/iPad的设置, 找到你wifi点开感叹号,设置最下面的 HTTP 代理,输入 Fiddler 所在机器的 IP 地址以及 Fiddler 的端口号 8888 (本机IP查询方法 win+r 输入cmd打开输入命令 ipconfig 找到 IPv4 地址 为本机IP)

安装 Fiddler 证书

这一步是为了让 Fiddler 能捕获 HTTPS 请求。如果你只需要截获 HTTP 请求,可以忽略这一步

  • 首先要知道 Fiddler 所在的机器的 IP 地址,例如我安装了 Fiddler 的机器的 IP 地址是:192.168.0.103
  • 打开 iPhone 的 Safari,访问 http://192.168.0.103:8888,点击 FiddlerRoot certificate 然后安装证书

开启 Fiddler 证书

iOS 10.3 以后,安装了的证书不是默认启用的,而是需要手动开启。设置 –> 通用 -> 关于本机 -> 证书信息设置

抓包效果图

注意事项

抓包完之后 记得将刚刚Wifi的Http中的手动 改为无,不然上不了网。

南国旧梦i

南国旧梦i

出生于苏北小镇 习惯了一个人坐在电脑前 喜欢一个人听着音乐 梦想着一天有一趟说走就走的旅行·······目前过着大学生活,开始了程序人生。

4 Comments

留下你的评论

*评论支持代码高亮<pre class="prettyprint linenums">代码</pre>