Skip to content

Instantly share code, notes, and snippets.

View psolyca's full-sized avatar

Damien Gaignon psolyca

View GitHub Profile
@psolyca
psolyca / honor_band_4_re.md
Last active April 23, 2024 19:37
Honor Band 4 RE

Introduction

Lots of works have been made to communicate with the Honor Band 3/4 in order to be used with GadgetBridge.
RE is followed in issue 1021 BTW, communication where not complete and the RE was done on BLE LPv2.
A new protocol LPv3 appeared.

Goal

RE the LPv3 BLE protocol and integrate Honor devices in GadgetBridge.

Keys

#!/usr/bin/env python3
import os
"""
Cursed Code.
This code literally patches your kernel memory, proceed at your own risk.
Tested on Ubuntu 17.10 and Arch, x86_64. Should work on other distros, maybe even other architectures!
@awafer
awafer / bmp.py
Created August 3, 2012 04:05 — forked from voidw0rd/bmp.py
Python bitmap
import struct, random, sys
from PIL import Image
class Bitmap(object):
def __gen_radom_pixel__(self):
return 111
return random.randint(0, 255)