当前位置:网站首页>【FiddlerScript】利用FiddlerScript抓包保利威下载
【FiddlerScript】利用FiddlerScript抓包保利威下载
2022-08-01 05:26:00 【小白大侠Leo】
目标站点 王派医学官网 医考选王派,拿证就是快
脚本原理就是删除key链接中的playsafe
最终效果

准备的工具
1.浏览器
2.配置好证书的Fiddler,可以看我b站视频【跟着新手学抓包】第003集如何配置中文版Fiddler_哔哩哔哩_bilibili
放置代码
1.首先打开Fiddler,切换到FiddlerScript

2.在第一行加上这段代码
import System.Text.RegularExpressions;
3.点击跳转:OnBeforeRequest
3.在OnBeforeRequest前面加上这段代码
public static RulesOption("捕获blv")
BindPref("fiddlerscript.rules.BLV")
var m_isBLV: boolean = false;
4.在OnBeforeRequest里面加上这段代码
if(oSession.fullUrl.Contains("https://hls.videocc.net/playsafe") && oSession.fullUrl.Contains("key")){
oSession.fullUrl = oSession.fullUrl.Replace("/playsafe","");
}
5.点击跳转:OnBeforeResponse
6.在OnBeforeReseponse里面加上这段代码
if(m_isBLV){
if(oSession.fullUrl.Contains("https://hls.videocc.net") && oSession.fullUrl.Contains("m3u8")){
oSession.utilDecodeResponse();
var body = oSession.GetResponseBodyAsString();
if(body.IndexOf("#EXT-X-STREAM-INF")!=-1){
var m3u8Url = oSession.fullUrl;
var baseUrl = oSession.fullUrl.Substring(0,oSession.fullUrl.IndexOf(".m3u8"))
var r = new Regex('_(.*?desktop)');
FiddlerObject.log(body);
var mc = r.Match(body);
if(mc.Groups[1].Value == ""){
//没有匹配到,不再执行后面的代码
FiddlerObject.log("[异常]:获取m3u8Url正则失败,请联系开发者QQ:2908436596");
return;
}
var dUrl = mc.Groups[1].Value;
var m3u8Data = baseUrl +"_"+ dUrl;
FiddlerObject.log("成功获取最高清晰度m3u8URL为:");
FiddlerObject.log(m3u8Data)
}
}
}
if(m_isBLV && oSession.fullUrl.Contains("hls.videocc.net") && oSession.fullUrl.Contains("key?token") ){
FiddlerObject.log(Fiddler.Utilities.ByteArrayToString(oSession.ResponseBody))
var keyBytes = Fiddler.Utilities.ByteArrayToString(oSession.ResponseBody)
var base64Data = Convert.ToBase64String(oSession.ResponseBody)
FiddlerObject.log("base64:"+base64Data)
}
使用流程
1.点击规则->捕获blv,前面有勾代表开启,没有代表关闭

2.切换到日志面板,右键->清除
3.登录网站,点击视频,地址自吐

4.将地址放到下载器

边栏推荐
- Use controls as brushes to get bitmap code records
- Selenium:上传、下载文件
- ORACLE modify another user package (package)
- MySQL-DML language-database operation language-insert-update-delete-truncate
- Flip letters using string container
- Selenium:元素判断
- Selenium: browser operation
- pytorch、tensorflow对比学习—功能组件(优化器、评估指标、Module管理)
- WebSocket implements chat function
- PAT serie b write the number 1002
猜你喜欢

state compressed dp

pytroch、tensorflow对比学习—搭建模型范式(低阶、中阶、高阶API示例)

JWL-11/2-99.9A电流继电器

Code Interview Guide for Programmers CD15 Generating an Array of Windowed Maximums

HJS-DE1/2时间继电器

Qt Widget 项目对qml的加载实例

pytroch、tensorflow对比学习—专栏介绍

Dialogue with the father of MySQL: One excellent programmer is worth 5 ordinary programmers

Power button (LeetCode) 212. The word search II (2022.07.31)

2022/07/29 入职健海JustFE团队,我学到了高效开发(年中总结)
随机推荐
LeetCode 231. 2 的幂
第6章——数据库的安全性
导致锁表的原因及解决方法
NUMPY
Selenium:元素判断
[MySQL] 多表查询
torch
After the image is updated, Glide loading is still the original image problem
vsce package 后出现 Command failed: npm list --production --parseable --depth=99999 --loglevel=error异常
Flip letters using string container
Selenium:操作Cookie
可持久化线段树
Error: AttributeError: module 'matplotlib' has no attribute 'figure'
matplotlib pyplot
轻量级的VsCode为何越用越大?为什么吃了我C盘10G?如何无痛清理VsCode缓存?手把手教你为C盘瘦身
(Codeforce 757) E. Bash Plays with Functions
Robot_Framework: Assertion
I met a shell script
Challenge 52 days to memorize Peppa Pig (Day 01)
类神经网络训练不起来怎么办