Skip to content

Instantly share code, notes, and snippets.

@ssp
Last active April 19, 2016 20:21
Show Gist options
  • Save ssp/d57ae349b8b0f54c2634 to your computer and use it in GitHub Desktop.
Save ssp/d57ae349b8b0f54c2634 to your computer and use it in GitHub Desktop.
One-liner to check all running processes on Mac OS X with codesign.
#!/usr/bin/env sh
ps aux | cut -b 16-22 | sed -e "s/\s*//" | grep -v PID | sort -n | xargs -n 1 -IA sh -c "codesign --verify --deep A"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment