Introduce instructions of installing launchd plist

This commit is contained in:
IceCodeNew 2024-02-08 16:16:48 +08:00
parent aa242ce7f9
commit a300d041f6
2 changed files with 43 additions and 0 deletions

View File

@ -19,6 +19,21 @@ chmod +x /Users/Shared/apple-ocsp-noiser.sh
/bin/zsh /Users/Shared/apple-ocsp-noiser.sh
```
You can also install the script to run at load:
```bash
mkdir -p ~/Library/LaunchAgents/
cd ~/Library/LaunchAgents/ || exit 1
curl -ROJ --fail -- \
'https://raw.githubusercontent.com/kiding/apple-ocsp-noiser/main/launched.apple-ocsp-noiser.plist'
# examine the plist file in case there was a disruption in downloading
# you will also need to change the `<username>` to the real user name
YOUR_FAVORATE_EDITOR=vim
"$YOUR_FAVORATE_EDITOR" ~/Library/LaunchAgents/launched.apple-ocsp-noiser.plist
launchctl load -w ~/Library/LaunchAgents/launched.apple-ocsp-noiser.plist
```
## Serial Number Submission
A well-equipped eavesdropper might have a database of *Developer ID* serial numbers. You can help the project by adding more legitimate serial numbers in the *random* pool. Make an issue or a pull request with **only** the serial numbers in hex format.

View File

@ -0,0 +1,28 @@
<?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>KeepAlive</key>
<dict>
<key>Crashed</key>
<true/>
</dict>
<key>Label</key>
<string>launched.apple-ocsp-noiser</string>
<key>ProgramArguments</key>
<array>
<string>zsh</string>
<string>/Users/Shared/apple-ocsp-noiser.sh</string>
</array>
<key>QueueDirectories</key>
<array>
<string>/Users/Shared/</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>UserName</key>
<string><username></string>
<key>WorkingDirectory</key>
<string>/Users/Shared/</string>
</dict>
</plist>