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/python | |
"""Down and dirty removal of deprecated voice products and addition of | |
new voice products for reposado. It makes a few mistakes (products that | |
have 'voice' in the title that aren't properly a Voice Product. | |
Don't just go and run this! | |
""" | |
import shlex |
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/python | |
import urllib | |
import requests | |
# Obviously, our server name is swapped in for "ourjss". | |
# Policy ID 263 is Self Service policy installing Oracle Java 8 on our | |
# test server, running JSS v9.65 | |
ICON_UPLOAD_URL_v965 = 'https://our965jss.org:8443/JSSResource/fileuploads/policies/id/263 |
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/python | |
"""Identify or remove files known to be involved in Adware/Malware | |
infection. | |
Most of the code applies to building a list of malware files. Thus, | |
both extension attribute and removal handling are included. | |
Cleans files as a Casper script policy; thus, it expects four total | |
arguments, the first three of which it doesn't use, followed by | |
--remove |
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://support.apple.com/en-us/ht203987 | |
# TODO: handle Safari extensions: | |
# Amazon Shopping Assistant by Spigot Inc. | |
# Ebay Shopping Assistant by Spigot Inc. | |
# Searchme by Spigot, Inc. | |
# Slick Savings by Spigot Inc. | |
# GoPhoto.It | |
# Omnibar |
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
for i in $(basename ~/Developer/jss-recipes/*.jss.recipe | cut -d . -f 1-2); do echo $i; done | cat - ~/Desktop/managed_software_list.txt | sort | uniq -u |
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
# ZipCloud | |
/Users/*/Library/LaunchAgents/com.jdibackup.ZipCloud.autostart.plist | |
/Users/*/Library/LaunchAgents/com.jdibackup.ZipCloud.backupstart.plist | |
/Users/*/Library/LaunchAgents/com.jdibackup.ZipCloud.notify.plist | |
/Applications/ZipCloud.app | |
PROCESS: ZipCloud | |
# ZipCloud Finder services: | |
/Users/*/Library/Services/Add to Backup Selection.workflow | |
/Users/*/Library/Services/Instant Backup.workflow |
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
<AdwareDefinition> | |
<Version>1.0</Version> | |
<DefinitionAuthor>Shea Craig</DefinitionAuthor> | |
<DefinitionSource>https://support.apple.com/en-us/ht203987</DefinitionSource> | |
<!-- Apple provided this list of files, and as such, they're not necessarily broken down neatly into products.--> | |
<Adware> | |
<AdwareName>Downlite, VSearch, Conduit, Trovi, MyBrand, Search Protect</AdwareName> | |
<File>/System/Library/Frameworks/v.framework</File> | |
<File>/System/Library/Frameworks/VSearch.framework</File> | |
<File>/Library/PrivilegedHelperTools/Jack</File> |
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 python | |
"""oldskool.py | |
Generate character stats using old school methods. | |
""" | |
# I wanted to quickly generate some old school character stats. And I | |
# wanted to express each method as tersely as possible in python. | |
# As it turns out, this is pretty simple to do as one-liners, aside |
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/python | |
# Culled from https://gist.github.com/arubdesu/05b4172890450fa2d9e6 | |
# Given a list of FW models and Thunderstrike patched FW versions, | |
# report on whether a machine has been patched. | |
import subprocess | |
import plistlib | |
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/python | |
# 2015 Shea G. Craig | |
# ____ ______ __ | |
# / ___/ ___\ \/ / | |
# | | _\___ \\ / | |
# | |_| |___) / \ | |
# \____|____/_/\_\ | |
# NO WARRANTY FOR YOU! | |
OlderNewer