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/python | |
## Script: get_chrome_extensions.py | |
## Author: Christopher Collins ([email protected]) | |
# also, owen wuz here. minor corrections (utf-8) | |
########################################### | |
##Description: This script searches the last logged in user's installed extensions and submits it to Casper during an inventory report. | |
########################################### | |
import os |
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 os.path | |
from Foundation import NSData, NSKeyedUnarchiver, SFLListItem, NSURL, NSMutableDictionary, NSKeyedArchiver, NSString, NSDictionary, NSArray | |
def load_favservers(sfl_path): | |
if os.path.isfile(sfl_path): | |
# File exists, use it | |
sfl_decoded = NSKeyedUnarchiver.unarchiveObjectWithData_(NSData.dataWithContentsOfFile_(sfl_path)) | |
else: | |
# File doesn't exist, make a blank template | |
sfl_decoded = {u'items': [], |
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
https://bitbucket.com/bruienne | |
https://github.com/bruienne | |
http://enterprisemac.bruienne.com | |
https://derflounder.wordpress.com/2015/02/04/free-tools-for-the-budget-minded-mac-admin/ | |
https://github.com/autopkg/autopkg | |
https://github.com/sheagcraig/JSSImporter | |
https://github.com/tburgin/AbsoluteManageExport | |
https://github.com/sheagcraig/python-jss | |
https://github.com/ox-it/manana | |
https://github.com/nmcspadden/Sal-WHDImport |
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
sudo ruby -e 'key = [125, 137, 82, 35, 210, 188, 221, 234, 163, 185, 31]; IO.read("/etc/kcpassword").bytes.each_with_index { |b, i| break if key.include?(b); print [b ^ key[i % key.size]].pack("U*") }' |
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 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 |
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/python | |
import os | |
import pexpect | |
import sys | |
import shutil | |
import subprocess | |
def run(cmd): | |
proc = subprocess.Popen( |
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/python | |
import objc | |
import plistlib | |
class attrdict(dict): | |
__getattr__ = dict.__getitem__ | |
__setattr__ = dict.__setitem__ | |
ServerInformation = attrdict() |
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
class ProgressDialog(object): | |
def __init__(self, message, title, use_bar=True): | |
super(self.__class__, self).__init__() | |
self.message = message | |
self.title = title | |
self.use_bar = use_bar | |
self.queue = None | |
self.process = None | |
def display(self): | |
# [ begin black magic ] |