Chris230291 / STB-Proxy

50 stars 34 forks source link

INFO: STBEMU authentication method on fire tv #13

Closed mwahal closed 2 years ago

mwahal commented 3 years ago

I posted it in the other project but he referred me to this one. Here is the info I collected on the stbemu app running on firetv on how to connect to my portal (glotv.me) and get the profile.

[https://github.com/erkexzcx/stalkerhek/issues/28](Stalkerhex link)

rockydares commented 3 years ago

Getting the get_profile is tricky and different for each stalker portals. Example: This is some portal's get profile which includes http://portaladdress/stalker_portal/server/load.php?type=stb&action=get_profile&hd=1&ver=ImageDescription:%201.2.18-r23-254;%20ImageDate:%20Wed%20Aug%2029%2010:49:53%20EEST%202018;%20PORTAL%20version:%205.5.0;%20API%20Version:%20JS%20API%20version:%20343;%20STB%20API%20version:%20146;%20Player%20Engine%20version:%200x58c&num_banks=2&sn=5345555D4690B&client_type=STB&image_version=218&video_out=hdmi&device_id=9F1C6B67959289D35658BE94BC0AA7912D2C419953E5&device_id2=D1E658BB4E095927912D2C419953E5&signature=2D6086B3CFA097EF6B8ED4BC3F6F06229EA62013184A9E43&auth_second_step=1&hw_version=1.7-BD-00&not_valid_token=0&metrics=%7B%22mac%22%33B%22%2C%22s7D4690B%22%2C%22type%22%3A%22STB%22%2C%22model%22%3A%22MAG254%22%2C%22uid%22%3A%22%22%2C%22random%22%3A%22265d7d3765c154e37f4dbc0a0c8ca0ee070a56a9%22%7D&hw_version_2=41493E46C7546D79CEBFEAC403818B05F6D496B8&timestamp=XXXXXXXX&api_signature=261&prehash=356f08c04eecb329d0bc1faac9d8c7d1&JsHttpRequest=1-xml

This is another portal's get_porifle http://anotherportal/portal.php?type=stb&action=get_profile

Here's 3rd one http://portaladdress/stalker_portal/server/load?type=stb&action=get_profile&JsHttpRequest=1-xml

So there is no ultimate method to log into portal without inspecting the json file given by the portal itself. Even StbEmu can't log on to every portals with given portal and mac address. Your method could work for some portals but wouldn't work for all.

mwahal commented 3 years ago

With the current app.py code, I cant login to my portal (glotv.me). I have entered the MAC and the URL correctly, but I get that "expire" not found. And then nothing else works since it's not able to login. Is there anyway to turn on some debugging to dump the http request and response headers and the body?

Chris230291 commented 3 years ago

I have done some work to try and separate the core requests part with the rest of STB Proxy. This should make it nice and easy for people to test themselves and suggest alterations through pull requests without worrying about what I am doing with the rest of the app.

I will try and get my changes pushed to the repo later tonight.

BTW, I found some glotv.me credentials online and couldn't connect with several windows apps either. If you know of a player that works with that portal then post it here please.

Eldon1411 commented 1 year ago

I have done some work to try and separate the core requests part with the rest of STB Proxy. This should make it nice and easy for people to test themselves and suggest alterations through pull requests without worrying about what I am doing with the rest of the app.

I will try and get my changes pushed to the repo later tonight.

BTW, I found some glotv.me credentials online and couldn't connect with several windows apps either. If you know of a player that works with that portal then post it here please.

i am looking for main provider for glotv.me ip tv service provider