Skip to content

Instantly share code, notes, and snippets.

View JaxkDev's full-sized avatar
🔐
Developing madness.

Jack JaxkDev

🔐
Developing madness.
  • United Kingdom
  • 04:12 (UTC +01:00)
  • X @JaxkDev
View GitHub Profile
@Cryptiiiic
Cryptiiiic / ios16_downgrading.txt
Created March 1, 2023 00:10
The unfortunate state of iOS downgrading
Unfortunately I have some bad news for downgrading.
Before I explain the bad news at the end of this post, I first need to introduce a background of iOS devices.
In iOS 16, Apple introduced a new firmware component known as Cryptex1. Technically, this is a "virtual" co-processor.
It's purpose is to allow Apple to push RSRs (Rapid Security Responses) which are separate from traditional iOS updates and can be installed much faster.
Like other firmwares, it also has a signing ticket locked to a cryptographic nonce (number-used-once).
We commonly refer to the Apple signing tickets as SHSH blobs.
Meaning the firmware can't be installed without a valid signing ticket as well as a matching nonce.
The "big two" components we deal with signing/nonces are AP and SEP. AP is basically the main device chip (Application Processor).
SEP is the security chip (Secure Enclave Processor).
With regards to APNonce, Apple conveniently gave us the com.apple.System.boot-nonce NVRAM property which we use to set the APNonce generator.
@JackNoordhuis
JackNoordhuis / phpstan-pm.sh
Last active January 11, 2020 14:12
Bash script for running phpstan on pocketmine plugins.
#!/bin/sh
PHPSTAN_CONFIG="/pocketmine/phpstan.neon"
ROOT_PATH="$PWD"
VERSION="4"
while getopts "c:p:v" OPTION 2> /dev/null; do
case ${OPTION} in
c)
PHPSTAN_CONFIG="/source/$OPTARG"
@rene-d
rene-d / colors.py
Last active April 23, 2024 11:56
ANSI color codes in Python
# SGR color constants
# rene-d 2018
class Colors:
""" ANSI color codes """
BLACK = "\033[0;30m"
RED = "\033[0;31m"
GREEN = "\033[0;32m"
BROWN = "\033[0;33m"
BLUE = "\033[0;34m"
@aphex3k
aphex3k / unsign
Created June 30, 2015 17:06
Remove the _CodeSignature folder from an existing .ipa iOS App archive
#!/bin/sh
#set -x
if [ "$*" == "" ] ; then
echo "USAGE: unsign App.ipa [App2.ipa] [App3.ipa] [...]"
exit 1
fi
for var in "$@"
do
if [ ! -f ${var} ]