Skip to content

Instantly share code, notes, and snippets.

View macmule's full-sized avatar

macmule macmule

View GitHub Profile
#!/usr/bin/python
"""
EA to get a list of all apps that are vulnerable to Sparkle MITM attacks
License: https://macmule.com/license/
"""
# Imports
import os.path
import subprocess
#!/bin/bash
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
#
# DEFINE VARIABLES & READ IN PARAMETERS
#
####################################################################################################
#!/usr/bin/env python
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
import logging
import os
import requests
#!/usr/bin/env python
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
import json
import logging
import os
#!/usr/bin/env python
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
import logging
import os
import requests
#!/usr/bin/env python
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
import json
import logging
import os
#!/bin/bash
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
# This will check to see if user is an Admin via AD groups, & if is but is not in the local admins group then add.
# Then run once more. If user is in the local admin group or is not an AD defined admin then quit.
mainFunction() {
try
do shell script "security unlock-keychain -p ~/Library/Keychains/login.keychain"
set keychainState to "unlocked"
log " Keychain unlocked..."
on error
set keychainState to "locked"
end try
#!/bin/sh
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
# HARDCODED VALUES ARE SET HERE
# Volume Reserve Percent
try
tell application "Finder"
set my volname to name of startup disk
end tell
on error
log "whoops!"
en try