MasterTV - Brazilian TV service
#1
Hi all, I'm trying to write an addon to play live streams from mastertv.biz. This is a paid service where you can get most of the brazilian cable channels.
I was able to login and get the channel list from this site, but the problem begins when I reach the .swf file they use to play the live streams.

Right after I get the swf file, the browser makes a request to something like this:
150 1.076384000 192.168.1.69 75.126.217.6 HTTP 819 GET /videoteca/ajueocyutwgbcjskhee/5262622252426212 HTTP/1.1

and the server returns something like this:
[truncated] <config><streamer>rtmp://67.228.177.198/mtv/</streamer><file>87hd</file><autostart>true</autostart><backcolor>0xFFFFFF</backcolor><frontcolor>0x000000</frontcolor><screencolor>0x000000</screencolor><volume>50</volume><type>rtmp
I couldn't find this /videoteca/ajueocyutwgbcjskhee/5262622252426212 anywhere in the packages.
Is this somehow embedded into the swf file? If so, how can I get this information from there since I need it to get the rtmp link?

Here's the link to github https://github.com/vitorbertazoli/MasterTV
I'm leaving a link for the captured packages in case it helps.
http://bertazoli.com/httpRequest.pcap

Thanks
Reply
#2
If you can't find it any other way, you'll have to decompile the swf to figure it out. There are a few websites that may help, search for something like 'decompile my code'.
Reply
#3
I actually had to change my approach. Instead of decoding the swf file I used the mms links they had on the website, The quality is not as good as the flash version and they have fewer channels but it's working. I've sent the website admin an email asking if they're interested in having an addon for their service. If so I will work together with them to get the higher quality channels.

Thanks
Reply
#4
They've changed their system. Now there is only flash version.

The swf make a request to http://www.mastertv.biz/sistema/new-play...o2&tm=7854, the response is a base64 message:
Code:
YXBwPWhibzIhc3RyZWFtPXRyYW5zbWlzc2FvIXVybHZpZGVvPXJ0bXA6Ly81MC45Ny44Mi4xNjoxOTM1L3RyYW5zbWlzc2FvL2hibzIha2V5PSMzNjIyMjE5OTg3NDE5MjM4MTcxODU3NjA3OTMxMTg3ODA2MjEzNzkwMDA0ODcxMjkxMzcyMDkxMTcyMTA3OTE2NzMxNzAwNjI3ODkyMTIwOTc0OTA2NTkwMTg2NzAwMTA3NTcxNzMxNjE3MDIyMDc0MDUyMDIwMDE2ODUyMDIxNDkzNA==
Decoded is:
Code:
app=hbo2!stream=transmissao!urlvideo=rtmp://50.97.82.16:1935/transmissao/hbo2!key=#36222199874192381718576079311878062137900048712913720911721079167317006278921209749065901867001075717316170220740520200168520214934

Inside the swf there is a parser that send each parameter to jwplayer. I was unable to identify what the key parameter do. And was unable to run rtmpdump without receiving a custom error: 666!

Anyone have a clue what key is for?

SWF scripts: https://drive.google.com/file/d/0BwqkU-o...sp=sharing
Reply
#5
Voce conseguiu algum progresso?
Querua saber se realmente tem jeito, porque as listas de canais no iptv nuncam funcionam.
Obrigado.
Reply

Logout Mark Read Team Forum Stats Members Help
MasterTV - Brazilian TV service0