Skip to content

Instantly share code, notes, and snippets.

View GaoYuCan's full-sized avatar
🎯
Focusing

s1nk GaoYuCan

🎯
Focusing
View GitHub Profile
"""Recover Hikari AArch64 indirect control flow with PREOPT microcode.
Patch one-way BRs to B, model two-way BRs as synthetic switches, expand function ranges until the CFG reaches a fixed point, then restore conditional branches through the F5 hook.
Requires IDA Pro 9.4+, Hex-Rays, and keystone-engine; load the script and choose "deobfuscate it" or call recover_current_function(), with changes saved only to the IDB and reversible through rollback_function().
Thanks to Hex-Rays for sponsoring the r3kapig team!
"""
from __future__ import annotations
@GaoYuCan
GaoYuCan / AllGattCharacteristics.java
Created September 15, 2022 08:50 — forked from sam016/AllGattCharacteristics.java
Bluetooth GATT Services & Characteristics
package com.sam016.vsflatomation.service.ble;
import java.util.HashMap;
import java.util.UUID;
public class AllGattCharacteristics {
private static HashMap<String, String> attributes = new HashMap();
static {
attributes.put("00002a00-0000-1000-8000-00805f9b34fb", "Device Name");