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
| # This was all run from user space | |
| # I haven't tested it with root | |
| # ... but it didn't prompt for any permissions under userspace ^_^ | |
| # Tested on 10.11.5 | |
| import objc | |
| from Foundation import NSBundle | |
| EAP8021X_bundle = NSBundle.bundleWithPath_('/System/Library/PrivateFrameworks/EAP8021X.framework') | |
| Security_bundle = NSBundle.bundleWithIdentifier_('com.apple.security') |
| # Tested on 10.11 | |
| # Note: | |
| # The marketing information embedded in the ServerInformation.framework is not the same as what | |
| # About This Mac displays - there are differences. | |
| # | |
| # For example: | |
| # ServerInformation: 15" MacBook Pro with Retina display (Mid 2015) | |
| # About This Mac: MacBook Pro (Retina, 15-inch, Mid 2015) | |
| # |
| # This file parses this file: | |
| # https://github.com/Piker-Alpha/macosxbootloader/blob/El-Capitan/src/boot/NetBootImages.h | |
| # and this one: | |
| # https://github.com/Piker-Alpha/macosxbootloader/blob/El-Capitan/src/boot/AppleLogoData.h | |
| from ctypes import CDLL, create_string_buffer, c_size_t, c_void_p | |
| import re | |
| CPK = CDLL('/System/Library/PrivateFrameworks/PackageKit.framework/Versions/Current/PackageKit') | |
| lzvn_decode = CPK.lzvn_decode |
| import objc | |
| from Foundation import NSBundle | |
| Security_bundle = NSBundle.bundleWithIdentifier_('com.apple.security') | |
| CMSDecoderRef = objc.createOpaquePointerType("CMSDecoderRef", b"^{CMSDecoder}", None) | |
| functions = [('CMSDecoderCreate', b'io^^{CMSDecoder}'), | |
| ('CMSDecoderUpdateMessage', b'i^{CMSDecoder}*I'), | |
| ('CMSDecoderFinalizeMessage', b'i^{CMSDecoder}',), |
| # An overly complicated SIP config checker | |
| # This is a technically interesting implementation because it does not rely on csrutil | |
| # Instead it queries the kernel directly for the current configuration status | |
| # This means, for example, in environments where SIP has been disabled and csrutil has | |
| # been removed or modified (say, with DYLD_LIBRARY_PATH), as long as python can run you | |
| # can still check status | |
| # Additionally, checking the nvram csr-active-config setting isn't accurate now with | |
| # 10.12.2+, since running "sudo csrutil clear" deletes the variable until reboot, |
| package main | |
| import ( | |
| "fmt" | |
| "image" | |
| "image/draw" | |
| "image/jpeg" | |
| "image/png" | |
| "io" | |
| "log" |
| from subprocess import Popen, PIPE, STDOUT, check_output | |
| from mimetools import Message | |
| from StringIO import StringIO | |
| from urlparse import urlparse, parse_qs | |
| from urllib import quote, basejoin, urlencode | |
| DEV_SITE = 'https://developer.apple.com' | |
| AUTH_SITE = 'https://idmsa.apple.com' | |
| AUTH_PATH = '/IDMSWebAuth/authenticate' | |
| APPIDKEY_PATH = "/services-account/download?path=%s" |
| #!/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/bash | |
| cat <<__MARKDOWN__ | | |
| # Title ÅÄÖ | |
| * list | |
| __MARKDOWN__ | |
| /usr/bin/python <( cat <<__EOF__ | |
| #!/usr/bin/python |