Skip to content

Instantly share code, notes, and snippets.

@zydeco
Created April 20, 2015 11:16
Show Gist options
  • Save zydeco/c5a9322668f9ade0fdeb to your computer and use it in GitHub Desktop.
Save zydeco/c5a9322668f9ade0fdeb to your computer and use it in GitHub Desktop.
Disable Knock for admin password dialogs
#!/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