Skip to content

Instantly share code, notes, and snippets.

View jevinskie's full-sized avatar

Jevin Sweval jevinskie

View GitHub Profile
{
"device": "iPad8,1",
"keybags": [
{
"buildnum": "22A5297f",
"illb": "818B9C71517E44B43ABB4286F4E7721D9D2CE2B50ACA54DD1F90F847837922BED757C74645F44D2FFD99A26829C50B5C",
"ibot": "0341CD7B968FD8FA8F61355CA62CDF8E85746C67C329177954E7EBEE6FB7EAF835F7D6AF8FBA205AD3A0AE2C6FEE6107",
"ibec": "73F97951EC97654DE13B6EBEE11DD7E750AD1ADAF7892B7D1C84C48FAA4D18410E3DBAD34699F7B9C5FFC2F12B0F6C67",
"ibss": "00F2DF875304D5474B6A5A21924250DB84A681E5E0E6BAFD3489627D563C102EA5F03EECC4F4EE1EA1EAA5EC83DC66AD"
}
{
"device": "iPhone11,2",
"keybags": [
{
"buildnum": "22A5297f",
"illb": "57AE11AFCD80CFAA9D3835BEAE2E2868BF8FB8D6E6F2B3824C8F1A36C4CA1F20933C0E8B8959AC776430C2BD46A14302",
"ibot": "EDF2B23237C5099FF6A766DBFF00B626DCC66B89BB32077308D905A127F23EB01DF70C7035A40FB27650F194356A6951",
"ibec": "55CCB6E4A0FC64A64DC14EB84465A0FA89DE5829601997936752C57936EF47C8F2789A5EF8E79A70FAC10225E065C87F",
"ibss": "73C76D990BBF6BF4C91201B232107ACA40E8548EBC4B5CCA4E9213705A56E1ED9C7094EC5B8F44922930E13D7AFB60F9"
}
@whitequark
whitequark / qspi_iostream.py
Last active May 14, 2025 18:48
Amaranth 0.5 demo with a pipelined QSPI core impemented using streams
from amaranth import *
from amaranth.lib import enum, data, wiring, stream, io
from amaranth.lib.wiring import In, Out, connect, flipped
from amaranth.sim import Simulator
class IOStream(wiring.Component):
def __init__(self, width, *, meta_layout=0, latency=0):
self._latency = latency
@tekknolagi
tekknolagi / gensym.cpp
Created June 20, 2024 19:49 — forked from kenpusney/gensym.cpp
A gensym implementation of C/C++ Preprocessor.
#define STRINGIFY(x) #x
#define EXTRACT(...) __VA_ARGS__
#define INVOKE(macro,args...) macro( EXTRACT(args) )
#define FIRST(x,...) x
#define REST(x,...) __VA_ARGS__
#define __sym(cn,ln) _ainini_##c##cn##l##ln
#define sym(cn,ln) __sym(cn,ln)
#define __gensym(cn, ln) sym( cn,ln )
@whitequark
whitequark / spi_serdes.py
Created June 18, 2024 02:49
Amaranth 0.5 demo with a pipelined SPI core (easily extendable to QSPI) impemented using streams
from amaranth import *
from amaranth.lib import data, wiring, stream, io
from amaranth.lib.wiring import In, Out
from amaranth.sim import Simulator
class BitSerializer(wiring.Component):
def __init__(self, *, width, length):
self._length = length
@ArcaneNibble
ArcaneNibble / jlcpcb_crypto.md
Last active February 21, 2025 01:42
JLCPCB Color Silkscreen Crypto

JLCPCB Color Silkscreen Crypto

JLCPCB color silkscreen files are encrypted using AES-128-GCM and RSA-2048 with OAEP padding with SHA-256 as the hash function. Unfortunately, this means that, although it is possible for tools other than EasyEDA to create files, only JLCPCB can decrypt the resulting files.

File structure

The structure of an encrypted file is as follows:

  1. 256 bytes RSA-encrypted AES key
  2. 256 bytes RSA-encrypted GCM nonce
@Kyle-Ye
Kyle-Ye / iPhone Mirroring.md
Last active March 20, 2025 11:27
Launch iPhone Mirroring.app on macOS 15 Beta 1
@tandasat
tandasat / CheckHvpt.c
Last active October 14, 2025 23:12
C code to check HVPT availability
#include <stdio.h>
#include <assert.h>
#include <Windows.h>
// Some of them were taken (and modified) from https://github.com/winsiderss/systeminformer
typedef struct _SYSTEM_ISOLATED_USER_MODE_INFORMATION
{
BOOLEAN SecureKernelRunning : 1;
BOOLEAN HvciEnabled : 1;
{
"device": "iPad11,1",
"keybags": [
{
"buildnum": "22A5282m",
"illb": "500ED7642DCBAC3FAD5EF526DAD40B21BFD09EDD395FDB74F17611E0A391E40D9682B689647007BF7AB38A0F6231D01F",
"ibot": "DA97F55D9024CC7D1880333951F53C83D684D7796A2599EA126AA0E6CB7853E271BA265D0D382482841E4CD06815D747",
"ibec": "BAC9D1DAF1FFBB67DF73D24DEE38DBF9AC2ADC91C8E8827AAF99F3D8FC02BD136A88EE5998A4DEC24F5EFCDEDE076A9C",
"ibss": "504FB1BE10917D597D7053EDF7ADB0A0CEA41330DD110C675736550EAAA1F7A8946C6BFE740ACFDAB8AD69CCDC069CB6"
}
@iotku
iotku / win7.xml
Created June 13, 2024 10:42
Windows 7 w/ VGA passthru 1080ti
<domain xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0" type="kvm">
<name>win7</name>
<uuid>e1477dc8-95e7-464b-b558-dd7c0992e3a7</uuid>
<metadata>
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
<libosinfo:os id="http://microsoft.com/win/7"/>
</libosinfo:libosinfo>
</metadata>
<memory unit="KiB">8290304</memory>
<currentMemory unit="KiB">8290304</currentMemory>