(开源在GitHub)
Env.
Loc: 山东联通
抓到的包预览
<script>
var iRet;
iRet = Authentication.CUSetConfig('Channel','ChannelID="1652",ChannelName="海看热播",UserChannelID="0",ChannelURL="igmp://239.253.254.94:8000",TimeShift="1",TimeShiftLength="10800",ChannelSDP="igmp://239.253.254.94:8000",TimeShiftURL="rtsp://61.156.104.90/PLTV/88888888/224/3221226297/10000100000000060000000000446696_0.smil",ChannelType="1",IsHDChannel="2",PreviewEnable="0",ChannelPurchased="1",ChannelLocked="0",ChannelLogURL="http://61.162.37.144:33300/CPS/images/universal/film/logo/iptvcms/webapps/cms/upload/poster/201607/IMG201607060346529817314_171p176.pppp.jpg",PositionX="0",PositionY="0",BeginTime="0",Interval="0",Lasting="0",ActionType="1",FCCEnable="0",ChannelFCCIP="61.156.104.90",ChannelFCCPort="8027",ChannelFECPort="0"');
</script>
······
思路
正则表达式匹配即可
先将每一个频道取出
Authentication.CUSetConfig\('Channel['|\"],['|\"](.*?)['|\"]\);
再将K-V值对取出
(.*?)=['|\"](.*?)['|\"],*