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 / 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 November 24, 2025 19:54
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 November 24, 2025 19:55
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 November 20, 2025 12:33
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
@ankurpandeyvns
ankurpandeyvns / wan_fixer_hathway.py
Created September 17, 2025 12:33
Fixes Phantom WAN on VSOL Hathway
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
wan_fixer_daemon.py
-------------------
A long-running daemon to monitor and fix WAN connectivity issues for a
VSOL V2802RH router.
"""
import re
@ankurpandeyvns
ankurpandeyvns / redirect_ntp_dns_ip6.sh
Created September 16, 2025 13:56
This redirects the traffic on IPv6 for DNS and NTP to respective services
#!/bin/sh
#
# 20-force-dns-ntp6.sh ── Blanket IPv6 DNS + NTP interception on UniFi
# DNS : Any → AdGuard (MAC 02:42:c0:a8:00:02) ➜ port 53
# NTP : Any → unRAID (MAC 48:22:54:42:ba:fc) ➜ port 123
# …but **skip packets whose source MAC is unRAID itself** to avoid
# an endless redirect loop on its outbound NTP queries.
#
# Works on UniFi gateways that honour ip6tables rules (UDM, UCG Ultra, etc.)
# Place in /mnt/data/on_boot.d and make executable so it survives upgrades.
@ankurpandeyvns
ankurpandeyvns / create_env_jfibersip.py
Created September 15, 2025 22:18
Provision .env for JioFiber SIP Proxy
#!/usr/bin/env python3
"""
Flow:
- Try http://jiofiber.local.html:8080/request_account
- If DNS fails, prompt for router LAN IP and retry
- If still unreachable, explain prerequisites and exit
- Drive OTP flow against https://<router>:8443/ using a deterministic MAC
derived from the hardcoded hostname "AnkurSIPProxy" (JFC hashing logic)
- Parse SIP config to obtain password and username
- Generate a .env in the project root with Jio-friendly defaults