Linux下使用Wireshark通过OpenWrt路由器抓取IPTV源
准备:
1,ssh连接路由,安装 tcpdump
# opkg update
# opkg install tcpdump
2,机顶盒网线连接路由器,设置自动获取IP(记下ip)
3,确保PC与机顶盒同一网段(我使用kali自带Wireshark,其他版本先安装)
bash输入
ssh root@路由ip tcpdump -iany -U -s0 -w - 'not port 22' | wireshark -k -i -
例如
# ssh root@10.0.0.1 tcpdump -iany -U -s0 -w - 'not port 22' | wireshark -k -i -
# 输password
4,Wireshark筛选条件
第一种,“ip.addr eq 机顶盒ip and http”例如:ip.addr eq 10.0.0.179 and http
一般特征:http 302
源类似如:
http://10.200.1.65:8000/hzd/00000001000000050000000000000055
(如果是公网IP那恭喜你,内网只能自家用了)
第二种,ip.addr eq 10.0.0.179 and udp
源类似如:
udp://10.200.1.65:8000/hzd/00000001000000050000000000000055
rtsp://10.200.1.65:8000/hzd/00000001000000050000000000000055
第三种,ip.addr eq 10.0.0.179 and http
一般特征:http 440
下发的节目单list,可以反复开启iptv刷
第四种,ip.addr eq 10.0.0.179 and rtsp
rtsp://10.11.43.21/PLTV/88888912/224/3221226678/382484600.smil
打包APK:
在线工具:http://www.dpplayer.com/ (有详细说明)
注意:
1.如果不能跳过开机验证页面。先root机顶盒,直接运行iptv应用
2.直接插路由iptv不能播放的,通常是光猫未桥接的状态,可以使用网口镜像的办法(自己补脑)
3.一般特征没有,找其他的一定会找到
4.避免数据包太大,路由不建议连接多余设备

0 评论:
发表评论