Page 2 of 3

Re: Support for IPTV Stalker Portal

Posted: Mon Jan 27, 2020 3:59 pm
by cetipabo
hooo you're right ! let me find the correct type...

Re: Support for IPTV Stalker Portal

Posted: Mon Jan 27, 2020 4:06 pm
by cetipabo
this is the correct GET request for TV:

Code: Select all

<url:port>/portal.php?type=itv&action=get_genres&JsHttpRequest=1-xml

For VOD:

Code: Select all

<url:port>/portal.php?type=vod&action=get_categories&JsHttpRequest=1-xml
i edited post #14 with the correct GET Parameters.

Re: Support for IPTV Stalker Portal

Posted: Mon Jan 27, 2020 4:17 pm
by cetipabo
Depending on the IPTV provider, for the second request, it is sometimes necessary to add more parameters, else it doesn't work.
this is the GET Request sent by STBemu (i sniffed the trafic with Fiddler), and i urldecoded the content to make things clear :

Code: Select all

http://<url:port>/portal.php?type=stb&action=get_profile&hd=1&ver=ImageDescription: 0.2.18-r14-pub-250; ImageDate: Fri Jan 15 15:20:44 EET 2016; PORTAL version: 5.3.0; API Version: JS API version: 328; STB API version: 134; Player Engine version: 0x566&num_banks=2&sn=022017J023063&stb_type=MAG250&client_type=STB&image_version=218&video_out=hdmi&device_id=&device_id2=&signature=&auth_second_step=1&hw_version=1.7-BD-00&not_valid_token=0&metrics={"mac":"00:1A:79:xx:XX:XX","sn":"022017J023063","model":"MAG250","type":"STB","uid":"","random":""}&hw_version_2=e62fe39b486e56c852809828523b2b31cf70bce9&timestamp=1580141033&api_signature=263&prehash=9c42ac937c6bc42ba21b45b853bfc020b013f8f6&JsHttpRequest=1-xml
You can notice that there are some timestamps, some virtual serial numbers, the MAC address, and some random hash (pretty useless). I think for best compatibility with all iptv provider, better use this request, it is more complete.

Re: Support for IPTV Stalker Portal

Posted: Mon Jan 27, 2020 5:43 pm
by Prog
I am do same but without get_profile. Is it really important?

Re: Support for IPTV Stalker Portal

Posted: Mon Jan 27, 2020 5:52 pm
by cetipabo
as long as you get a response to your request, in a JSON format, i think it's OK.

Re: Support for IPTV Stalker Portal

Posted: Tue Jan 28, 2020 6:43 pm
by cetipabo
Hi @prog !
any news ? did you give up ? maybe we need a russian specialist about this ?

Re: Support for IPTV Stalker Portal

Posted: Thu Jan 30, 2020 7:50 am
by Prog
I am not have good idea. Normal handshake but empy answer on any other request.
May code working on some other servers. But not on that :(

Re: Support for IPTV Stalker Portal

Posted: Thu Jan 30, 2020 9:19 am
by cetipabo
Hello,
i would suggest you to use Fiddler to sniff the traffic from stbemu :
https://play.google.com/store/apps/deta ... free&hl=fr

that way you'll see exactly what are the request sent and the server answer.
This is how i'm doing. just install the application on a smartphone or in an android emulator like "Nox app player". configure the device to use the fiddler proxy. and watch the requests. i think everything will be clear for you.

Regards.

Re: Support for IPTV Stalker Portal

Posted: Thu Jan 30, 2020 9:25 am
by Prog
Can you prepare me some logs or dump of requests?

Re: Support for IPTV Stalker Portal

Posted: Thu Jan 30, 2020 9:32 am
by cetipabo
yes, how can i do that ? do you want a Fiddler capture ?

Re: Support for IPTV Stalker Portal

Posted: Thu Jan 30, 2020 9:40 am
by Prog
Yes. By any tools.

Re: Support for IPTV Stalker Portal

Posted: Thu Jan 30, 2020 10:11 am
by cetipabo
OK i send you the traffic captured with Fiddler in private message.

Re: Support for IPTV Stalker Portal

Posted: Thu Jan 30, 2020 6:30 pm
by Prog
Thanks. Do you know what is "adid"? And how client gen prehash value?

Re: Support for IPTV Stalker Portal

Posted: Thu Jan 30, 2020 7:08 pm
by cetipabo
Both are random, and pretty useless...i think you can generate random strings with the same pattern or just forget about that

Re: Support for IPTV Stalker Portal

Posted: Thu Jan 30, 2020 7:58 pm
by Prog
btw, my account still working? May me problem on account level?