如何判断一个直播系统是否使用的是RTMP

来源:互联网 发布:淘宝手办良心店铺 编辑:程序博客网 时间:2024/05/16 16:10


1.抓包可以看到客户端与rtmp server建立连接的过程。唯一的问题是找了半天只能找到rtmp的app,找不到stream,这样就不能拼接成一个完整的rtmp地址。

2.困难是难不倒人的,使用strings配合vim,终于让我在某处发现了stream名。

strings ~/Documents/raw.pcap > /tmp/a.txtvim /tmp/a.txt

3.于是完整的rtmp地址为。

rtmp://123.125.104.101/live/livestream

4.简单的判断也可以这么做。

sudo tcpdump -s 0 -w-|strings|grep -i rtmptcpdump: data link type PKTAPtcpdump: listening on pktap, link-type PKTAP (Packet Tap), capture size 262144 bytesrtmp://123.125.104.101/live3SRS 2.0.0 (github.com/winlinvip/simple-rtmp-server)/https://github.com/winlinvip/simple-rtmp-server|RtmpSampleAccess3SRS 2.0.0 (github.com/winlinvip/simple-rtmp-server)
转自http://peiqiang.net/2016/03/21/how-to-judge-whether-rtmp-is-used-by-a-live-broadcast-system.html
0 0
原创粉丝点击