This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |