This repository has been archived by the owner on Oct 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from m1stadev/main
Cleanup + changes
- Loading branch information
Showing
5 changed files
with
24 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.DS_Store | ||
asr64_patcher |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
all: | ||
gcc asr64_patcher.c -o asr64_patcher | ||
clean: | ||
rm asr64_patcher |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,20 @@ | ||
# asr64_patcher | ||
Easily patch ASR on 64-bit devices. | ||
# how to use | ||
A tool to patch the signature checks of a 64-bit ASR binary. | ||
|
||
`asr64_patcher asr asr_patched` | ||
## Build | ||
`make` | ||
|
||
`ldid2 -e asr_patched > asr.xml` | ||
## Usage | ||
1. Extract binary from an iOS ramdisk (macOS only): | ||
- `img4 -i <ramdisk> -o ramdisk.dmg` | ||
- `img4` can be found [here](https://github.com/xerub/img4lib) | ||
- `hdiutil attach ramdisk.dmg -mountpoint ramdisk` | ||
- `cp ramdisk/usr/sbin/asr .` | ||
- `hdiutil detach ramdisk` | ||
|
||
`ldid2 -Sasr.xml asr_patched` | ||
2. Run `asr64_patcher`: | ||
- `asr64_patcher asr asr_patched` | ||
|
||
3. Resign patched ASR binary | ||
- `ldid -e asr > ents.plist` | ||
- `ldid -Sents.plist asr_patched` |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters