Skip to content

Instantly share code, notes, and snippets.

--- asn.txt~ 2021-10-04 19:04:37.000000000 +0300
+++ asn.txt 2021-10-06 21:23:28.000000000 +0300
@@ -125,7 +125,7 @@
bitstrings:
23 is a combination of 0x20 (Constructed) + 0x03 (Bit String)
- 09 is the total length of the components
+ 08 is the total length of the components
03 denotes a bitstring
02 the length of the bitstring in bytes, plus 1
=== iBridge2,1,iBridge2,3,iBridge2,4,iBridge2,5,iBridge2,7,iBridge2,8_3.5_16P5200_Restore.ipsw
Firmware/dfu/iBEC.j137.RELEASE.im4p
3723c95ba25706b4650a92177afc28af57e0a236fd0e46b83cffb6140392b63355562b5ed671bda6b5929ff728f0b324
Firmware/dfu/iBSS.j140k.RELEASE.im4p
34d7aa36e00b5c772bf7381c821253a714ed2714552a48a478b391faac32bc0eef2577d5a04e01f462648754eb9af69e
Firmware/dfu/iBSS.j137.RELEASE.im4p
4bb3ecf8b19401a009b5c0003b64ac3bae8258f6d9c42b91831927e348957dfde01384caa3fbee1b6e665d168b46fc47
Firmware/dfu/iBEC.j680.RELEASE.im4p
893d17aa768a6ebd8f85b4251ef8f692c766f7b1868bd974a3dc9fcd0dd9608e4e0709bd9208752d9515a636c129378c
#include <stdio.h>
#include <stdlib.h>
#define L(x) ((x) / 8)
#define GADGET(name, insns) \
extern int name[]; \
__asm(".globl _" #name "\n" \
".p2align 2\n" \
"_" #name ":\n" \
version
s8000 restore ramdisk key
rootfs key
kernelcache.n71 key
9.0_13A342
b45fb3bc5efac96ad4dbf79abb95222f7f9447cb34b1a62e86218d560604d80c5219e66d6d9b4d48109a1d469c76dd78
a21bf3a46558256c3ee1c6a40e50964f2b31a442ebc3848ff82bca3c0db68305e68bc926
fc7f4c6bf4f73f26b27a9b87782de0052d529c618d89cb887697666b0942ce5d95e1e2f8c6eb2e396dae9b8827fa1125
9.0.1_13A405
@xerub
xerub / reexport-elf.txt
Last active February 12, 2018 12:15
reexport-elf
moved to https://github.com/xerub/reexport
@xerub
xerub / reexport.txt
Last active February 12, 2018 12:13
reexport
moved to https://github.com/xerub/reexport
/*
* SEP firmware split tool
*
* Copyright (c) 2017 xerub
*/
#include <fcntl.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
/*
* Copyright (c) 2015, 2016 xerub
*/
#ifdef __LP64__
#define KDELTA 0x4000 /* XXX 7.x-8.x: 0x2000 */
#else
#define KDELTA 0x1000
#endif
@xerub
xerub / otaa2.c
Last active July 15, 2022 00:18
#define _BSD_SOURCE
#include <arpa/inet.h>
#include <stdint.h>
#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/stat.h> // for mkdir
@xerub
xerub / pbzx2.c
Last active July 15, 2022 00:18
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <lzma.h>
int main(int argc, const char * argv[])
{