One Hat Cyber Team
Your IP :
216.73.216.14
Server IP :
194.44.31.54
Server :
Linux zen.imath.kiev.ua 4.18.0-553.77.1.el8_10.x86_64 #1 SMP Fri Oct 3 14:30:23 UTC 2025 x86_64
Server Software :
Apache/2.4.37 (Rocky Linux) OpenSSL/1.1.1k
PHP Version :
5.6.40
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
systemtap
/
examples
/
process
/
View File Name :
errsnoop.stp
#!/usr/bin/stap # errsnoop.stp # Copyright (C) 2009-2018 Red Hat, Inc., Eugene Teo <eteo@redhat.com> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. # # attack "stupid userspace" apps # global error%[6000], trace // about 18.5MB kernel RAM probe syscall.* { # assume syscall don't nest trace[tid()] = argstr } probe syscall.*.return { errno = errno_p(retval) if (errno != 0) { argstr = trace[tid()] delete trace[tid()] errstr = sprintf("%3d/%s", errno, errno_str(errno)) error[sprintf("%-13s %17s %15s %5d %s", errstr, name, execname(), pid(), argstr)] <<< 1 } } probe timer.s(%( $# > 0 %? $1 %: 5 %)) { ansi_clear_screen() printf("%4s %-13s %17s %15s %5s %s\n", "HITS", "ERRSTR", "SYSCALL", "PROCESS", "PID", "ARGSTR") foreach([bigstr] in error- limit %( $# > 1 %? $2 %: 20 %)) printf("%4d %s\n", @count(error[bigstr]), bigstr) delete error }