当前位置:网站首页>抓包工具charles实践分享
抓包工具charles实践分享
2022-06-24 09:47:00 【秋无之地】
最近学习了一款抓包工具,感觉十分好用,于是打算给大家分享一下,具体的实践过程如下:
准备工作:mac-os系统、charles、手机抖音app
1、打开Charles,电脑设置代理端口:打开charles->Proxy->Proxy Settings,设置代理端口,如图所示:

2、手机设置代理:
1)首先保证手机与电脑处于同一局域网
2)设置WiFi代理,HTTP代理改成手动->服务器地址为抓包电脑的IP地址(Windows可用ipconfig查询)->端口为步骤1中charles设置的端口,如图所示:

3、手机下载安装Charles证书:help->SSL Proxying->Install Charles Root Certificate on a Mobile Device or Remote Browser->手机浏览器输入chls.pro/ssl,下载安装证书
注:安装后证书后,IOS手机可在设置->通用->描述文件中,查看已安装的证书



4、信任证书(注:IOS10以上的系统需要此步骤,Android和IOS10以下的系统直接跳过此步骤)
设置->通用->关于手机->证书信任设置:信任证书

5、 SSL代理设置:如图设置后,只有接口远程地址结尾是“:443”的接口才会被抓包

6、打开手机抖音app,在搜索框输入关键字(例如:棚棚朱古力):

7、点击进入目标详情页:

8、抓包工具上找到对应的数据,并获取分享ID:

9、拿到分享ID就能通过python进一步获取到目标数据了:
def get_love_num(shape_id):
'''
获取除置顶外前十视频的点赞数
:param shape_id:
:return:
'''
sign_ = "XXXXXXXX"
url = f"https://www.iesdouyin.com/web/api/v2/aweme/post/?sec_uid={shape_id}&count=100&max_cursor=0&aid=1128&_signature={sign_}"
resp = requests.get(url)
resp_result = resp.json()
# print(resp_result)
love_num_list = []
awe_list = resp_result['aweme_list']
for awe_dict in awe_list[:10]:
try:
love_num = awe_dict['statistics']['digg_count']
except:
love_num = 0
love_num_list.append(love_num)
return love_num_list运行结果:


以上就是我的分享,如果有什么不足之处请指出,多交流,谢谢!
边栏推荐
- 解决微信小程序rich-text富文本标签内部图片宽高自适应的方法
- Learn to use the phpstripslush function to remove backslashes
- How to customize sharing links in wechat for H5 web pages
- Baidu online disk download has been in the process of requesting solutions
- np. float32()
- canvas管道动画js特效
- numpy. logical_ and()
- 413 binary tree Foundation
- 整理接口性能优化技巧,干掉慢代码
- 形状变化loader加载jsjs特效代码
猜你喜欢

线程的六种状态

Floating point notation (summarized from cs61c and CMU CSAPP)

Juul, the American e-cigarette giant, suffered a disaster, and all products were forced off the shelves

线程池的状态

24. 图像拼接大作业

Baidu online disk download has been in the process of requesting solutions

Flink checkPoint和SavePoint

Machine learning perceptron and k-nearest neighbor

正规方程、、、

leetCode-498: 对角线遍历
随机推荐
用扫描的方法分发书稿校样
记录一下MySql update会锁定哪些范围的数据
希尔排序图文详解+代码实现
4.分类管理业务开发
解决微信小程序rich-text富文本标签内部图片宽高自适应的方法
简单的价格表样式代码
Uniapp develops wechat official account, and the drop-down box selects the first one in the list by default
2022-06-23:给定一个非负数组,任意选择数字,使累加和最大且为7的倍数,返回最大累加和。 n比较大,10的5次方。 来自美团。3.26笔试。
leetCode-2221: 数组的三角和
3. addition, deletion, modification and query of employees
dedecms模板文件讲解以及首页标签替换
uniapp 开发微信公众号,下拉框默认选中列表第一个
leetCode-1823: 找出游戏的获胜者
Wechat cloud hosting launch public beta: in the appointment of the publicity meeting
Caching mechanism for wrapper types
使用swiper左右轮播切换时,Swiper Animate的动画失效,怎么解决?
SSM integration
JMeter接口测试工具基础— 使用Badboy录制JMeter脚本
Using pandas to read SQL server data table
Nvisual digital infrastructure operation management software platform