Skip to content

Instantly share code, notes, and snippets.

View beer-psi's full-sized avatar
🗿
moyai

beerpsi beer-psi

🗿
moyai
View GitHub Profile
@beer-psi
beer-psi / odysseyn1x-without-usb.md
Last active April 1, 2022 06:39
How to use checkra1n without a USB (last resort, try to get one please)

DISCLAIMER: I am not responsible if you fuck up your bootloader, please consider this as a last resort/experiment. You should learn the basic ins and outs of your BIOS before proceeding.

This guide only works on UEFI computers.

Before you start

Tools you'll need

Keybase proof

I hereby claim:

  • I am extradummythicc on github.
  • I am beerpsi (https://keybase.io/beerpsi) on keybase.
  • I have a public key ASCpUinfnu8PMHeqO4EPzxx-9qTSSDXRSnJo2kKnkp5aQwo

To claim this, I am signing this object:

@beer-psi
beer-psi / launchctl.sh
Last active April 16, 2022 07:55
launchctl reboot userspac
#!/bin/sh
LAUNCHCTL_PATH="/bin/launchctl"
if ! command -v $LAUNCHCTL_PATH &> /dev/null
then
LAUNCHCTL_PATH="/usr/bin/launchctl"
fi
if [ -t 0 ] && [ "$1" = "reboot" ]; then
if [ "$2" = "userspace" ]; then
@beer-psi
beer-psi / shitc0ver.plist
Created January 9, 2022 02:25
is this how you write launch daemons
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.beerpsi.shitc0ver</string>
<key>POSIXSpawnType</key>
<string>Interactive</string>
<key>ProcessType</key>
@beer-psi
beer-psi / procursus-deploy-windows.md
Last active April 1, 2022 06:38
odysseyra1n bootstrap script but it's in PowerShell

Run by doing

iwr https://gist.github.com/beerpiss/5adfd84dd5a60f9c7c733321cd187529/raw/b1e991f56b35f151b82e68fe8386a6fa7f589d84/procursus-deploy.ps1 | iex
@beer-psi
beer-psi / patching-uyou-for-ios-12.md
Last active April 1, 2022 06:38
Patching uYou's control file to install on iOS 12-

Prerequisites: PoomSmart's and MiRO92's repo added.

Run line-by-line in a terminal of choice (e.g. NewTerm 3)

apt download --allow-unauthenticated com.miro.uyou
dpkg-deb -R ./com.miro.uyou_2.1_iphoneos-arm.deb build
sed -i 's/firmware (>=13.0)/firmware (>=13.0) | com.ps.uyoucompat/' build/DEBIAN/control
dpkg-deb --build ./build
sudo apt install ./build.deb
@beer-psi
beer-psi / convert.py
Last active March 15, 2022 04:09
Python script to convert IMG4 to SHSH blobs
"""
Converts a raw img4 to an SHSH blob.
Similar to `img4tool --convert -s out.shsh dump.raw`
Requirements:
pyasn1
Usage:
python convert.py <raw img4> [output]
"""
@beer-psi
beer-psi / openapi-tsssaver-shshhost.md
Last active April 2, 2022 23:40
OpenAPI 3 definitions for TSS Saver API and shsh.host
@beer-psi
beer-psi / git-build-manifest.mk
Last active March 19, 2022 15:35
Adding git build manifest to Theos package versions
include $(THEOS)/makefiles/package.mk
# Git-based versioning
# If not a git repo (downloaded tarball etc.), use version from control file
# If git repo:
# - If on tag, use version from control file
# - If not on tag, use version from control file with added git manfest
# - Release version is $(PACKAGE_VERSION)+git$(GIT_DATE).$(GIT_COMMIT_HASH)
# - Debug version is $(PACKAGE_VERSION)-debug.$(_DEBUG_NUMBER)+git$(GIT_DATE).$(GIT_COMMIT_HASH)
# $(_DEBUG_NUMBER) is incremental.
ifeq ($(shell git rev-parse --is-inside-work-tree),true)
@beer-psi
beer-psi / how-to-remove-mybloxx.md
Last active April 1, 2022 07:04
How to remove MYbloXX entirely

This guide is for non-jailbroken phones. If you're jailbroken, remove MYbloXX from your package manager before restoring rootFS/unjailbreaking.

Table of contents

Proxy auto-configuration (PAC)

MYbloXX uses a PAC located here, which persists after rootFS and even a full restore because proxy configuration is stored in /var.