14 lines
278 B
Bash
Executable File
14 lines
278 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [[ $EUID -ne 0 ]]; then
|
|
echo "[!] This script must be run as root"
|
|
exit 1
|
|
fi
|
|
|
|
FILE=/sys/kernel/debug/syscall_counter
|
|
if [[ -f $FILE ]]; then
|
|
watch -t -n 0.001 "cat ${FILE} | sort -nr -k1"
|
|
else
|
|
echo "[!] $FILE not found, is the module loaded?"
|
|
fi
|