xixicoco 发表于 2021-1-25 16:42

i<二爷最爱读的书 >安全网站视频m3u8下载初探

本帖最后由 xixicoco 于 2021-1-26 12:57 编辑

因为网站是业界大佬
所以省略一切指向内容
有兴趣的自己去详细探索

视频是m3u8的,但是内容加密了,怎么办?--解密呗

{"code":1,"message":"ok","data":{"status":2,"info":"免费课程试看5分钟","data":"dpBKSX1POcgn5CQKLgYWKhrXwerPBhJNR5RQKI6T1RgFumoQjr+XOGC7AGhJY6b0pYrU4jTYaJl4GJhht3p3LYru7rAZBeeFOY5g5SEkIVwbEsVd0LiG3nu/UKT8dVtKaVqCz3b9U/aiT9vVmBbnWwa/vhqJCHjI06vubKmtipPlF9qxEZC7he3rgfCm4O2Fls1uQIYgLExnAXT56oG2ziZbKadJDsotPhTf7icnOTFDmdydtITazBqlfmnXEXY8lRABm8uzsRHajEs1l2g5edaHtGHwqZXS7GatMd+SV6hpyQ0vza8SCq55uQyFULGXd4Z67qvxVh4PnMhYcO0e/tYbkI6jk5cmevKXWMVGdlg4d0iC7heFQMhfvmyjHl5+n5+YFaKBIt9+h83in7uPyaaUKLvD9vL5rHIjo2iRw6RjY58KRF8ajMTgJ4jHYmDvyFtsYyJoxMh5VCumFf+tCe10La0oEfmJJ4Nq/luB7PEOfRr0o09mQfasW9QQRB3RqmY99EGOTAlHr6qzKYDg8QvXKZy0bGqIGRt7A1+s+2aT97WzbqHIiXNr37PhijGjpSh30P3rI1J52AJoqDQK3NB/u3TUhSI96Cc+ZFbE3CD1X5b1WGV22YZPR4EDBHucb9qiFG9LlueawYBd78dTKl4jw/8o1jF7iTGYZhUNvcXfCpa4wGgRIfvI5E3OdChdCq7EKvO8uwUNp6+af7a1JJO+efmamgwPgqnxrzhAcxIb3mNnyJ66wEXWVzu5WMdNA7FAtevxCQgEHgTO9C09brZBn+yikOq/0dlckyxA+iIeZhZo/DJeOpIiEPkOo9bvdjXy8T7I8hhMKbrgq8Yl1pYod7ITQwQtCiohEedcge3qjylECEcqx1wUL+P1PruUtr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amWLXE0z5PnmP3x2E2Zd3r+RFg6Ed/RPciOOP3Q5Uz3ElDHOAsJxWOtl35Y/hLF7YU3jrZin1tIvb6MgsSDwK+DyACkxbxhgmVjVn3YreaaBg6UcHPwSV0icoOfWm+14bG2jsjUC3LL5JW4vqWbtaQkOhWxi0MFGWX4eOmRQPBL2SV+VyHm6rdjbH+FRGmixE/QSwwIB8SpS+rH5JN7qsorOz1idEWZQe7+HOPl+AYUNx3H6sBisqGEwbw3GnWitAI0eP7k/FPNf64pPe8Kz+8mXnkmurLQGDji9EWYh8HcHN2+6VAEgCTvNYBtIf7+tkL8uba2CRGv/Slw6IcAvJEzSLs5Gg3mwC/qTrWmNAeoRJg1enDvVer4iFPcgoVdySxJXqq6GpuBiq+aRHwjD5fq4JxCnhh0TqR6SHfTciG1jEvOZ3p3kfNHi9Pme8+AiLc4kO5DAACoZEfwIe7pRe4jAAHY3xNYwDjPE0frDVcX7I18R+b0bE424J+8F/Rt9fIFaPu3yx2VpYPMYDQ9WHJZ2yDH/uJdhs5Wo3Wb3AcF1yGkXyJYfQhFPMXJbT4NBLS2oU4B4z4dpLSLX4GcqbV9SGp061KY9XEG4CsumP3A1dSR/ptCuhIDdcyZpuTnx+YRhlAMs3w06g8KRyMOaWGnofuP2wBmF9/k4jcaTiPw2GRvBQq+8ZinulR75WkHsh439CYsCo9FIP6cIrIH0hClrCt0PvkoiS4/FMe2XY2cOQink0SXulc39AS5zmMNO/V7T9yeyl6krE+M/gvv5JD1DDSfmENgBpyFPRF3XOnIuNficf5OoQX2rEsyVZT/LCHHhS/N53ptoMVLVoxrkHMVVWhIiI/ponRCuRPvNChuCS8d5Zc0HB4PYTZSdABBrwA9qP3nSuBv8Gd4c7FJfZebatexfQ/fn9znG6n9HOzmFPsIknMcrfdZmYEPIiYb6T8D8yWkPZUZo4okWpH7xywjwgkSRL8M6oV7A="}}


首先找js,f12,那么不必说就这2选1:

最后确定是media-play.min.js(因为他比较大,算法比较多),sublime打开,格式化,搜索关键字:decrypt


找到关键信息:xxtea ,啥是xxtea,百度之
原来这个算法的作者对茶婊有生生的厌恶,因此要xx了tea门(果然程序猿大都愤青)

既然是公开算法,那么直接应用就好,gayhub上搜索:xxtea,选择你喜欢的语言,直接解密密文

解密后的是标准的m3u8格式,算法写好了 aes cbc,iv和key都给出来了,只是key的获得是通过链接,这里面又是一成加密:
{"code":1,"message":"ok","data":"A1xQBQgEUwcCXVAFAVYAUgo1MVAOCAVdUAFdDlcAAFpXAA==","key":"VFsGVQNSBQdRVgNTV1BVAFE1MQEFDAVUAwxUA1MHCFNVVA==","t":"16-52-43"}


这个就有难度了,个人很难搞清楚原理,有大佬提示了信息(见附件,还在探索中)



获得key后,配合iv,m3u8的链接填入 N_m3u8DL-CLI_SimpleG就可以愉快的下载了:

正常下载,解密,播放720p













keber 发表于 2021-1-25 18:44

大佬厉害了

lockxxx 发表于 2021-1-26 10:19

厉害了。。

xixicoco 发表于 2021-3-8 12:58

爱安全吗,爱春秋,二哥走起

一大杯奶茶呀 发表于 2021-3-15 10:00

优秀!!!

ofo 发表于 2021-6-29 22:22

本帖最后由 ofo 于 2021-6-29 22:30 编辑

下完后一看,啊,5分钟



楼主的教程不错,值得学习

前15个TS可以愉快的下载(15个*20秒=300秒=5分钟)
15个后就鉴权了,不让下了
页: [1]
查看完整版本: i<二爷最爱读的书 >安全网站视频m3u8下载初探