Skip to content

Instantly share code, notes, and snippets.

View bkerler's full-sized avatar

Bjoern Kerler bkerler

View GitHub Profile
@bkerler
bkerler / SKILL.md
Last active August 8, 2026 17:28
Reverse engineering master skill
name RE-SKILLS.md
description Use whenever the user says "reverse engineer", "ida", or "ghidra"; also use for generic reverse-engineering workflows involving IDA Pro, Ghidra, emulation, Frida, USB/libusb, ADB, reporting, and durable note-taking. Keep guidance target-agnostic and avoid vendor-, platform-, subsystem-, or device-family-specific assumptions.

RE-SKILLS.md

Generic reverse-engineering workflow guidance for future sessions. This skill is target-agnostic: do not encode vendor-, platform-, subsystem-, or device-family-specific assumptions here.

Mandatory Tool Routing

@bkerler
bkerler / install-opencl-amd.sh
Created October 20, 2020 17:52 — forked from kytulendu/install-opencl-amd.sh
A shell script to install AMDGPU-PRO OpenCL driver.
#!/bin/bash
# This script will install AMDGPU-PRO OpenCL and Vulkan support.
#
# For Ubuntu and it's flavor, just install the package using this command
# in extracted driver directory instread.
#
# ./amdgpu-pro-install --opencl=legacy,pal --headless --no-dkms
#
# For Arch Linux or Manjaro, use the opencl-amd on AUR instread.
@bkerler
bkerler / spectre.c
Created January 5, 2018 07:54 — forked from rootkea/spectre.c
PoC from Spectre Attacks: Exploiting Speculative Execution (https://spectreattack.com/spectre.pdf)
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef _MSC_VER
#include <intrin.h> /* for rdtscp and clflush */
#pragma optimize("gt",on)
#else
#include <x86intrin.h> /* for rdtscp and clflush */
#endif
#!/usr/bin/env python
# dump the contents of an atmel AT45DB041B flash part to 'data.bin'
# usage: ./dump_AT45DB041B.py /dev/ttyUSB0
# tested w/ https://github.com/audiohacked/pyBusPirate ac19e00b53, Bus Pirate Hardware labelled v3.6, Firmware: "Bus Pirate v3b, Firmware v5.10 (r559), Bootloader v4.4"
# bugs: slow. as in... dozens of hours :/
diff --git a/adb/Android.mk b/adb/Android.mk
index 721b48d..fef1bef 100644
--- a/adb/Android.mk
+++ b/adb/Android.mk
@@ -123,6 +123,7 @@ LOCAL_CFLAGS += -D_XOPEN_SOURCE -D_GNU_SOURCE
ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT)))
LOCAL_CFLAGS += -DALLOW_ADBD_ROOT=1
endif
+LOCAL_CFLAGS += -DALLOW_ADBD_ROOT=1