Skip to content

Instantly share code, notes, and snippets.

@NyanSatan
NyanSatan / modern-iboot-symbols.txt
Created April 2, 2025 19:56
Modern as of 2024. Obviously not every single one, but still over 2K. Dumped from test coverage files
iBootCoverage> gcov -n --dump */coverage/*.gcno |& grep "=====" | sort | uniq | grep -v test | grep -v AppleInternal | cut -d " " -f2,4,5 | cut -d ":" -f1 | sort | uniq | sed -e 's/ @/\t@/g' > modern-iboot-symbols.txt
__os_warn_unused @ include/overflow.h
__syscfg_validate_and_get_instance_id_for_multi @ lib/syscfg/syscfg.c
__syscfg_validate_keybag_instance_id @ lib/syscfg/syscfg.c
_abb_panic_buffered_write @ lib/abb_panic/abb_panic.c
_abb_panic_calculate_file_size @ lib/abb_panic/abb_panic.c
_abb_panic_create_4cc @ lib/abb_panic/abb_panic.c
_abb_panic_create_ce_subsystem_crash_report_entry @ lib/abb_panic/abb_panic.c
_abb_panic_create_lph_subsystem_crash_report_entry @ lib/abb_panic/abb_panic.c
@jwbee
jwbee / jq.md
Last active April 24, 2025 13:19
Make Ubuntu packages 90% faster by rebuilding them

Make Ubuntu packages 90% faster by rebuilding them

TL;DR

You can take the same source code package that Ubuntu uses to build jq, compile it again, and realize 90% better performance.

Setting

I use jq for processing GeoJSON files and other open data offered in JSON format. Today I am working with a 500MB GeoJSON file that contains the Alameda County Assessor's parcel map. I want to run a query that prints the city for every parcel worth more than a threshold amount. The program is

#!/usr/bin/env python3
import usb.core
import struct
from collections import namedtuple
APPLE_VID = 0x05ac
Target = namedtuple("Target", ["vid", "pid", "name", "model", "total_size"])
/*
TaskManagerSecret
Author: @splinter_code
This is a very ugly POC for a very unreliable UAC bypass through some UI hacks.
The core of this hack is stealing and using a token containing the UIAccess flag set.
A trick described by James Forshaw, so all credits to him --> https://www.tiraniddo.dev/2019/02/accessing-access-tokens-for-uiaccess.html
From there it uses a task manager "feature" to run a new High IL cmd.exe.
This has been developed only for fun and shouldn't be used due to its high unreliability.
@raplin
raplin / RPiI2sFrequencyCounter.c
Created May 28, 2023 22:48
Frequency counter for RPi that samples at 24.576Mhz and is accurate up to several Mhz, uses very little CPU (500Khz input uses 9% of one CPU core on a RPI4)
/*
RPi frequency counter
We use the RPi's I2S input (on pin 38)
Setting up I2S input:
https://learn.adafruit.com/adafruit-i2s-mems-microphone-breakout/raspberry-pi-wiring-test
Compile kernel module, modprobe it as described
(for RPI4 use 'modprobe snd-i2smic-rpi rpi_platform_generation=2')
@DavidBuchanan314
DavidBuchanan314 / widevine_fixup.py
Last active September 13, 2024 21:45
Patch aarch64 widevine blobs from ChromeOS to work on non-ChromeOS linux, including platforms with 16K page size like Apple Silicon / Asahi Linux
"""
MIT License
Copyright (c) 2023 David Buchanan
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@stong
stong / CleanBoot.java
Last active January 27, 2024 11:35
Real World CTF 2023: Dark Portal Writeup
package org.mapleir;
import org.mapleir.app.client.SimpleApplicationContext;
import org.mapleir.app.service.ApplicationClassSource;
import org.mapleir.app.service.InstalledRuntimeClassSource;
import org.mapleir.asm.ClassHelper;
import org.mapleir.asm.ClassNode;
import org.mapleir.asm.MethodNode;
import org.mapleir.context.AnalysisContext;
import org.mapleir.context.BasicAnalysisContext;
@borzacchiello
borzacchiello / DecompilerExporter.java
Last active September 23, 2024 21:05
Ghidra script to export C pseudo-code on multiple files, including defined types
/* ###
* IP: GHIDRA
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@Chick3nman
Chick3nman / RTX_4090_v6.2.6.Benchmark
Created October 14, 2022 00:07
Hashcat v6.2.6 benchmark on the Nvidia RTX 4090
NVIDIA Driver Version: 522.25 CUDA Version: 11.8
Credit: blazer
For benchmarking the card and allowing me to release the benchmarks here
The hashcat installation used includes a change to the tuning ALIAS.hctune file to include the RTX 4090 as "ALIAS_nv_sm50_or_higher".
The "Kernel exec timeout" warning is cosmetic and does not affect the speed of any of the benchmarked modes.
Benchmark was run at stock clocks on an Asus Strix 4090.
@jwbee
jwbee / readme.md
Last active March 20, 2025 04:52
Help me identify possible tracking device found in my car

Help me identify possible tracking device found in my car

TL;DR

I found a non-OEM electronic gadget in my car. It is wired into the ignition, and contains a 435.10 MHz radio reciever, a microcontroller, and two relays. I suspect it might be a device that allows third parties to unlock the doors and start the car with a radio.

Details

I was driving my 2020 Honda Insight EX when it started to make the annoying sound of an electromechanical relay rapidly switching on and off. When I got home I looked under the dash and straight away I could see someone other than Honda had been in here. The first thing I saw was this surface-mounted switch that doesn't belong there.