Skip to content

Instantly share code, notes, and snippets.

View aldoridhoni's full-sized avatar

Aldo Ridhoni aldoridhoni

View GitHub Profile
aldoridhoni /
Created August 1, 2018 04:10 — forked from ndunks/
Modem Indihome ZTE F609 Config Extract and Repack
#!/usr/bin/env python
import sys
import binascii
import struct
import zlib
if (len(sys.argv) <= 1):
print('USAGE:\n%s [configBak.cfg|config.bin]' % sys.argv[0])
echo "Checking if already existing device on file..."
while read fileLine; do
if [ "$line" = "$fileLine" ]; then
echo "[WARNING] Device already initialized on this system. Nothing to do here"