Last active
June 25, 2024 09:58
-
-
Save dreness/fd6a704591b6ab268902cd948c008a8f to your computer and use it in GitHub Desktop.
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/zsh | |
TARGET=$1 | |
# to be used as an egrep pattern | |
SYMS='getprogname|NSGetArgv|NSGetArgc|optarg|optind|getopt|getopt_long' | |
sudo find ${TARGET} -type f -perm +111 \! -name "*.dylib" | \ | |
while read f ; do | |
sudo nm -u ${f} 2> /dev/null | \ | |
egrep ${SYMS} > /dev/null && echo ${f} | |
done |
Author
dreness
commented
Sep 30, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment