[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116604":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":10,"pushedAt":36,"updatedAt":37,"readmeContent":38,"aiSummary":39,"trendingCount":16,"starSnapshotCount":16,"syncStatus":17,"lastSyncTime":40,"discoverSource":41},116604,"unlock-airtel-router","sanidhyy\u002Funlock-airtel-router","sanidhyy","Restore disabled and hidden web UI settings on Airtel Zyxel ONT routers.","",null,"Python",61,15,53,1,0,2,7,10,51.81,"MIT License",false,"main",true,[26,27,28,29,30,31,32,33,34,35],"airtel","airtel-router","aot5221zy","aot5222zy","bypass-restrictions","networking","router","router-unlock","ssh","zyxel","2026-11-16 09:18:13","2026-11-23 17:23:52","\u003Ca name=\"readme-top\">\u003C\u002Fa>\n\n# :unlock: Unlock Airtel Router\n\n> [!IMPORTANT]\n> These scripts have been tested on the following ONTs and may not work correctly on other models:\n>\n> - AOT5221ZY\n> - AOT5222ZY\n> - PMG5617-R20B\n\n\nRestore disabled and hidden settings in the Airtel router web UI. The scripts enable SSH on your Airtel router, unlock the UI and keep it unlocked after each reboot.\n\n![Preview of the unlocked Airtel router UI](.github\u002Fpreview.png)\n\n## :hammer_and_wrench: Install the tools\n\nBefore running the scripts, make sure Python, OpenSSL, and SSH are installed.\n\n### :penguin: Linux\n\nUbuntu \u002F Debian:\n\n```bash\nsudo apt install python-is-python3 openssl openssh-client\n```\n\nArch Linux:\n\n```bash\nsudo pacman -S python openssl openssh\n```\n\n### :apple: macOS\n\n```bash\nbrew install python openssl openssh\n\necho 'export PATH=\"$(brew --prefix python)\u002Flibexec\u002Fbin:$PATH\"' >> ~\u002F.zshrc\n```\n\n### :computer: Windows (Run PowerShell as Administrator)\n\n```powershell\n# python\nwinget install --id Python.PythonInstallManager --exact\npy install default\n\n# openssh\nAdd-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0\n\n# openssl\nwinget install ShiningLight.OpenSSL.Light\n\n$oldPath = [Environment]::GetEnvironmentVariable(\"Path\", \"User\")\n$newPath = $oldPath + \";C:\\Program Files\\OpenSSL-Win64\\bin\"\n[Environment]::SetEnvironmentVariable(\"Path\", $newPath, \"User\")\n```\n\n## :rocket: Run the scripts\n\n> [!WARNING]\n> Use at your own risk. These scripts change your router configuration and reboot it. Keep the original backup somewhere safe.\n\nRestart your terminal. Make sure you're connected to your router’s Wi-Fi\u002FLAN.\n\nClone this repository using:\n\n```\ngit clone https:\u002F\u002Fgithub.com\u002Fsanidhyy\u002Funlock-airtel-router.git\ncd unlock-airtel-router\n```\n\nor using `Code → Download ZIP`.\n\n### 1. Enable SSH\n\n```bash\npython enable_ssh.py\n```\n\nEnter your router IP, username, and password when asked. Use the same login as the router web page. The details are saved in `.env` for later runs.\n\nThe script saves a backup in a `backup-...` folder, enables SSH, and reboots the router. It also offers to add an `ssh airtel` shortcut so you don’t have to type the long SSH command each time. You can answer `n` if you don't want it.\n\nWait for the router to come back online before continuing.\n\n### 2. Unlock the UI\n\n```bash\npython unlock_ui.py\n```\n\nEnter the router password at the SSH prompt. Refresh the router web page when it finishes.\n\nYou only need to do this setup once. After future reboots, give the router ~2–3 minutes for the UI unlock script to run.\n\nKeep `.env` and your backup files private, they contain passwords.\n\n**You're good to go :)**\n\n## :raising_hand: Need Help?\n\nIf you run into issues during installation or setup:\n\n- **GitHub Discussions** — [Open a Q&A discussion](https:\u002F\u002Fgithub.com\u002Fsanidhyy\u002Funlock-airtel-router\u002Fdiscussions\u002Fnew?category=q-a) for setup and troubleshooting help.\n- **Email** — [sanidhyyy@gmail.com](mailto:sanidhyyy@gmail.com)\n- **Discord** — `@sanidhyy`\n\nFor bug reports, include your router model, firmware version, operating system, and steps to reproduce the issue. Remove passwords and personal information from logs or screenshots before sharing.\n\n## :mag: How it works\n\nThe firmware contains a setting called `InternetGatewayDevice.DeviceInfo.X_5067F0_DebugVersionFlag`. Enabling it exposes many disabled controls and hidden pages across the web UI.\n\nThe web UI uses this flag to decide which additional pages and controls are available:\n\n- **`0`** — keep certain pages and controls hidden or disabled.\n- **`1`** — make those pages and controls available in the web UI.\n\nThe firmware's HTML templates use zone markers to decide which blocks to send to the browser. For example, `lanSetup.html` contains these two zones (save function shortened):\n\n```html\n\u003C!-- #BEGINZONE javascript_Apply_Button_zone -->\nfunction uiSave() { \u002F* Existing form validation and save code... *\u002F }\n\u003C!-- #ENDZONE javascript_Apply_Button_zone -->\n\n\u003C!-- #BEGINZONE javascript_Hidden_Apply_Button_zone -->\n$(\"#Apply_ID\").hide();\n\u003C!-- #ENDZONE javascript_Hidden_Apply_Button_zone -->\n```\n\n`ipv6LanSetup.html` uses the same pattern. The zone markers are handled by the router before the page reaches your browser; `#Apply_ID` is the jQuery selector for the button. Simply unhiding it in the browser won't restore the missing `uiSave()` function.\n\n[unlock_ui.py](unlock_ui.py) uses the router's `ccctest` tool over SSH to set the live flag to `1`, then reads it back to confirm.\n\nThe firmware resets the flag during boot, which is why changing it in a config backup alone didn't work. The script adds a startup block to `\u002Fetc\u002Frc.local` that waits 90 seconds and sets it again after each reboot.\n\n## :raised_hands: Contribute\n\nBug fixes and script improvements are welcome. Open a pull request with a short explanation of your changes and how you tested them. I'll review it before merging. Please keep discussions and reviews respectful.\n\n## :heart: Credits\n\n- [ankurpandeyvns](https:\u002F\u002Fgist.github.com\u002Fankurpandeyvns\u002F0f72eb73f5724f83b9ceebe079162505) — the original Zyxel backup and restore script.\n- [Unlock SSH — r\u002FAirtel](https:\u002F\u002Fwww.reddit.com\u002Fr\u002FAirtel\u002Fcomments\u002F1v6c308\u002Funlock_ssh\u002F) — the original guide to enabling SSH.\n\n## :rocket: Follow Me\n\n[![Follow Me](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Ffollowers\u002Fsanidhyy?style=social&label=Follow&maxAge=2592000)](https:\u002F\u002Fgithub.com\u002Fsanidhyy \"Follow Me\")\n[![Tweet about this project](https:\u002F\u002Fimg.shields.io\u002Ftwitter\u002Furl?style=social&url=https%3A%2F%2Fx.com%2F_sanidhyy)](https:\u002F\u002Fx.com\u002Fintent\u002Ftweet?text=Check+out+these+scripts+for+unlocking+the+Airtel+router+UI.&url=https%3A%2F%2Fgithub.com%2Fsanidhyy%2Funlock-airtel-router \"Tweet about this project\")\n\n## :star: Give A Star\n\nIf you find these scripts useful, give the repository a star.\n\n## :star2: Star History\n\n\u003Ca href=\"https:\u002F\u002Fstar-history.com\u002F#sanidhyy\u002Funlock-airtel-router&Timeline\">\n\u003Cpicture>\n  \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"https:\u002F\u002Fapi.star-history.com\u002Fsvg?repos=sanidhyy\u002Funlock-airtel-router&type=Timeline&theme=dark\" \u002F>\n  \u003Csource media=\"(prefers-color-scheme: light)\" srcset=\"https:\u002F\u002Fapi.star-history.com\u002Fsvg?repos=sanidhyy\u002Funlock-airtel-router&type=Timeline\" \u002F>\n  \u003Cimg alt=\"Star History Chart\" src=\"https:\u002F\u002Fapi.star-history.com\u002Fsvg?repos=sanidhyy\u002Funlock-airtel-router&type=Timeline\" \u002F>\n\u003C\u002Fpicture>\n\u003C\u002Fa>\n\n\u003Cbr \u002F>\n\n## :balance_scale: Legal Disclaimer\n\nThis project is intended for educational and research use.\n\nUsers should:\n\n- Only analyze devices they own or have explicit permission to examine\n- Comply with all applicable laws and regulations\n- Use this information responsibly and ethically\n- Respect manufacturer intellectual property\n\nUnauthorized access to network devices may be illegal in your jurisdiction.\n\n\u003Cbr \u002F>\n\u003Cp align=\"right\">(\u003Ca href=\"#readme-top\">back to top\u003C\u002Fa>)\u003C\u002Fp>\n","这是一个用于解除印度Airtel运营商定制Zyxel光猫（ONT）Web管理界面限制的Python工具集。它通过SSH连接路由器，启用被禁用的SSH服务、恢复隐藏的高级设置页面（如桥接模式、VLAN配置、QoS等），并持久化解锁状态，避免每次重启后失效。项目支持AOT5221ZY、AOT5222ZY等主流型号，依赖OpenSSL和标准SSH客户端，操作流程分两步：先启用SSH，再解锁UI。适用于需要自主配置网络拓扑、排除运营商限制或进行家庭网络深度优化的技术用户。","2026-11-24 04:54:01","CREATED_QUERY"]