erkexzcx / stalkerhek

Stalker portal proxy server that allows sharing account on multiple STB boxes and play on VLC.
GNU General Public License v3.0
82 stars 52 forks source link

MAC and URL only? #22

Closed Chris230291 closed 3 years ago

Chris230291 commented 3 years ago

Hello. is it possible to use this with accounts that are URL and MAC address only?

Thanks, Chris

rockydares commented 3 years ago

Yes it is possible. Read this.

Chris230291 commented 3 years ago

Hello. I saw that after making this post so I just used other details since it needs something in the config. I am getting error though 2021/08/05 21:41:15 main.go:30: invalid character '<' looking for beginning of value exit status 1

rockydares commented 3 years ago

Put 0 in the value of other details, delete username and password field or keep them blank. For sn put DC521EE1C00B2. Invalid character '<' may show because of wrong stalker portal address. Use this app while connecting to Stbemu of ott navigator and capture portal address if it is 'stalker_portal/server/load.php' or 'server/load.php' or whatever (pic for example). IMG_20210806_093317

Chris230291 commented 3 years ago

Thanks for the reply. The URL matches what I was already using. I wonder if this only works with certain stalker accounts? I've tried several and all give me the same error.

Chris230291 commented 3 years ago

I am not sure where you are getting the accounts from, but is it possible to send me a known working config?

rockydares commented 3 years ago

It is not possible to send you a working config because the token would be already expired. But I can show you an example config here, or you can send me (rockydares223@gmail.com) the host and mac you're trying to log into. I'll check for you

Example config IMG_20210806_220355

Chris230291 commented 3 years ago

Thanks for the reply. I still get the error though. I tried the following settings...

portal:
  model: MAG254
  serial_number: 0F62DB185C000
  device_id: 0
  device_id2: 0
  signature: 0
  mac: <MAC>
  url: <URL>
  time_zone: Europe/London
  token: 0

hls:
  enabled: true
  bind: 0.0.0.0:9999

proxy:
  enabled: false
  bind: 0.0.0.0:8888
  rewrite: false # EXPERIMENTAL! see https://github.com/erkexzcx/stalkerhek/pull/12#issue-607960283

I wonder if its the token? I don't have one so I set it to 0. I've emailed you with the credentials I am trying.

Chris230291 commented 3 years ago

Thanks for your help but I didn't have any luck. I ended up making my own solution in python.

AndroKev commented 3 years ago

Thanks for your help but I didn't have any luck. I ended up making my own solution in python.

hello,

is it possible to show us your solution?:-)

Chris230291 commented 3 years ago

I have it working using only portal url and mac. I used wireshark to see all of the requests made from the android app stbemu, then made it work in python. I will upload it later. Its dockerized.

Chris230291 commented 3 years ago

As promised https://hub.docker.com/r/chris230291/stb-proxy

rockydares commented 3 years ago

Tried some portals and I was able to connect few of them (2 out of 8). Some mac portal have 'stalker_portal/c/' in the end and some have only 'c'. It only connected to portals which has 'c' in the end. That is because you have given 'portal.php' to handshake or get profile, but many stalker middleware use 'stalker_portal/server/load.php'. I got it from your 'app.py' script. I suggest that you remove that 'portal.php/' part from your script and only append '?action' and let the user figure out which portal address works for their iptv provider.

Chris230291 commented 3 years ago

Thanks for the feedback. So portal using http://<domain>/c/ = http://<domain>/portal.php and http://<domain> = http://<domain>/stalker_portal/server/load.php

If so I can have users include the /c/ in the portal url and use that to alter the request url

EDIT: Could you send me some examples?

rockydares commented 3 years ago

Here are example for two types of access portal url

Type 1: IMG_20210820_091809

Type 2: IMG_20210820_091847

Only type 1 works with this script.

Chris230291 commented 3 years ago

I think I have a nice solution. I need you to send me some working credentials for a /stalker_portal/server/load.php server. I haven't found any working ones.

rockydares commented 3 years ago

See this edited comment, I have given credentials. Btw, try grouping those channels too.

Chris230291 commented 3 years ago

Thanks. I have it working now. Do you recommend that portal? What do you mean by groups? Do you mean add the genre tag to the m3u?

rockydares commented 3 years ago

What do you mean by groups? Do you mean add the genre tag to the m3u?

Channels categories like UK News, Movies etc. I tested previous script, all channels were at a place. Searching for channels would be bit difficult.

One more suggestion, stalker portal config is visible for all (by default IP:PORT). Hiding it would be better, like only the owner would know the credentials.

kettenbach-it commented 3 years ago

I cannot connect to this: http://iptv-line.com:7899/c/live4u

You should really start your own github repository, so others can contribute and issue are at the correct place. I already though about starting a stb-proxy project written in Python as well, so I'd help if I could get the code and submit PRs

Tracker997 commented 3 years ago

Hello i'm install this script and add my URL and MAC and generate /playlist and it works. I'm add this playlist to VLC but not works the channels :(

Chris230291 commented 3 years ago

https://github.com/Chris230291/STB-Proxy