Skip to content

Instantly share code, notes, and snippets.

View H3xano's full-sized avatar
😑

CyberNomad H3xano

😑
View GitHub Profile
@H3xano
H3xano / README.md
Created September 13, 2026 06:00
Goodix 27c6:5125 white-box PSK emulation + re-provisioning (ref: goodix-fp-dump#20)

Goodix 27c6:5125 — white-box PSK emulation + re-provisioning scripts

Referenced from goodix-fp-dump#20. These are the two scripts behind that write-up — cross-validated byte-for-byte against jenujari's independent implementation, so either should work as a reference.

emulate_wb.py

Runs the actual white-box wrap routine from the Windows host driver (gfusb.dll) directly, via Unicorn (x86-64 emulation) — rather than reimplementing the algorithm by hand. This sidesteps any risk of subtly mistranscribing the KDF/AES-GCM construction from disassembly: it's the real vendor code executing, just outside a Windows process.

  • Loads gfusb.dll's PE sections into emulated memory at their real addresses (no relocations needed, mapped at the preferred image base)
  • Hooks only the four CRT allocator functions (malloc/calloc/free/memset) with a trivial bump allocator — everything else (the KDF, AES-256-GCM, HMAC) runs as unmodified or
@H3xano
H3xano / mint-to-omarchy-look.md
Created August 26, 2026 17:28
Make Linux Mint (Cinnamon) look like Omarchy's Tokyo Night theme

Making Linux Mint (Cinnamon) Look Like Omarchy (Tokyo Night)

This is a step-by-step recipe for taking a stock Linux Mint Cinnamon install and reproducing the look of Omarchy's default theme (Tokyo Night) — fonts, terminal, shell prompt, GTK/icon theme, and wallpaper.

Tested on: Linux Mint (Ubuntu Noble base), Cinnamon desktop, X11 session.

Why this doesn't look "wrong" out of the box

@H3xano
H3xano / Surfshark VPN Breaks DNS on Linux.md
Created May 13, 2026 14:55
Surfshark VPN Breaks DNS on Linux (systemd-resolved) — Fix

Surfshark VPN Breaks DNS on Linux (systemd-resolved) — Fix

Symptom: DNS works fine normally, but breaks completely as soon as Surfshark VPN connects.

Affected setups: Linux with systemd-resolved as the stub resolver (Ubuntu 20.04+, Debian 12+, Linux Mint 21+, Fedora, etc.) using Surfshark's WireGuard client.


Root Cause

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

How to block Oculus from tracking my Quest?
1. You can block these domains on your router or a pi-hole device:
oculus.com
oculuscdn.com
facebook-hardware.com
facebook.net
facebook.com

How to use this?

  1. Install the USB drivers for your device (Google has a list of some universal USB drivers here)
  2. Download the ADB binary for your particular OS (Windows, Mac, Linux)
  3. Extract the zip file into a folder that you can quickly access.
  4. On your phone, go to Settings and tap on About Phone. Find the Build Number and tap on it 7 times to enable Developer Options.
  5. Now enter Developer Options and find USB Debugging. Enable it.
  6. On your computer, browse to the directory where you extracted the ADB binary.
  7. Launch a Command Prompt in your ADB folder. For Windows users, this can be done by holding Shift and Right-clicking then selecting the “open command prompt here” option.
  8. Once you’re in the command
@H3xano
H3xano / DebloateYourOP
Last active April 30, 2021 12:36
DebloatYourOP
How to use this?
Install the USB drivers for your device (Google has a list of some universal USB drivers here)
Download the ADB binary for your particular OS (Windows, Mac, Linux)
Extract the zip file into a folder that you can quickly access.
On your phone, go to Settings and tap on About Phone. Find the Build Number and tap on it 7 times to enable Developer Options.
Now enter Developer Options and find USB Debugging. Enable it.
On your computer, browse to the directory where you extracted the ADB binary.
Launch a Command Prompt in your ADB folder. For Windows users, this can be done by holding Shift and Right-clicking then selecting the “open command prompt here” option.
Once you’re in the command prompt/terminal, enter the following command: adb devices