Prv8 Shell
Server : Apache
System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64
User : matalashes ( 1004)
PHP Version : 8.1.29
Disable Function : NONE
Directory :  /usr/share/systemtap/tapset/linux/s390/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/systemtap/tapset/linux/s390/sysc_sysctl32.stp
# sysctl _____________________________________________________
#
# long sys32_sysctl(struct __sysctl_args32 __user *args)
#

@define _SYSCALL_SYSCTL32_NAME
%(
	name = "sysctl"
%)

@define _SYSCALL_SYSCTL32_ARGSTR
%(
	argstr = sprintf("%p", args)
%)

probe syscall.sysctl32 = dw_syscall.sysctl32 !, nd_syscall.sysctl32 ? {}
probe syscall.sysctl32.return = dw_syscall.sysctl32.return !,
                                nd_syscall.sysctl32.return ? {}

# dw_sysctl32 _____________________________________________________

probe dw_syscall.sysctl32 = kernel.function("sys32_sysctl") ?
{
	@_SYSCALL_SYSCTL32_NAME
	args = $args
	@_SYSCALL_SYSCTL32_ARGSTR
}
probe dw_syscall.sysctl32.return = kernel.function("sys32_sysctl").return ?
{
	@_SYSCALL_SYSCTL32_NAME
	@SYSC_RETVALSTR($return)
}

# nd_sysctl32 _____________________________________________________

probe nd_syscall.sysctl32 = kprobe.function("sys32_sysctl") ?
{
	@_SYSCALL_SYSCTL32_NAME
	asmlinkage()
	args = pointer_arg(1)
	@_SYSCALL_SYSCTL32_ARGSTR
}
probe nd_syscall.sysctl32.return = kprobe.function("sys32_sysctl").return ?
{
	@_SYSCALL_SYSCTL32_NAME
	@SYSC_RETVALSTR(returnval())
}

haha - 2025