This file contains hidden or 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
| import objc | |
| from ctypes import c_char | |
| from Foundation import NSBundle | |
| Security = NSBundle.bundleWithIdentifier_('com.apple.security') | |
| S_functions = [ | |
| ('SecKeychainGetTypeID', 'I'), | |
| ('SecKeychainItemGetTypeID', 'I'), | |
| ('SecKeychainAddGenericPassword', 'i^{OpaqueSecKeychainRef=}I*I*I*o^^{OpaqueSecKeychainItemRef}'), | |
| ('SecKeychainOpen', 'i*o^^{OpaqueSecKeychainRef}'), |
This file contains hidden or 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
| # This expects that you're already running as sudo'd / root account | |
| cat <<EOF | security -i | |
| authorize -C adminUserNameHere com.apple.uninstalld.uninstall | |
| execute-with-privileges /usr/sbin/uninstall /Applications/SomeMASapp.app | |
| EOF | |
| # In the example above, if you're already running as root / sudo'd admin, | |
| # you still get a prompt for the password of the account in question. | |
| # We aren't dodging proving we know the password - we're just doing it |
This file contains hidden or 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
| <?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>PayloadContent</key> | |
| <array> | |
| <dict> | |
| <key>PayloadCertificateFileName</key> | |
| <string>my.org.cer</string> | |
| <key>PayloadContent</key> |
This file contains hidden or 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
| # IMPORTANT SETUP INSTRUCTIONS: | |
| # | |
| # 1. Go to http://www.dropbox.com/developers/apps (log in if necessary) | |
| # 2. Select "Create App" | |
| # 3. Select the following settings: | |
| # * "Dropbox API app" | |
| # * "Files and datastores" | |
| # * "(No) My app needs access to files already on Dropbox" | |
| # * "All file types" | |
| # * (Choose any app name) |
This file contains hidden or 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
| Common Mac Admin tools requirements | |
| =================================== | |
| Requires OS X Server | |
| -------------------- | |
| DeployStudio (for NetBoot/OD integration) | |
| Requires OS X, and same version as being deployed |
This file contains hidden or 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
| #!/usr/bin/env python | |
| # | |
| # Proof of Concept: UDP Hole Punching | |
| # Two client connect to a server and get redirected to each other. | |
| # | |
| # This is the client. | |
| # | |
| # Koen Bollen <meneer koenbollen nl> | |
| # 2010 GPL | |
| # |
NewerOlder