Enroll macOS Beta Seed without profile installation
$ sudo /System/Library/PrivateFrameworks/Seeding.framework/Versions/A/Resources/seedutil
usage: seedutil enroll SEED_PROGRAM
seedutil unenroll
seedutil current
#!/usr/bin/python | |
# pylint: disable=C0103, W0612, E1101, E0602, E0611 | |
# pylint: disable=W0101, W0110, W0141 | |
''''Fix 802.1x When Using Config Profiles and EAP-TLS''' | |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
# | |
# This script will determine the profile ID that was used when | |
# installing the 802.1x Ethernet Identity preference and make | |
# a copy of the keychain entry to be used as a user identity preference | |
# so that any Ethernet can be used when a user is logged in. As of 10.12.3 |
#!/usr/bin/python | |
# pylint: disable=E0611, E1101, E0602 | |
''''Fix 802.1x When Using Config Profiles and PEAP-MSCHAPV2 or EAP-TLS''' | |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
# | |
# This script will find the system profile that is attached to one ethernet | |
# interface from our configuration profile and then copy it to all other | |
# ethernet interfaces so that other ethernet interfaces can be used instead | |
# of just the FirstActiveEthernet at time of profile installation. This issue | |
# is still an issue as of 10.12.3 |
<?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> |
#!/usr/bin/python | |
# For mojave only | |
# In order for this to work, you will need to go to System Preferences in Mojave -> Security & Privacy -> Privacy -> Full Disk Access and grant Terminal.app permissions | |
import sqlite3 | |
conn = sqlite3.connect('/var/db/SystemPolicyConfiguration/KextPolicy') | |
c = conn.cursor() | |
query = 'SELECT * FROM kext_policy' | |
c.execute(query) |
#!/usr/bin/python | |
import subprocess | |
import plistlib | |
cmd = ['/usr/sbin/system_profiler', '-xml', 'SPApplicationsDataType'] | |
proc = subprocess.Popen(cmd, shell=False, bufsize=-1, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) | |
output, err = proc.communicate() | |
plist = plistlib.readPlistFromString(output) | |
items = plist[0]['_items'] | |
for item in sorted(items, key=lambda x: x.get('path')): |
<?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>autoremove</key> | |
<false/> | |
<key>catalogs</key> | |
<array> | |
<string>production</string> | |
</array> |
#!/bin/bash | |
cat <<__MARKDOWN__ | | |
# Title ÅÄÖ | |
* list | |
__MARKDOWN__ | |
/usr/bin/python <( cat <<__EOF__ | |
#!/usr/bin/python |
#!/bin/sh | |
# Based on investigations and work by Pepijn Bruienne | |
# Expects a single /Applications/Install macOS Sierra*.app on disk | |
# Adapted from https://gist.github.com/gregneagle/7c802aef636ac4295536f2e360921bb1 | |
IDENTIFIER="com.foo.FirmwareUpdateStandalone" | |
VERSION=1.0 | |
# find the Install macOS Sierra.app and mount the embedded InstallESD disk image | |
echo "Mounting Sierra ESD disk image..." |
#!/bin/sh | |
# Based on investigations and work by Pepijn Bruienne | |
# Expects a single /Applications/Install macOS Sierra*.app on disk | |
# Adapted from https://gist.github.com/gregneagle/7c802aef636ac4295536f2e360921bb1 | |
IDENTIFIER="com.foo.FirmwareUpdateStandalone" | |
VERSION=1.0 | |
# find the Install macOS Sierra.app and mount the embedded InstallESD disk image | |
echo "Mounting Sierra ESD disk image..." |