Introduce instructions of installing launchd plist
This commit is contained in:
parent
aa242ce7f9
commit
a300d041f6
15
README.md
15
README.md
|
@ -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.
|
||||
|
|
|
@ -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>
|
Loading…
Reference in New Issue