Jump to content

PlistBuddy base64 data in Clover config.plist


4 posts in this topic

Recommended Posts

Hello!

 

I am making an automation script for installing Clover onto a drive's EFI partition.

For editing the stock config.plist i use PlistBuddy (located in /usr/libexec/PlistBuddy), and the following command causes issues:

/usr/libexec/PlistBuddy -c "Add :KernelAndKextPatches:KextsToPatch:0:Find data ixnUEQ==" $config

I tried replacing

ixnUEQ==

with other bases, e.g. 

8b19d411

 or

10001011 00011001 11010100 00010001

but none yields the desired result, which is:

<data>
ixnEUQ==
</data>

 

Do you have any suggestion as to what I could do instead?

 

Any help would be appreciated.

Thank you!

 

EDIT: Solved it. See post 3.

Link to comment
Share on other sites

  • 2 weeks later...

It is not pretty, but it works. I solved it by combining these commands (the gibberish data is the faulty data that ended up in the $config file):

/usr/libexec/PlistBuddy -c "Add :KernelAndKextPatches:KextsToPatch:0:Find data ixnUEQ==" $config
/usr/libexec/PlistBuddy -c "Add :KernelAndKextPatches:KextsToPatch:0:Replace data kgjsEA==" $config

/usr/libexec/PlistBuddy -c "Add :KernelAndKextPatches:KextsToPatch:1:Find data QVBQTEUgU1NE" $config
/usr/libexec/PlistBuddy -c "Add :KernelAndKextPatches:KextsToPatch:1:Replace data AAAAAAAAAAAA" $config

perl -pi -e 's/aXhuVUVRPT0=/ixnUEQ==/g' $config
perl -pi -e 's/a2dqc0VBPT0=/kgjsEA==/g' $config

perl -pi -e 's/UVZCUVRFVWdVMU5F/QVBQTEUgU1NE/g' $config
perl -pi -e 's/QUFBQUFBQUFBQUFB/AAAAAAAAAAAA/g' $config
  • Like 1
Link to comment
Share on other sites

  • 4 weeks later...
 Share

×
×
  • Create New...