Created
May 24, 2022 23:20
-
-
Save jarkkojs/9d92c5f0d637448843c44668e64a6696 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
cat /proc/kallsyms | \ | |
sed -n '/call_meta__/p' | \ | |
sed 's/.*call_meta__\(.*\)/\1/g; s/\(.*\)/SYS_\1 \1/; 1i #include <sys/syscall.h>' | \ | |
gcc -E -P - | \ | |
grep -v 'SYS_' | \ | |
sort -n | \ | |
uniq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment