Skip to content

Instantly share code, notes, and snippets.

@chris1111
Last active October 17, 2024 17:50
Show Gist options
  • Save chris1111/781e9324bcd9657af294462c0b3f6582 to your computer and use it in GitHub Desktop.
Save chris1111/781e9324bcd9657af294462c0b3f6582 to your computer and use it in GitHub Desktop.
AMFIPass-Extract
#!/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"
@chris1111
Copy link
Author

chris1111 commented May 31, 2023

Download: Executable file ➥ AMFIPass-Extract.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment