Created
April 20, 2015 11:16
-
-
Save zydeco/c5a9322668f9ade0fdeb to your computer and use it in GitHub Desktop.
Disable Knock for admin password dialogs
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
#!/bin/bash | |
# wait until knock launches | |
while [ -z "`ps cax | grep Knock`" ]; do | |
sleep 3 | |
done | |
# wait a bit more | |
sleep 3 | |
# disable security agent support | |
lldb <<EOF | |
attach Knock | |
expr (void)[[[NSApplication sharedApplication] delegate] setEnableSecurityAgentSupport:NO] | |
detach | |
quit | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment