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 | |
# Joel Bruner - EA Grabber: Surreptitiously grabs Jamf Extension Attributes (EAs) during recon | |
#touch file for debug | |
[ -f /tmp/debug ] && set -x | |
############# | |
# VARIABLES # | |
############# |
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 | |
# this script will return the current default application for a url scheme | |
# for use as a Jamf Extension attribute | |
# by Armin Briegel - Scripting OS X | |
# Permission is granted to use this code in any way you want. | |
# Credit would be nice, but not obligatory. | |
# Provided "as is", without warranty of any kind, express or implied. |
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
#!/usr/bin/env bash | |
# Usage: ./no_automount My\ Disk | |
NAME=$1 | |
if [ -z "$NAME" ] ; then | |
echo "Usage: no_automount {Disk Name}" | |
exit 1 | |
fi | |
FSTAB=/etc/fstab |
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/sh | |
# Use the country names in the script parameters ($4, $5....) | |
# Example output = USA-C02VMTEST00 | |
# variables | |
LOGGED_IN_USER=$(stat -f%Su /dev/console) | |
LOGGED_IN_UID=$(id -u $LOGGED_IN_USER) | |
JAMFHELPER="/Library/Application Support/JAMF/bin/jamfHelper.app/Contents/MacOS/jamfHelper" |