Skip to content

Instantly share code, notes, and snippets.

Avatar

Richard nyuszika7h

  • Hungary
View GitHub Profile
View btn-site-tags.md
Site/Network Abbreviation
9Now 9NOW
A&E AE
ABC (AU) iView AUBC
ABC (US) AMBC
Adult Swim AS
Al Jazeera English AJAZ
All4 (Channel 4, ex-4oD) ALL4
Amazon AMZN
@nyuszika7h
nyuszika7h / futurerestore-static-linux.sh
Last active Apr 18, 2021 — forked from Cryptiiiic/futurerestore-static-linux.sh
Futurerestore static compile script for Ubuntu Linux 20.04.2 LTS
View futurerestore-static-linux.sh
#!/bin/bash
#Made by @Cryptiiiic, Cryptic#6293
set -e
export FR_BASE=${HOME}'/futurerestore_build'
export CC_ARGS="CC=/usr/bin/clang-11 CXX=/usr/bin/clang++-11 LD=/usr/bin/ld64.lld-11 RANLIB=/usr/bin/ranlib AR=/usr/bin/ar"
export ALT_CC_ARGS="CC=/usr/bin/clang-11 CXX=/usr/bin/clang++-11 LD=/usr/bin/ld.lld-11 RANLIB=/usr/bin/ranlib AR=/usr/bin/ar"
export CONF_ARGS="--disable-dependency-tracking --disable-silent-rules --prefix=/usr/local --disable-shared --enable-debug --without-cython"
export ALT_CONF_ARGS="--disable-dependency-tracking --disable-silent-rules --prefix=/usr/local"
export LD_ARGS="-Wl,--allow-multiple-definition -L/usr/lib/x86_64-linux-gnu -lzstd -llzma -lbz2"
export JNUM="-j$(nproc)"
@nyuszika7h
nyuszika7h / pallas.sh
Last active Apr 7, 2021 — forked from Siguza/pallas.sh
newstyle OTA
View pallas.sh
#!/bin/zsh
set -e;
incr=false;
if [ "$1" = '-i' ]; then
incr=true;
shift;
fi;
View compile_tsschecker.sh
#!/bin/bash -e
echo '[+] Installing dependencies from apt'
sudo apt-get -y update
sudo apt-get -y install --no-install-recommends autoconf autogen automake g++ gcc git libc6-dev libcurl4-openssl-dev libreadline-dev libssl-dev libtool libudev-dev libzip-dev m4 make pkg-config python3-dev zlib1g-dev
tmpdir=$(mktemp -d)
pushd "$tmpdir" &>/dev/null
for lib in libusb/libusb libimobiledevice/libirecovery libimobiledevice/libplist tihmstar/libgeneral tihmstar/libfragmentzip DanTheMann15/tsschecker; do
View setsupervision.sh
setsupervision() {
perl -0pi -e "s/IsSupervised([\s\S]*?)(true|false)/IsSupervised\$1$1/" /var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles/Library/ConfigurationProfiles/CloudCon
figurationDetails.plist && killall -9 profiled && killall -9 Preferences 2>/dev/null
}
alias supervise='echo -n "Supervising device... "; setsupervision true; echo "done"'
alias unsupervise='echo -n "Unsupervising device... "; setsupervision false; echo "done"'
View google_auth_pb2.py
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google_auth.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
View ios_ota_sideloading.md

Note: This requires a paid developer certificate or an enterprise certificate. A free developer certificate will not work.

Create an Example.plist file with the following content:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>items</key>
View tssalert.sh
#!/bin/bash
while read -r device version; do
board=$(curl -s https://api.ipsw.me/v2.1/firmwares.json | jq -r ".devices[\"$device\"].BoardConfig")
tsschecker -d "$device" -B "$board" -i "$version"
if (( $? == 1 )); then
if [[ ${device,,} == iphone* ]]; then
os=iOS
elif [[ ${device,,} == ipad* ]]; then
os=iPadOS
@nyuszika7h
nyuszika7h / sideload.sh
Created Dec 18, 2020
Sideload IPA on jailbroken iOS device (like AppSync Unified, the installed apps will only work when the device is in jailbroken state)
View sideload.sh
#!/bin/bash
if (( EUID != 0 )); then
printf 'This script must be run as root.\n' >&2
exit 1
fi
if [[ $1 != *.ipa ]]; then
printf 'Usage: %s file.ipa\n' "$0" >&2
exit 1
View ios_app_signing_no_mac.md

How to create an iOS app signing certificate without a Mac

  1. openssl genrsa -out ios_development.key 2048
  2. openssl req -new -key ios_development.key -out ios_development.csr -subj '/emailAddress=your@email.address, CN=Your Name, C=US'
  3. Go to developer portal (https://developer.apple.com/account/) -> Certificates, Identifiers & Profiles
  4. Create a new certificate, choose "Apple Development", and upload the .csr file
  5. Download the resulting .cer file
  6. Download the Apple WWDR intermediate certificate from https://www.apple.com/certificateauthority/ (the one that expires in 2030: https://www.apple.com/certificateauthority/AppleWWDRCAG3.cer)
  7. openssl x509 -inform der -in ios_development.cer -out ios_development.pem
  8. openssl x509 -inform der -in AppleWWDRCAG3.cer -out AppleWWDRCAG3.pem