Skip to content

Instantly share code, notes, and snippets.

View ankurpandeyvns's full-sized avatar
🎯
Focusing

Ankur Pandey ankurpandeyvns

🎯
Focusing
View GitHub Profile
@ankurpandeyvns
ankurpandeyvns / dg-6011-guide.md
Created February 25, 2026 09:02
Digisol DG-GR6011 GPON ONT: Bridge Mode for Airtel IPoE (Static IP)

Digisol DG-GR6011 GPON ONT: Bridge Mode for Airtel IPoE (Static IP)

Bypass double NAT on Airtel Fiber with near-gigabit speeds (~800 Mbps) using a manual bridge on the Digisol DG-GR6011 ONT. No firmware modification required — all changes are runtime + persistent storage scripts.

Background

Airtel provides their own locked-down ONT (typically Nokia or ZTE) which runs TR-069 for remote management, giving the ISP full control over your device. You can't disable NAT, can't use bridge mode properly, and can't stop the ISP from pushing config changes to your equipment.

The Digisol DG-GR6011 is a third-party GPON ONT popular among tinkerers in India as a replacement for the ISP-provided device. By cloning your GPON serial number onto the DG-GR6011, you get:

@ankurpandeyvns
ankurpandeyvns / excitel_ppc_bridge_mode.py
Last active February 24, 2026 16:42
Excitel ZTE ZXIC 2K05X ONT in bridge mode
#!/usr/bin/env python3
"""
Excitel ONT Bridge Mode Auto-Setup
===================================
Automates setting up (or reverting) the ZTE ZXIC 2K05X ONT in bridge mode
so a downstream router (e.g. UniFi Dream Machine) can handle PPPoE directly.
Architecture Overview
---------------------
In factory (route) mode the ONT runs its own PPPoE client and NATs traffic
#!/usr/bin/env bash
#
# Pixel Photos Debloat Script
# Strips a Pixel device down to only what's needed for Google Photos + Play Store.
# Uses pm uninstall -k --user 0 (reversible, keeps data).
#
# Usage:
# ./pixel-photos-debloat.sh # debloat connected device
# ./pixel-photos-debloat.sh --restore # restore all removed packages
# ./pixel-photos-debloat.sh --dry-run # show what would be removed
@ankurpandeyvns
ankurpandeyvns / ppc_config_tool.py
Created November 25, 2025 13:47
Excitel PPC router config backup/restore tool. Decrypts/encrypts config files via web interface. Reverse-engineered XOR + AES-ECB encryption with null key. Supports round-trip editing.
#!/usr/bin/env python3
"""
ZTE ZXIC Router Configuration Backup/Restore Tool
==================================================
This tool allows you to backup, decrypt, encrypt, and restore configuration
files from ZTE ZXIC series routers (tested on ZXIC 2K05X).
ENCRYPTION DETAILS:
------------------
@ankurpandeyvns
ankurpandeyvns / DG-GR6011_GPON_CLI.py
Created November 19, 2025 20:40
A comprehensive Python library for managing BOA-based GPON routers (like DG-GR6011 and similar devices).
#!/usr/bin/env python3
"""
GPON ONU/ONT Router Configuration Manager
==========================================
A comprehensive Python script for managing BOA-based GPON devices.
INSTALLATION
------------
pip install requests
@ankurpandeyvns
ankurpandeyvns / AOT-5221ZY_Backup_analysis.md
Last active February 13, 2026 14:58
AOT-5221ZY Backup Analysis

Zyxel Router Configuration Analysis Guide

Overview

  • Router Model: Zyxel (ISP-branded variants)
  • Configuration Format: TR-069 InternetGatewayDevice XML schema
  • Typical Parameter Count: 4,000+ configurable settings

Key Modifiable Settings by Category

@ankurpandeyvns
ankurpandeyvns / zyxel_backup_restore.py
Last active February 18, 2026 08:27
AOT-5221ZY Backup/Restore Decryption+Encryption
#!/usr/bin/env python3
"""
================================================================================
Zyxel Router Configuration Backup/Restore Tool
================================================================================
DESCRIPTION:
This tool provides comprehensive functionality for working with Zyxel router
configuration backups. It can download, decrypt, encrypt, and restore
@ankurpandeyvns
ankurpandeyvns / DG-GR6011_GPON_Guide.md
Last active February 2, 2026 16:56
Digisol DG-GR6011 Guide

Zyxel AOT-5221ZY - Complete Web Interface Analysis

Device: Zyxel AOT-5221ZY GPON ONT/ONU Analysis Date: 2025-10-06 Web Root: /usr/shared/web/


Table of Contents

@ankurpandeyvns
ankurpandeyvns / excitel_ppc.md
Created September 28, 2025 16:20
Excitel PPC Router Documentation

Router System Documentation

This document outlines the system information, filesystem structure, available commands, and network interfaces of the target router.

1. Operating System

  • OS: GNU/Linux
  • Hostname: RTKGW
  • Kernel Version: 4.4.140
  • Architecture: mips