This file contains 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
#!/bin/bash | |
# Displays Third Party Kernel Extensions | |
echo "<result>$(kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}')</result>" |
This file contains 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
#!/bin/bash | |
# Seriously there still apparently aren't enough warning labels | |
# If you don't understand the consequences don't do it | |
# ################ | |
# #### May cause 10.13.2+ machines that were DEP-enrolled to not be considered as such | |
# ################ | |
# but really, you shouldn't do this | |
# one local user enabled for MDM come on apple | |
# ¯\_(ツ)_/¯ |
This file contains 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
#!/bin/bash | |
# Modified 2/7/2017 | |
Version=1.2 | |
# Original source is from MigrateUserHomeToDomainAcct.sh | |
# Written by Patrick Gallagher - https://twitter.com/patgmac | |
# | |
# Guidance and inspiration from Lisa Davies: | |
# http://lisacherie.com/?p=239 | |
# | |
# Modified by Rich Trouton |
This file contains 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
#!/bin/bash | |
if [[ $EUID -ne 0 ]]; then | |
echo -e " | |
ROOT PRIVILEDGES NEEDED! | |
You have to run this script as root. | |
Aborting... | |
" | |
exit 1 | |
else |
This file contains 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
#!/bin/bash | |
# Original by Rich Trouton | |
# https://derflounder.wordpress.com/2017/04/12/identifying-which-active-directory-account-is-logged-into-enterprise-connect/ | |
# | |
# This script is designed to do the following: | |
# | |
# 1. Identify if NoMAD is installed on a particular Mac | |
# 2. If NoMAD is installed, identify the username of the Active Directory account logged into NoMAD. |
This file contains 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>ADDomain</key> | |
<string>company.com</string> | |
<key>GetHelpOptions</key> | |
<string>https://itsupport.company.com</string> | |
<key>GetHelpType</key> | |
<string>URL</string> |
This file contains 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://help.apple.com/deployment/osx/ | |
https://help.apple.com/deployment/ios/ | |
https://help.apple.com/deployment/business/ | |
https://help.apple.com/deployment/education/ | |
https://help.apple.com/icloud | |
https://help.apple.com/machelp/mac/10.12/ | |
https://help.apple.com/serverapp/mac/ | |
https://help.apple.com/advancedserveradmin/mac/4.0/ | |
https://help.apple.com/configurator/ | |
https://help.apple.com/profilemanager/mac/ |
This file contains 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
#!/bin/bash | |
# Checks for the the files related to the VPN fixer patch. | |
if [ -d "/usr/local/clamXav" ]; then | |
echo "<result>Yes</result>" | |
else |
This file contains 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
#!/bin/bash | |
#Sam Look November 2015, all care and no responsibility, this sucker will blitz everything so watch out | |
##### SUBROUTINES START HERE ##### | |
Get_First_HDD(){ | |
echo Starting search for HDD | |
for The_Disk in $(diskutil list | awk '/internal/ && /physical/ {print $1}'); do | |
echo Checking $The_Disk | |
if [[ ! "$The_HDD" ]] && [[ "$(diskutil info $The_Disk | awk '/Solid State/ && /No/')" ]]; then |
This file contains 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 struct, objc | |
from Foundation import NSBundle | |
from Cocoa import NSAppleEventDescriptor | |
def OSType(s): | |
# Convert 4 character code into 4 byte integer | |
return struct.unpack('>I', s)[0] | |
# Create an opaque pointer type to mask the raw AEDesc pointers we'll throw around | |
AEDescRef = objc.createOpaquePointerType('AEDescRef', '^{AEDesc=I^^{OpaqueAEDataStorageType}}') |