Skip to content

Instantly share code, notes, and snippets.

View ModElephant's full-sized avatar

ModElephant ModElephant

View GitHub Profile
#!/bin/bash
# Run this script in your bash profile to audit PATHs and check for potential PATH interceptions.
# This isn't perfect but it's better than nothing. See here for a full discussion:
# http://modelephant.net/?p=95
# N.B. All paths to external binaries are full paths to the macOS ones and are protected by SIP.
# This protects against PATH interception in this script
# set -x