Skip to content

Instantly share code, notes, and snippets.

View tolbkni's full-sized avatar
🎯
Focusing

Waters Gao tolbkni

🎯
Focusing
View GitHub Profile
@riverscn
riverscn / gen_iptv_m3u8.sh
Last active February 6, 2025 12:49
中国电信IPTV抓包数据转m3u8播放列表
#!/bin/bash
# Usage: bash gen_iptv_m3u8.sh iptv.pcap
udpxy=192.168.5.1:7088
input=$1
workdir=${input%%.*}
tshark -r $1 -Y 'http.response_for.uri contains getchannellist' -T jsonraw -j data-text-lines_raw \
| awk '/"data-text-lines_raw"/{getline; print}' \
| sed -E 's/"|,//g' \