Last active
October 17, 2024 17:50
-
-
Save chris1111/781e9324bcd9657af294462c0b3f6582 to your computer and use it in GitHub Desktop.
AMFIPass-Extract
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
#!/bin/bash | |
# Extract AMFIPass.kext | |
# By chris1111 | |
# get AMFIPass path | |
if [ "$2" == "" ]; then | |
echo -n "Please move to terminal window ➤ \ OpenCore-Patcher.app \ | |
Followed by ENTER: " | |
while [ -z "$AMFIPass" ]; do | |
read AMFIPass | |
done | |
if [ ! -d "$AMFIPass" ]; then echo "$AMFIPass not found"; exit; fi | |
else | |
AMFIPass="$2" | |
fi | |
# open Installer.app | |
echo -n password | hdiutil attach -stdinpass -owners on -nobrowse -noverify -mountpoint /tmp/AMFI "$AMFIPass"/Contents/Resources/payloads.dmg | |
cp -Rp /tmp/AMFI/Kexts/Acidanthera/AMFIPass-v*-RELEASE.zip $HOME/Desktop | |
Sleep 1 | |
Umount -f /tmp/AMFI | |
echo "Done ➤ $HOME/Desktop/AMFIPass-RELEASE.zip" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Download: Executable file ➥ AMFIPass-Extract.zip