From 788a009d61aaa9b1b3e9403c5e60da2360cf4ce2 Mon Sep 17 00:00:00 2001 From: opa334 Date: Sun, 9 Oct 2022 15:11:15 +0200 Subject: [PATCH] Fix ldid detection, some readme improvements --- README.md | 6 ++++-- _compile/build_trollinstaller2.sh | 8 ++++---- _compile/test.sh | 2 ++ 3 files changed, 10 insertions(+), 6 deletions(-) create mode 100755 _compile/test.sh diff --git a/README.md b/README.md index 006ec13..97337f6 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ The binaries inside an IPA can have arbitary entitlements, fakesign them with ld ## Banned entitlements -iOS 15 on A12+ has banned the following three entitlements related to running unsigned code, these are impossible to get without a PPL or PAC bypass, apps signed with them will crash on launch. +iOS 15 on A12+ has banned the following three entitlements related to running unsigned code, these are impossible to get without a PPL bypass, apps signed with them will crash on launch. `com.apple.private.cs.debugger` @@ -134,4 +134,6 @@ Afterwards you can use the [spawnRoot function in TSUtil.m](./Store/TSUtil.m#L39 [@LinusHenze](https://twitter.com/LinusHenze/) - Found the CoreTrust bug that allows TrollStore to work. -[Early Write-Up on the CoreTrust bug with more information](https://worthdoingbadly.com/coretrust/). +[Fugu15 Presentation](https://youtu.be/NIyKNjNNB5Q?t=3046) + +[Write-Up on the CoreTrust bug with more information](https://worthdoingbadly.com/coretrust/). diff --git a/_compile/build_trollinstaller2.sh b/_compile/build_trollinstaller2.sh index 8ce88dc..5748e84 100755 --- a/_compile/build_trollinstaller2.sh +++ b/_compile/build_trollinstaller2.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -e if [ ! -d "./out" ] @@ -17,9 +17,9 @@ then fi IS_PROCURSUS_LDID=0 -LDID_OUTPUT=$(ldid) -case "procursus" in - *$LDID_OUTPUT*) +{ LDID_OUTPUT="$( { ldid; } 2>&1 1>&3 3>&- )"; } 3>&1; +case "$LDID_OUTPUT" in + *"procursus"*) IS_PROCURSUS_LDID=1 ;; esac diff --git a/_compile/test.sh b/_compile/test.sh new file mode 100755 index 0000000..9e7e3a5 --- /dev/null +++ b/_compile/test.sh @@ -0,0 +1,2 @@ +{ LDID_OUTPUT="$( { ldid; } 2>&1 1>&3 3>&- )"; } 3>&1; +echo "aaa: $LDID_OUTPUT" \ No newline at end of file