{"id":19965806,"url":"https://github.com/allendema/infomir_shifting","last_synced_at":"2026-05-13T06:08:37.844Z","repository":{"id":106955150,"uuid":"447399962","full_name":"allendema/infomir_shifting","owner":"allendema","description":null,"archived":false,"fork":false,"pushed_at":"2022-01-19T21:36:14.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-12T08:33:37.850Z","etag":null,"topics":["bash","informir","kernel","linux","m3u","mag","ministra","portal","script","scripts","stb","vi"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/allendema.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-12T23:20:59.000Z","updated_at":"2022-01-15T21:14:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"4d4f6a39-20d6-4dba-8584-e8d04a1ed935","html_url":"https://github.com/allendema/infomir_shifting","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allendema%2Finfomir_shifting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allendema%2Finfomir_shifting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allendema%2Finfomir_shifting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allendema%2Finfomir_shifting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/allendema","download_url":"https://codeload.github.com/allendema/infomir_shifting/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241396781,"owners_count":19956408,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","informir","kernel","linux","m3u","mag","ministra","portal","script","scripts","stb","vi"],"created_at":"2024-11-13T02:31:15.278Z","updated_at":"2026-05-13T06:08:32.794Z","avatar_url":"https://github.com/allendema.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"### This will demonstrate a few command one can use to change \n### the behaviour of MAG STBs from Infomir.\n - https://www.infomir.eu/\n - https://wiki.infomir.eu/eng/set-top-box/stb-linux-webkit/\n\n\n\n# Getting started\n\n\u003cdetails\u003e\n\u003csummary\u003e Seting up SSH \u003c/summary\u003e\n\n \n\n- The shipped Firmware has port 22 open for SSH-Connections.\n\n- This is not the case if you updated the Firmware from Settings.\n(You can install one with the port 22 open from: [https://soft.infomir.com/](https://soft.infomir.com/))\n\n- By default you can use user ```root``` and ```930920``` as user and password respectivly.\n\n- You can change that to whatever you like, and/or set up SSH to use your public key.\n    - ```ssh-copy-id -i ~/.ssh/mykey root@mag_stb_IP```\n    - https://www.ssh.com/academy/ssh/copy-id\n\n\u003c/details\u003e\n\n\n\n\u003cdetails\u003e\n\n\u003csummary\u003e Preventing \"Your Portal is blocked\" \u003c/summary\u003e\n\n- Infomir will try to connet to different domains to get a list of blocked portals.\n\n- Download Portal domains to a file.\n    - Then it will be saved to ```/mnt/Userfs/data/ad.json```\n- You can create a script to remove this file on every boot.\n\n- Open up ```vi``` to edit ```/etc/hosts```\n    - ```bash vi /etc/hosts```\n    - add following domains there:\n    - ```0.0.0.0 stat.infomir.com```\n    - ```0.0.0.0 \u003cyour STB model\u003e.dbcs.infomir.com```\n\n    - # If this does not do anything, alternate the NAND. \n\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\n\u003cdetails\u003e\n\n \u003csummary\u003e Create a backup of the file first \u003c/summary\u003e\n\n ```scp /path/to/rdir_backup.sh  root@MAG_IP_ADDRES:/usr/local/share/app/bin/rdir.sh```\n\n\u003c/details\u003e\n \n\u003csummary\u003e Changing Mac Address, Serial Number, STB Model etc. \u003c/summary\u003e\n\n### Printing current values\n- Print current MACAddres with:\n    - ```/bin/sh /usr/local/share/app/bin/rdir.sh MACAddress```\n \n \n- Print current Model with:\n\n    - ```/bin/sh /usr/local/share/app/bin/rdir.sh Model```\n\n### Changing MACAddress\n- Open up ```vi``` to edit ```/usr/local/share/app/bin/rdir.sh```\n    - Find this line:  \n    \n      ```dd if=/dev/$device bs=1 count=32 skip=$(($shft+32)) 2\u003e/dev/null | strings -n1 | awk '{printf (\"%s\", $0); exit;}'```  \n      and edit it to wanted MACAddres, see below.  \n        \n        \n        \n    - ``` dd if=/dev/$device bs=1 count=32 skip=$(($shft+32)) 2\u003e/dev/null | strings -n1 | awk '{printf (\"00:1A:79:00:00:00\"); exit;}' ```\n\n\n### Changing STB Model\n - ```vi /usr/local/share/app/bin/rdir.sh```\n \n - Find ```dd if=/dev/$device bs=1 count=32 skip=$(($shft+96)) 2\u003e/dev/null | strings -n1 | awk '{printf (\"%s\", $0); exit;}'``` \n and edit it to any other Informir device from MAG or Aura series.  \n\n (AuraHD2 may come with the benifit of the option to install \"apps\" from Infomir portal ```http://apps.infomir.com.ua/```)\n \n ```dd if=/dev/$device bs=1 count=32 skip=$(($shft+96)) 2\u003e/dev/null | strings -n1 | awk '{printf (\"MAG254\"); exit;}'``` or\n ```dd if=/dev/$device bs=1 count=32 skip=$(($shft+96)) 2\u003e/dev/null | strings -n1 | awk '{printf (\"AuraHD\"); exit;}'```\n\u003c/details\u003e\n\n \n\u003cdetails\u003e\n\n \u003csummary\u003e Editing env. variables \u003c/summary\u003e\n\n ### Printing env. varibles\n ```fw_printenv```\n \n ### Changing env. variables\n You can change all the variables above  \n and [more](https://wiki.infomir.eu/eng/set-top-box/for-developers/stb-linux-webkit/customization/most-used-variables)  \n    ```fw_setenv portal2 http://example.org/c```\n \n\u003c/details\u003e\n\n\u003cdetails\u003e\n   \u003csummary\u003e Load a portal with different Bootmedia bank \u003c/summary\u003e\n\n   ```cd /usr/local/share/app```  \n   ```./run.sh $PORTAL_TO_LOAD \"file:///usr/local/share/app/web/system/pages/loader/index.html?bootmedia=bank0\"```  \n    Where bootmedia can be ```bank0``` or ```bank1```\n \n\u003c/details\u003e\n\n\u003cdetails\u003e\n\n \u003csummary\u003e Owerwriting cookies \u003c/summary\u003e\n   Avoid eventual tracking by cookies  \n \n    echo \"1\" \u003e /mnt/Userfs/cookies.ini\n \n\u003c/details\u003e\n\n \n\u003cdetails\u003e\n \u003csummary\u003e Exit Vi \u003c/summary\u003e\n\n To save and exit use  \n    ```:wq```  \n\n To exit without saving changes use  \n    ```:q!```\n\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallendema%2Finfomir_shifting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallendema%2Finfomir_shifting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallendema%2Finfomir_shifting/lists"}