Linux下使用Wireshark通过OpenWrt路由器抓取IPTV源

准备:
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

原文链接:https://blog.csdn.net/2401_85413796/article/details/139346668?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171836740016800182778930%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=171836740016800182778930&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1~times_rank-2-139346668-null-null.nonecase&utm_term=%E8%B7%AF%E7%94%B1%E5%99%A8%E3%80%81openwrt

© 版权声明
THE END
喜欢就支持一下吧
点赞6 分享