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 | |
# 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 |