Skip to content

Instantly share code, notes, and snippets.

@Piker-Alpha
Piker-Alpha / enrollInSeedProgram.py
Created Oct 18, 2017
Python implementation of: seedutil enroll <program>
View enrollInSeedProgram.py
#!/usr/bin/python
''' Python implementation of "seedutil enroll <program>" '''
import os
import objc
from Foundation import NSBundle, NSClassFromString
SeedingBundle = NSBundle.bundleWithPath_('/System/Library/PrivateFrameworks/Seeding.framework')
@Piker-Alpha
Piker-Alpha / unenrollFromSeedingProgram.py
Created Oct 18, 2017
Python implementation of: seedutil unenroll
View unenrollFromSeedingProgram.py
#!/usr/bin/python
''' Python implementation of "seedutil unenroll" '''
import os
import objc
from Foundation import NSBundle, NSClassFromString
SeedingBundle = NSBundle.bundleWithPath_('/System/Library/PrivateFrameworks/Seeding.framework')
@Piker-Alpha
Piker-Alpha / catalogUtilities.py
Created Oct 17, 2017
Show and set the CatalogURL on macOS 10.10 and greater
View catalogUtilities.py
#!/usr/bin/python
import objc
from Foundation import NSBundle, NSClassFromString
SeedingBundle = NSBundle.bundleWithPath_('/System/Library/PrivateFrameworks/Seeding.framework')
functions = [
('currentCatalog', '@'),
@Piker-Alpha
Piker-Alpha / currentBuildIsSeed.py
Created Oct 17, 2017
Check for Beta build on macOS 10.10 and greater
View currentBuildIsSeed.py
#!/usr/bin/python
import objc
from Foundation import NSBundle, NSClassFromString
SeedingBundle = NSBundle.bundleWithPath_('/System/Library/PrivateFrameworks/Seeding.framework')
objc.loadBundleFunctions(SeedingBundle, globals(), [("currentBuildIsSeed", '@')])
buildInfo = NSClassFromString('SDBuildInfo')