-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
53 changed files
with
17,383 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
15,021 changes: 15,021 additions & 0 deletions
15,021
OpenCore-0.8.8/EFI/OC/Kexts/AppleALC.kext/Contents/Info.plist
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
100 changes: 100 additions & 0 deletions
100
OpenCore-0.8.8/EFI/OC/Kexts/Lilu.kext/Contents/Info.plist
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,100 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>BuildMachineOSBuild</key> | ||
<string>21G320</string> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>en</string> | ||
<key>CFBundleExecutable</key> | ||
<string>Lilu</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>as.vit9696.Lilu</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>Lilu</string> | ||
<key>CFBundlePackageType</key> | ||
<string>KEXT</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.6.3</string> | ||
<key>CFBundleSignature</key> | ||
<string>????</string> | ||
<key>CFBundleSupportedPlatforms</key> | ||
<array> | ||
<string>MacOSX</string> | ||
</array> | ||
<key>CFBundleVersion</key> | ||
<string>1.6.3</string> | ||
<key>DTCompiler</key> | ||
<string>com.apple.compilers.llvm.clang.1_0</string> | ||
<key>DTPlatformBuild</key> | ||
<string>13F100</string> | ||
<key>DTPlatformName</key> | ||
<string>macosx</string> | ||
<key>DTPlatformVersion</key> | ||
<string>12.3</string> | ||
<key>DTSDKBuild</key> | ||
<string>21E226</string> | ||
<key>DTSDKName</key> | ||
<string>macosx12.3</string> | ||
<key>DTXcode</key> | ||
<string>1341</string> | ||
<key>DTXcodeBuild</key> | ||
<string>13F100</string> | ||
<key>IOKitPersonalities</key> | ||
<dict> | ||
<key>as.vit9696.Lilu</key> | ||
<dict> | ||
<key>CFBundleIdentifier</key> | ||
<string>as.vit9696.Lilu</string> | ||
<key>IOClass</key> | ||
<string>Lilu</string> | ||
<key>IOMatchCategory</key> | ||
<string>Lilu</string> | ||
<key>IOProviderClass</key> | ||
<string>IOResources</string> | ||
<key>IOResourceMatch</key> | ||
<string>IOBSD</string> | ||
</dict> | ||
</dict> | ||
<key>LSMinimumSystemVersion</key> | ||
<string>10.6</string> | ||
<key>NSHumanReadableCopyright</key> | ||
<string>Copyright © 2016-2020 vit9696. All rights reserved.</string> | ||
<key>OSBundleCompatibleVersion</key> | ||
<string>1.2.0</string> | ||
<key>OSBundleLibraries</key> | ||
<dict> | ||
<key>com.apple.kernel.6.0</key> | ||
<string>7.9.9</string> | ||
<key>com.apple.kpi.bsd</key> | ||
<string>8.0.0</string> | ||
<key>com.apple.kpi.iokit</key> | ||
<string>8.0.0</string> | ||
<key>com.apple.kpi.libkern</key> | ||
<string>8.0.0</string> | ||
<key>com.apple.kpi.mach</key> | ||
<string>8.0.0</string> | ||
<key>com.apple.kpi.unsupported</key> | ||
<string>8.0.0</string> | ||
</dict> | ||
<key>OSBundleLibraries_x86_64</key> | ||
<dict> | ||
<key>com.apple.kpi.bsd</key> | ||
<string>10.0.0</string> | ||
<key>com.apple.kpi.dsep</key> | ||
<string>10.0.0</string> | ||
<key>com.apple.kpi.iokit</key> | ||
<string>10.0.0</string> | ||
<key>com.apple.kpi.libkern</key> | ||
<string>10.0.0</string> | ||
<key>com.apple.kpi.mach</key> | ||
<string>10.0.0</string> | ||
<key>com.apple.kpi.unsupported</key> | ||
<string>10.0.0</string> | ||
</dict> | ||
<key>OSBundleRequired</key> | ||
<string>Root</string> | ||
</dict> | ||
</plist> |
Binary file not shown.
106 changes: 106 additions & 0 deletions
106
OpenCore-0.8.8/EFI/OC/Kexts/WhateverGreen.kext/Contents/Info.plist
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,106 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>BuildMachineOSBuild</key> | ||
<string>21G320</string> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>en</string> | ||
<key>CFBundleExecutable</key> | ||
<string>WhateverGreen</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>as.vit9696.WhateverGreen</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>WhateverGreen</string> | ||
<key>CFBundlePackageType</key> | ||
<string>KEXT</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.6.3</string> | ||
<key>CFBundleSignature</key> | ||
<string>????</string> | ||
<key>CFBundleSupportedPlatforms</key> | ||
<array> | ||
<string>MacOSX</string> | ||
</array> | ||
<key>CFBundleVersion</key> | ||
<string>1.6.3</string> | ||
<key>DTCompiler</key> | ||
<string>com.apple.compilers.llvm.clang.1_0</string> | ||
<key>DTPlatformBuild</key> | ||
<string>13F100</string> | ||
<key>DTPlatformName</key> | ||
<string>macosx</string> | ||
<key>DTPlatformVersion</key> | ||
<string>12.3</string> | ||
<key>DTSDKBuild</key> | ||
<string>21E226</string> | ||
<key>DTSDKName</key> | ||
<string>macosx12.3</string> | ||
<key>DTXcode</key> | ||
<string>1341</string> | ||
<key>DTXcodeBuild</key> | ||
<string>13F100</string> | ||
<key>IOKitPersonalities</key> | ||
<dict> | ||
<key>NVHDAEnabler</key> | ||
<dict> | ||
<key>CFBundleIdentifier</key> | ||
<string>as.vit9696.WhateverGreen</string> | ||
<key>IOClass</key> | ||
<string>NVHDAEnabler</string> | ||
<key>IOMatchCategory</key> | ||
<string>IOFramebuffer</string> | ||
<key>IOPCIClassMatch</key> | ||
<string>0x03000000&0xff000000</string> | ||
<key>IOPCIMatch</key> | ||
<string>0x000010de&0x0000ffff</string> | ||
<key>IOProbeScore</key> | ||
<integer>300000</integer> | ||
<key>IOProviderClass</key> | ||
<string>IOPCIDevice</string> | ||
</dict> | ||
<key>as.vit9696.WhateverGreen</key> | ||
<dict> | ||
<key>CFBundleIdentifier</key> | ||
<string>as.vit9696.WhateverGreen</string> | ||
<key>IOClass</key> | ||
<string>WhateverGreen</string> | ||
<key>IOMatchCategory</key> | ||
<string>WhateverGreen</string> | ||
<key>IOProviderClass</key> | ||
<string>IOResources</string> | ||
<key>IOResourceMatch</key> | ||
<string>IOKit</string> | ||
</dict> | ||
</dict> | ||
<key>LSMinimumSystemVersion</key> | ||
<string>10.6</string> | ||
<key>NSHumanReadableCopyright</key> | ||
<string>Copyright © 2018 vit9696. All rights reserved.</string> | ||
<key>OSBundleCompatibleVersion</key> | ||
<string>1.0</string> | ||
<key>OSBundleLibraries</key> | ||
<dict> | ||
<key>as.vit9696.Lilu</key> | ||
<string>1.2.0</string> | ||
<key>com.apple.iokit.IOPCIFamily</key> | ||
<string>1.0.0b1</string> | ||
<key>com.apple.kpi.bsd</key> | ||
<string>10.0.0</string> | ||
<key>com.apple.kpi.dsep</key> | ||
<string>10.0.0</string> | ||
<key>com.apple.kpi.iokit</key> | ||
<string>10.0.0</string> | ||
<key>com.apple.kpi.libkern</key> | ||
<string>10.0.0</string> | ||
<key>com.apple.kpi.mach</key> | ||
<string>10.0.0</string> | ||
<key>com.apple.kpi.unsupported</key> | ||
<string>10.0.0</string> | ||
</dict> | ||
<key>OSBundleRequired</key> | ||
<string>Root</string> | ||
</dict> | ||
</plist> |
Binary file added
BIN
+511 KB
OpenCore-0.8.8/EFI/OC/Kexts/WhateverGreen.kext/Contents/MacOS/WhateverGreen
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
#!/bin/bash | ||
|
||
# create_vault.sh | ||
# | ||
# | ||
# Created by Rodion Shingarev on 13.04.19. | ||
# | ||
OCPath="$1" | ||
|
||
if [ "${OCPath}" = "" ]; then | ||
echo "Usage ./create_vault.sh path/to/EFI/OC" | ||
exit 1 | ||
fi | ||
|
||
if [ ! -d "${OCPath}" ]; then | ||
echo "Path $OCPath is missing!" | ||
exit 1 | ||
fi | ||
|
||
if [ ! -x /usr/bin/env ] || [ ! -x /usr/bin/find ] || [ ! -x /bin/rm ] || [ ! -x /usr/bin/sed ] || [ ! -x /usr/bin/openssl ] || [ ! -x /usr/bin/awk ] || [ ! -x /usr/bin/sort ] || [ ! -x /usr/bin/xxd ]; then | ||
echo "Unix environment is broken!" | ||
exit 1 | ||
fi | ||
|
||
abort() { | ||
/bin/rm -rf vault.plist vault.sig /tmp/vault_hash | ||
echo "Fatal error: ${1}!" | ||
exit 1 | ||
} | ||
|
||
# plist output functions so we don't need PlistBuddy | ||
write_header() { | ||
cat <<EOF > "$1" | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>Files</key> | ||
<dict> | ||
EOF | ||
} | ||
|
||
write_file_name_and_hash() { | ||
{ | ||
echo -e "\t\t<key>${2}</key>" | ||
echo -e "\t\t<data>" | ||
echo -e -n "\t\t" | ||
cat "$3" | ||
echo -e "\t\t</data>" | ||
} >> "$1" | ||
} | ||
|
||
write_footer() { | ||
cat <<EOF >> "$1" | ||
</dict> | ||
<key>Version</key> | ||
<integer>1</integer> | ||
</dict> | ||
</plist> | ||
EOF | ||
} | ||
|
||
echo "Chose ${OCPath} for hashing..." | ||
|
||
cd "${OCPath}" || abort "Failed to reach ${OCPath}" | ||
/bin/rm -rf vault.plist vault.sig || abort "Failed to cleanup" | ||
|
||
echo "Hashing files in ${OCPath}..." | ||
|
||
write_header vault.plist | ||
|
||
/usr/bin/find . -not -path '*/\.*' -type f \ | ||
\( ! -iname ".*" \) \ | ||
\( ! -iname "vault.*" \) \ | ||
\( ! -iname "MemTest86.log" \) \ | ||
\( ! -iname "MemTest86-Report-*.html" \) \ | ||
\( ! -iname "OpenCore.efi" \) | env LC_COLLATE=POSIX /usr/bin/sort | while read -r fname; do | ||
fname="${fname#"./"}" | ||
wname="${fname//\//\\\\}" | ||
sha=$(/usr/bin/openssl sha256 "${fname}" | /usr/bin/awk '{print $2}') || abort "Failed to hash ${fname}" | ||
if [ "${#sha}" != 64 ] || [ "$(echo "$sha"| /usr/bin/sed 's/^[a-f0-9]*$//')" ]; then | ||
abort "Got invalid hash: ${sha}!" | ||
fi | ||
|
||
echo "${wname}: ${sha}" | ||
|
||
echo "${sha}" | /usr/bin/xxd -r -p | /usr/bin/openssl base64 > /tmp/vault_hash || abort "Hashing failure" | ||
write_file_name_and_hash vault.plist "${wname}" /tmp/vault_hash | ||
done | ||
|
||
/bin/rm -rf /tmp/vault_hash | ||
|
||
write_footer vault.plist | ||
|
||
echo "All done!" | ||
exit 0 |
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,72 @@ | ||
#!/bin/sh | ||
|
||
abort() { | ||
echo "Fatal error: ${1}!" | ||
exit 1 | ||
} | ||
|
||
# shellcheck disable=SC2317 | ||
cleanup() { | ||
echo "Cleaning up key" | ||
rm -rf "${KeyPath}" | ||
} | ||
|
||
if [ ! -x /usr/bin/dirname ] || [ ! -x /bin/chmod ] || [ ! -x /bin/mkdir ] || [ ! -x /bin/rm ] || [ ! -x /usr/bin/strings ] || [ ! -x /usr/bin/grep ] || [ ! -x /usr/bin/awk ] || [ ! -x /bin/dd ] || [ ! -x /usr/bin/uuidgen ] ; then | ||
abort "Unix environment is broken!" | ||
fi | ||
|
||
cd "$(/usr/bin/dirname "$0")" || abort "Failed to enter working directory!" | ||
|
||
OCPath="$1" | ||
|
||
if [ "$OCPath" = "" ]; then | ||
OCPath=../../EFI/OC | ||
fi | ||
|
||
KeyPath="/tmp/$(/usr/bin/uuidgen)" | ||
OCBin="${OCPath}/OpenCore.efi" | ||
PubKey="${KeyPath}/vault.pub" | ||
|
||
if [ ! -d "${OCPath}" ]; then | ||
abort "Path ${OCPath} is missing!" | ||
fi | ||
|
||
if [ ! -f "${OCBin}" ]; then | ||
abort "OpenCore.efi is missing!" | ||
fi | ||
|
||
if [ ! -x ./RsaTool ] || [ ! -x ./create_vault.sh ]; then | ||
if [ -f ./RsaTool ]; then | ||
/bin/chmod a+x ./RsaTool || abort "Failed to set permission for RsaTool" | ||
else | ||
abort "Failed to find RsaTool!" | ||
fi | ||
|
||
if [ -f ./create_vault.sh ]; then | ||
/bin/chmod a+x ./create_vault.sh || abort "Failed to set permission for create_vault.sh" | ||
else | ||
abort "Failed to find create_vault.sh!" | ||
fi | ||
fi | ||
|
||
trap cleanup EXIT INT TERM | ||
|
||
if [ ! -d "${KeyPath}" ]; then | ||
/bin/mkdir -p "${KeyPath}" || abort "Failed to create path ${KeyPath}" | ||
fi | ||
|
||
./create_vault.sh "${OCPath}" || abort "create_vault.sh returns errors!" | ||
|
||
echo "Signing ${OCBin}..." | ||
./RsaTool -sign "${OCPath}/vault.plist" "${OCPath}/vault.sig" "${PubKey}" || abort "Failed to patch ${PubKey}" | ||
|
||
echo "Bin-patching ${OCBin}..." | ||
off=$(($(/usr/bin/strings -a -t d "${OCBin}" | /usr/bin/grep "=BEGIN OC VAULT=" | /usr/bin/awk '{print $1}') + 16)) | ||
if [ "${off}" -le 16 ]; then | ||
abort "${OCBin} is borked" | ||
fi | ||
|
||
/bin/dd of="${OCBin}" if="${PubKey}" bs=1 seek="${off}" count=528 conv=notrunc || abort "Failed to bin-patch ${OCBin}" | ||
|
||
echo "All done!" | ||
exit 0 |
Oops, something went wrong.