准备:
1,ssh连接OpenWrt路由,安装 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