Skip to content

allendema/infomir_shifting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

This will demonstrate a few command one can use to change

the behaviour of MAG STBs from Infomir.

Getting started

Seting up SSH
  • The shipped Firmware has port 22 open for SSH-Connections.

  • This is not the case if you updated the Firmware from Settings. (You can install one with the port 22 open from: https://soft.infomir.com/)

  • By default you can use user root and 930920 as user and password respectivly.

  • You can change that to whatever you like, and/or set up SSH to use your public key.

Preventing "Your Portal is blocked"
  • Infomir will try to connet to different domains to get a list of blocked portals.

  • Download Portal domains to a file.

    • Then it will be saved to /mnt/Userfs/data/ad.json
  • You can create a script to remove this file on every boot.

  • Open up vi to edit /etc/hosts

    • bash vi /etc/hosts

    • add following domains there:

    • 0.0.0.0 stat.infomir.com

    • 0.0.0.0 <your STB model>.dbcs.infomir.com

    • If this does not do anything, alternate the NAND.

Create a backup of the file first

scp /path/to/rdir_backup.sh root@MAG_IP_ADDRES:/usr/local/share/app/bin/rdir.sh

Changing Mac Address, Serial Number, STB Model etc.

Printing current values

  • Print current MACAddres with:

    • /bin/sh /usr/local/share/app/bin/rdir.sh MACAddress
  • Print current Model with:

    • /bin/sh /usr/local/share/app/bin/rdir.sh Model

Changing MACAddress

  • Open up vi to edit /usr/local/share/app/bin/rdir.sh
    • Find this line:

      dd if=/dev/$device bs=1 count=32 skip=$(($shft+32)) 2>/dev/null | strings -n1 | awk '{printf ("%s", $0); exit;}'
      and edit it to wanted MACAddres, see below.

    • dd if=/dev/$device bs=1 count=32 skip=$(($shft+32)) 2>/dev/null | strings -n1 | awk '{printf ("00:1A:79:00:00:00"); exit;}'

Changing STB Model

  • vi /usr/local/share/app/bin/rdir.sh

  • Find dd if=/dev/$device bs=1 count=32 skip=$(($shft+96)) 2>/dev/null | strings -n1 | awk '{printf ("%s", $0); exit;}' and edit it to any other Informir device from MAG or Aura series.

(AuraHD2 may come with the benifit of the option to install "apps" from Infomir portal http://apps.infomir.com.ua/)

dd if=/dev/$device bs=1 count=32 skip=$(($shft+96)) 2>/dev/null | strings -n1 | awk '{printf ("MAG254"); exit;}' or dd if=/dev/$device bs=1 count=32 skip=$(($shft+96)) 2>/dev/null | strings -n1 | awk '{printf ("AuraHD"); exit;}'

Editing env. variables

Printing env. varibles

fw_printenv

Changing env. variables

You can change all the variables above
and more
fw_setenv portal2 http://example.org/c

Load a portal with different Bootmedia bank

cd /usr/local/share/app
./run.sh $PORTAL_TO_LOAD "file:///usr/local/share/app/web/system/pages/loader/index.html?bootmedia=bank0"
Where bootmedia can be bank0 or bank1

Owerwriting cookies Avoid eventual tracking by cookies
echo "1" > /mnt/Userfs/cookies.ini
Exit Vi

To save and exit use
:wq

To exit without saving changes use
:q!