Skip to content

Instantly share code, notes, and snippets.

View llouislu's full-sized avatar

Louis Lu llouislu

  • Christchurch, New Zealand
View GitHub Profile
{
"title": "Louis' Karabiner Complex Modification Collection",
"rules": [
{
"description": "Hold shortly on L_SHIFT as F17",
"manipulators": [
{
"from": {
"key_code": "left_shift"
},
@llouislu
llouislu / hg658c_configtool.py
Created September 20, 2020 06:03
Huawei HG658c, HG659 router config en/decrypt tool
#! /usr/bin/env python
# hg658c.wordpress.com
"""
To decrypt encrypted values in the config, use
echo -n "Lp0xkiAANwcYpVPbI3D/Mg==" | base64 -d | openssl enc -d -aes-128-cbc
-K DBAF3361E81DA0EF5358A1929FC90A80 -iv 629EA150533376741BE36F3C819E77BA -nopad
"""
import sys
@llouislu
llouislu / decrypt_zte.py
Created December 17, 2018 07:29
Zte configuration file decrypt tool
#!/usr/bin/env python3
import re
import zlib
import struct
import sys
def extract_config_xml(config_bin):
'''