Skip to content

Instantly share code, notes, and snippets.

View aldoridhoni's full-sized avatar

Aldo Ridhoni aldoridhoni

View GitHub Profile
@aldoridhoni
aldoridhoni / zte_extract.py
Created August 1, 2018 04:10 — forked from ndunks/zte_extract.py
Modem Indihome ZTE F609 Config Extract and Repack
View zte_extract.py
#!/usr/bin/env python
# https://reverseengineering.stackexchange.com/a/13395
import sys
import binascii
import struct
import zlib
if (len(sys.argv) <= 1):
print('USAGE:\n%s [configBak.cfg|config.bin]' % sys.argv[0])
exit(1)
View Mac OSX NTFS Writable
#!/bin/bash
checkExisting(){
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"