java2kus / stalkerhek

Stalker catching proxy server and on-the-fly converter to M3U playlist

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WIP - Stalkerhek

Stalker is a pretty popular IPTV streaming solution. Usually you can buy a TV box with preconfigured credentials and stalker portal (URL). Stalker TV box has it's own unique device ID (actually 2 IDs), signature, mac address and so on. On top of that, if you share your authentication details and set-up another TV box, the other one will get disconnected, making it possible to only watch on a single device at the same time.

This software allows you to watch Stalker TV on VLC or Kodi and on multiple devices. It serves IPTV as M3U playlist and acts as a proxy.

What does not work (yet):

  • restreaming application/octet-stream streams. 2 devices will create 2 streams, not 1.
  • Stalker portal connection is somewhat barelly working, but it works in my case.

Advantages:

Here are some advatages:

  • Play on VLC rather than using emulator or STB boxes.
  • This app is the only way to play Stalker IPTV on jailbroken PS3, Movian player.

How to use

This app is incomplete, contains bugs and "it works for me", so you have been warned.

1. Extract stalker credentials (and other required stuff)

To extract all the authentication details, use wireshark to capture HTTP requests and analyse them by hand. I used capture filter port 80 and tcp[((tcp[12:1] & 0xf0) >> 2):4] = 0x47455420 and display filter http.request.method == GET. You will likely want to use MITM attack using arpspoof. You will also need to restart TV box when capturing requests to see your TV box logging into stalker portal with stored authentication details.

You will need the following details extracted from the wireshark logs:

  • model
  • sn
  • device_id
  • device_id2
  • signature
  • mac
  • login
  • password
  • timezone
  • location (URL address).

Regarding URL address/location: If your tv box connets to http://domain.example.com/stalker_portal/server/load.php?... then it's going to be http://domain.example.com/stalker_portal/server/load.php. If it connects to http://domain.example.com/portal.php?..., then it's going to be http://domain.example.com/portal.php. Wireshark will tell you where it connects. :)

All this info will be visible in the URLs or Cookies (wireshark will capture everything).

2. Append extracted details to config file

cp config/stalkerhek.yaml stalkerhek.yaml
vim stalkerhek.yaml

3. Start application

You will also need Go programming language installed:

./build.sh
cd dist
./stalkerhek_linux_x86_64

4. Use VLC

Use VLC, Kodi or test if link is working in browser:

vlc http://<ipaddr>:/8987/iptv

About

Stalker catching proxy server and on-the-fly converter to M3U playlist

License:GNU General Public License v3.0


Languages

Language:Go 96.1%Language:Shell 3.9%