我正在尝试从任何youtube视频中获取* .flv的网址。我用wireshark分析了流量。我还有一个用于firefox的插件,可从youtube下载视频。它具有一项功能,可以在其中看到* .flv视频的直接URL。

到目前为止,我得到了:

http://r1---sn-i5onxoxu-i5hl.c.youtube.com(它是主机)这与下载者的URL匹配。

其次是

“视频回放?”然后是一些视频特有的东西这正是我无法弄清楚的。下载器从主机开始,然后是主机,然后是其他一些东西。

我所做的就是捕获程序包。然后,我在http请求中搜索“/ videoplayback?...”。我只是将其添加到主机,但无法正常工作。

有人能帮我吗?主持人之后我要放些什么?在哪里找到呢?

最佳答案

这是我到目前为止所发现的。
我看了相同的视频Wireshark - Using Dumpcap to capture to disk by Mike Pennacchi

捕获数据包并保存文件后,应用以下显示过滤器:
http.request.full_uri包含“范围”

我的文件中显示3个数据包:
735
2708
4615

选择第一个数据包,转到“数据包详细信息”,然后展开“超文本传输​​协议(protocol)”。
右键单击“完整请求URI [截断]”:然后选择“复制”->“值”,然后将URL粘贴到文本文件中。
还从其他数据包中复制该URL(请参阅“注释”),您将获得与此列表类似的列表:

http://r2---sn-5hn7zn7k.c.youtube.com/videoplayback?algorithm=throttle-factor&burst=40&cp=U0hWR1FUTl9GT0NONl9JTlJBOlBwSjNTRTA0azVw&cpn=B84QkSbXB7EAaDfs&expire=1372%2900%2%2%2900%2%2900%2%2900%2%2900%2%2900%2%92%2900%2%2900%2%=92%2900%2%2900%C92%2900%2%92%2900%2109%2900%2%2900%2%2900%2%92%2900%2109%2900%2%92%2900%2%2900%2%92%2900%2%92%9% %2C929123%2C929915%2C929906%2C929907%2C929125%2C925714%2C929917%2C929919%2C931202%2C912512%2C912515%2C912521%2C906838%2C904488%2C906840%2C931910%2C931913%2C932227%2C9048302C99002C29042C29092C3C9C2C92C29092C2C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C2C3C3C2C3C2C3C2C3C2C3C3G1JC2J2G1JK2J2K2K2JK2JKJ的高贵%2C912711%2C935102&ID = 6ca6b1fa4c861ff9&IP =我的IP地址&ipbits = 8&ITAG = 34&存活= YES&键= YT1&MS = AU&MT = 1372168727&MV = M&newshard = YES&范围= 13-1781759&ratebypass = YES&签名= D8D28CBCD4AAC5F46901397219F62CB04D3C6290.114129F2F93249AC4D88DF184C7D47C9929B3232&源= YouTube和sparams =算法%2Cburst%2Ccp%2Cfactor%2Cid%2Cip %2Cipbits%2Citag%2Csource%2Cupn%2Cexpire&sver = 3&upn = 9RmkbstttTM
http://r2---sn-5hn7zn7k.c.youtube.com/videoplayback?algorithm=throttle-factor&burst=40&cp=U0hWR1FUTl9GT0NONl9JTlJBOlBwSjNTRTA0azVw&cpn=B84QkSbXB7EAaDfs&expire=1372%2900%2%2%2900%2%2900%2%2900%2%2900%2%2900%2%92%2900%2%2900%2%=92%2900%2%2900%C92%2900%2%92%2900%2109%2900%2%2900%2%2900%2%92%2900%2109%2900%2%92%2900%2%2900%2%92%2900%2%92%9% %2C929123%2C929915%2C929906%2C929907%2C929125%2C925714%2C929917%2C929919%2C931202%2C912512%2C912515%2C912521%2C906838%2C904488%2C906840%2C931910%2C931913%2C932227%2C9048302C99002C29042C29092C3C9C2C92C29092C2C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C2C3C3C2C3C2C3C2C3C2C3C3G1JC2J2G1JK2J2K2K2JK2JKJ的高贵%2C912711%2C935102&ID = 6ca6b1fa4c861ff9&IP =我的IP地址&ipbits = 8&ITAG = 34&存活= YES&键= YT1&MS = AU&MT = 1372168727&MV = M&newshard = YES&范围= 1781760-3563519&ratebypass = YES&签名= D8D28CBCD4AAC5F46901397219F62CB04D3C6290.114129F2F93249AC4D88DF184C7D47C9929B3232&源= YouTube和sparams =算法%2Cburst%2Ccp%2Cfactor%2Cid%2Cip %2Cipbits%2Citag%2Csource%2Cupn%2Cexpire&sver = 3&upn = 9RmkbstttTM
http://r2---sn-5hn7zn7k.c.youtube.com/videoplayback?algorithm=throttle-factor&burst=40&cp=U0hWR1FUTl9GT0NONl9JTlJBOlBwSjNTRTA0azVw&cpn=B84QkSbXB7EAaDfs&expire=1372%2900%2%2%2900%2%2900%2%2900%2%2900%2%2900%2%92%2900%2%2900%2%=92%2900%2%2900%C92%2900%2%92%2900%2109%2900%2%2900%2%2900%2%92%2900%2109%2900%2%92%2900%2%2900%2%92%2900%2%92%9% %2C929123%2C929915%2C929906%2C929907%2C929125%2C925714%2C929917%2C929919%2C931202%2C912512%2C912515%2C912521%2C906838%2C904488%2C906840%2C931910%2C931913%2C932227%2C9048302C99002C29042C29092C3C9C2C92C29092C2C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C2C3C3C2C3C2C3C2C3C2C3C3G1JC2J2G1JK2J2K2K2JK2JKJ的高贵%2C912711%2C935102&ID = 6ca6b1fa4c861ff9&IP =我的IP地址&ipbits = 8&ITAG = 34&存活= YES&键= YT1&MS = AU&MT = 1372168727&MV = M&newshard = YES&范围= 3563520-5347327&ratebypass = YES&签名= D8D28CBCD4AAC5F46901397219F62CB04D3C6290.114129F2F93249AC4D88DF184C7D47C9929B3232&源= YouTube和sparams =算法%2Cburst%2Ccp%2Cfactor%2Cid%2Cip %2Cipbits%2Citag%2Csource%2Cupn%2Cexpire&sver = 3&upn = 9RmkbstttTM

检查范围;它在这些长网址中:
范围= 13-1781759
范围= 1781760-3563519
范围= 3563520-5347327

复制第一个网址并将其粘贴到浏览器中。
现在,您可以将第一个文件下载并保存为videoplayback_Pennacchi01。
重复第2部分和第3部分的步骤。

在播放文件之前,需要执行几个步骤。
hex editor中打开文件videoplayback_Pennacchi01。

该文件开始于:
12 00 03 4B 00 00 00 00 00 00 00 00 02 00 0A 6F 6E ... K .......... on

在FLV header 之前添加:
46 4C 56 01 05 00 00 00 09 00 00 00 00 FLV ..........

现在文件看起来像:
46 4C 56 01 05 00 00 00 09 00 00 00 00 12 00 03 FLV ........
4B 00 00 00 00 00 00 00 00 02 00 0A 6F 6E 4D 65 74 K ..... onMet

将光标移到文件01的末尾。
打开文件02和03,然后将文件内容复制并粘贴到文件01中。
现在您可以播放视频了。

注1
这些链接将在一段时间后过期:expire = 1372190015
Convert Unix timestamp to Readable Date/time:星期二,2013年6月25日19:53:35 GMT

您也可以从捕获文件中重建FLV文件。
转到文件->导出对象-> HTTP
寻找内容类型video / x-flv。
选择第一个,单击另存为并保存文件。
同时保存其他2个部分。
按顺序合并文件,并在FLV header 之前添加。

笔记2
过去非常简单。应用显示过滤器(http.request.method ==“GET”)并从GET请求中获取包含/get_video?video...的URL。但是事情变了...

10-04 13:25