您的位置:首页 > 其它

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

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



2.困难是难不倒人的,使用strings配合vim,终于让我在某处发现了stream名。
strings ~/Documents/raw.pcap > /tmp/a.txt
vim /tmp/a.txt




3.于是完整的rtmp地址为。
rtmp://123.125.104.101/live/livestream


4.简单的判断也可以这么做。
sudo tcpdump -s 0 -w-|strings|grep -i rtmp

tcpdump: data link type PKTAP
tcpdump: listening on pktap, link-type PKTAP (Packet Tap), capture size 262144 bytes
rtmp://123.125.104.101/live
3SRS 2.0.0 (github.com/winlinvip/simple-rtmp-server)
/https://github.com/winlinvip/simple-rtmp-server
|RtmpSampleAccess
3SRS 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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐