Linux ns8.secondary29.go.th 2.6.32-754.28.1.el6.x86_64 #1 SMP Wed Mar 11 18:38:45 UTC 2020 x86_64
Apache/2.2.15 (CentOS)
: 122.154.134.11 | : 122.154.134.9
Cant Read [ /etc/named.conf ]
5.6.40
apache
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
systemtap /
tapset /
linux /
[ HOME SHELL ]
Name
Size
Permission
Action
arm
[ DIR ]
drwxr-xr-x
arm64
[ DIR ]
drwxr-xr-x
i386
[ DIR ]
drwxr-xr-x
ia64
[ DIR ]
drwxr-xr-x
powerpc
[ DIR ]
drwxr-xr-x
s390
[ DIR ]
drwxr-xr-x
x86_64
[ DIR ]
drwxr-xr-x
atomic.stp
1.52
KB
-rw-r--r--
aux_syscalls.stp
139.14
KB
-rw-r--r--
context-caller.stp
3.07
KB
-rw-r--r--
context-envvar.stp
1.71
KB
-rw-r--r--
context-symbols.stp
11.98
KB
-rw-r--r--
context-unwind.stp
2.81
KB
-rw-r--r--
context.stp
17.76
KB
-rw-r--r--
context.stpm
125
B
-rw-r--r--
conversions-guru.stp
5.56
KB
-rw-r--r--
conversions.stp
10.92
KB
-rw-r--r--
ctime.stp
5.32
KB
-rw-r--r--
dentry.stp
9.79
KB
-rw-r--r--
dev.stp
1.79
KB
-rw-r--r--
endian.stp
602
B
-rw-r--r--
guru-delay.stp
1.2
KB
-rw-r--r--
guru-signal.stp
1.07
KB
-rw-r--r--
inet.stp
1.42
KB
-rw-r--r--
inet_sock.stp
1.31
KB
-rw-r--r--
ioblock.stp
12.55
KB
-rw-r--r--
ioscheduler.stp
11.74
KB
-rw-r--r--
ip.stp
5.23
KB
-rw-r--r--
ipmib-filter-default.stp
965
B
-rw-r--r--
ipmib.stp
12.55
KB
-rw-r--r--
irq.stp
5
KB
-rw-r--r--
json.stp
8.92
KB
-rw-r--r--
json.stpm
6.11
KB
-rw-r--r--
kprocess.stp
4.38
KB
-rw-r--r--
kretprobe.stp
2.1
KB
-rw-r--r--
linuxmib-filter-default.stp
876
B
-rw-r--r--
linuxmib.stp
3.38
KB
-rw-r--r--
loadavg.stp
1.87
KB
-rw-r--r--
logging.stp
2.08
KB
-rw-r--r--
memory.stp
17.77
KB
-rw-r--r--
nd_syscalls.stp
138.14
KB
-rw-r--r--
nd_syscalls2.stp
161.75
KB
-rw-r--r--
netfilter.stp
31.56
KB
-rw-r--r--
networking.stp
7.17
KB
-rw-r--r--
nfs.stp
37.86
KB
-rw-r--r--
nfs_proc.stp
55.3
KB
-rw-r--r--
nfs_proc.stpm
1.18
KB
-rw-r--r--
nfsd.stp
39.97
KB
-rw-r--r--
nfsderrno.stp
11.7
KB
-rw-r--r--
panic.stp
1.07
KB
-rw-r--r--
perf.stp
4.5
KB
-rw-r--r--
proc_mem.stp
11.49
KB
-rw-r--r--
pstrace.stp
773
B
-rw-r--r--
rcu.stp
917
B
-rw-r--r--
rlimit.stp
1.35
KB
-rw-r--r--
rpc.stp
37.94
KB
-rw-r--r--
scheduler.stp
11.33
KB
-rw-r--r--
scsi.stp
9.46
KB
-rw-r--r--
signal.stp
28.35
KB
-rw-r--r--
socket.stp
33.41
KB
-rw-r--r--
syscalls.stp
136.01
KB
-rw-r--r--
syscalls.stpm
11.28
KB
-rw-r--r--
syscalls2.stp
158.1
KB
-rw-r--r--
syscalls_cfg_trunc.stp
111
B
-rw-r--r--
target_set.stp
1.71
KB
-rw-r--r--
task.stp
19.07
KB
-rw-r--r--
task.stpm
157
B
-rw-r--r--
task_ancestry.stp
1.57
KB
-rw-r--r--
task_time.stp
7.45
KB
-rw-r--r--
tcp.stp
21.98
KB
-rw-r--r--
tcpmib-filter-default.stp
885
B
-rw-r--r--
tcpmib.stp
10.29
KB
-rw-r--r--
timestamp.stp
1.72
KB
-rw-r--r--
timestamp_gtod.stp
1.59
KB
-rw-r--r--
timestamp_monotonic.stp
5.12
KB
-rw-r--r--
tty.stp
7.15
KB
-rw-r--r--
tzinfo.stp
803
B
-rw-r--r--
ucontext-symbols.stp
8.62
KB
-rw-r--r--
ucontext-unwind.stp
3.64
KB
-rw-r--r--
ucontext.stp
2.18
KB
-rw-r--r--
udp.stp
5.73
KB
-rw-r--r--
utrace.stp
1.33
KB
-rw-r--r--
vfs.stp
26.83
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : context.stp
// context tapset // Copyright (C) 2005-2014 Red Hat Inc. // Copyright (C) 2006 Intel Corporation. // // This file is part of systemtap, and is free software. You can // redistribute it and/or modify it under the terms of the GNU General // Public License (GPL); either version 2, or (at your option) any // later version. // // NB: tapsetdescription is in tapset/context.stp /** * sfunction execname - Returns the execname of a target process (or group of processes) * * Description: Returns the execname of a target process (or group of processes). */ function execname:string () %{ /* pure */ /* unprivileged */ /* stable */ strlcpy (STAP_RETVALUE, current->comm, MAXSTRINGLEN); %} /** * sfunction pid - Returns the ID of a target process * * Description: This function returns the ID of a target process. */ function pid:long () %{ /* pure */ /* unprivileged */ /* stable */ STAP_RETVALUE = current->tgid; %} /** * sfunction ns_pid - Returns the ID of a target process as seen in a pid namespace * * Description: This function returns the ID of a target process as seen in * the target pid namespace. */ function ns_pid:long () %{ /* pure */ /* unprivileged */ /* stable */ int64_t rc = from_target_pid_ns(current, PID); if (rc < 0) STAP_ERROR ("cannot resolve id in namespace"); else STAP_RETURN (rc); %} /** * sfunction tid - Returns the thread ID of a target process * * Description: This function returns the thread ID of the target process. */ function tid:long () %{ /* pure */ /* unprivileged */ /* stable */ STAP_RETVALUE = current->pid; %} /** * sfunction ns_tid - Returns the thread ID of a target process as seen in a pid namespace * * Description: This function returns the thread ID of a target process as seen * in the target pid namespace if provided, or the stap process namespace. */ function ns_tid:long () %{ /* pure */ /* unprivileged */ /* stable */ int64_t rc = from_target_pid_ns(current, TID); if (rc < 0) STAP_ERROR ("cannot resolve id in namespace"); else STAP_RETURN (rc); %} /** * sfunction ppid - Returns the process ID of a target process's parent process * * Description: This function return the process ID of the target proccess's parent process. */ function ppid:long() %{ /* pure */ /* unprivileged */ /* stable */ #if defined(STAPCONF_REAL_PARENT) STAP_RETVALUE = current->real_parent->tgid; #else STAP_RETVALUE = current->parent->tgid; #endif %} /** * sfunction ns_ppid - Returns the process ID of a target process's parent process as seen in a pid namespace * * Description: This function return the process ID of the target proccess's parent process as seen in the target pid namespace if provided, or the stap process namespace. */ function ns_ppid:long() %{ /* pure */ /* unprivileged */ /* stable */ int64_t rc = from_target_pid_ns(current->parent, PID); if (rc < 0) STAP_ERROR ("cannot resolve id in namespace"); else STAP_RETURN (rc); %} /** * sfunction pgrp - Returns the process group ID of the current process * * Description: This function returns the process group ID of the * current process. */ function pgrp:long () %{ /* pure */ /* unprivileged */ /* stable */ #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 24) struct signal_struct *ss = kread( &(current->signal) ); STAP_RETVALUE = kread ( &(ss->pgrp) ); CATCH_DEREF_FAULT(); #else STAP_RETVALUE = task_pgrp_nr_ns(current, &init_pid_ns); #endif %} /** * sfunction ns_pgrp - Returns the process group ID of the current process as seen in a pid namespace * * Description: This function returns the process group ID of the * current process as seen in the target pid namespace if provided, or the stap process namespace. */ function ns_pgrp:long () %{ /* pure */ /* unprivileged */ /* stable */ int64_t rc = from_target_pid_ns(current, PGRP); if (rc < 0) STAP_ERROR ("cannot resolve id in namespace"); else STAP_RETURN (rc); %} /** * sfunction sid - Returns the session ID of the current process * * Description: The session ID of a process is the process group ID * of the session leader. Session ID is stored in the signal_struct * since Kernel 2.6.0. */ function sid:long () %{ /* pure */ /* unprivileged */ /* stable */ #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 24) struct signal_struct *ss = kread( &(current->signal) ); STAP_RETVALUE = kread ( &(ss->session) ); CATCH_DEREF_FAULT(); #else STAP_RETVALUE = task_session_nr_ns(current, &init_pid_ns); #endif %} /** * sfunction ns_sid - Returns the session ID of the current process as seen in a pid namespace * * Description: The namespace-aware session ID of a process is the process group ID * of the session leader as seen in the target pid namespace if provided, or the stap process namespace. Session ID is stored in the signal_struct * since Kernel 2.6.0. */ function ns_sid:long () %{ /* pure */ /* unprivileged */ /* stable */ int64_t rc = from_target_pid_ns(current, SID); if (rc < 0) STAP_ERROR ("cannot resolve id in namespace"); else STAP_RETURN (rc); %} /** * sfunction pexecname - Returns the execname of a target process's parent process * * Description: This function returns the execname of a target * process's parent procces. */ function pexecname:string () %{ /* pure */ /* unprivileged */ /* stable */ #if defined(STAPCONF_REAL_PARENT) strlcpy (STAP_RETVALUE, current->real_parent->comm, MAXSTRINGLEN); #else strlcpy (STAP_RETVALUE, current->parent->comm, MAXSTRINGLEN); #endif %} /** * sfunction gid - Returns the group ID of a target process * * Description: This function returns the group ID of a target process. */ function gid:long () %{ /* pure */ /* unprivileged */ /* stable */ #ifdef STAPCONF_TASK_UID STAP_RETVALUE = current->gid; #else #if defined(CONFIG_USER_NS) || (LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0)) STAP_RETVALUE = from_kgid_munged(current_user_ns(), current_gid()); #else STAP_RETVALUE = current_gid(); #endif #endif %} /** * sfunction ns_gid - Returns the group ID of a target process as seen in a user namespace * * Description: This function returns the group ID of a target process as seen in the target user namespace if provided, or the stap process namespace. */ function ns_gid:long () %{ /* pure */ /* unprivileged */ /* stable */ int64_t rc = from_target_user_ns(current, GID); if (rc < 0) STAP_ERROR ("cannot resolve id in namespace"); else STAP_RETURN (rc); %} /** * sfunction egid - Returns the effective gid of a target process * * Description: This function returns the effective gid of a target process */ function egid:long () %{ /* pure */ /* unprivileged */ /* stable */ #ifdef STAPCONF_TASK_UID STAP_RETVALUE = current->egid; #else #if defined(CONFIG_USER_NS) || (LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0)) STAP_RETVALUE = from_kgid_munged(current_user_ns(), current_egid()); #else STAP_RETVALUE = current_egid(); #endif #endif %} /** * sfunction ns_egid - Returns the effective gid of a target process as seen in a user namespace * * Description: This function returns the effective gid of a target process as seen in the target user namespace if provided, or the stap process namespace */ function ns_egid:long () %{ /* pure */ /* unprivileged */ /* stable */ int64_t rc = from_target_user_ns(current, EGID); if (rc < 0) STAP_ERROR ("cannot resolve id in namespace"); else STAP_RETURN (rc); %} /** * sfunction uid - Returns the user ID of a target process * * Description: This function returns the user ID of the target process. */ function uid:long () %{ /* pure */ /* unprivileged */ /* stable */ #ifdef STAPCONF_TASK_UID STAP_RETVALUE = current->uid; #else #if defined(CONFIG_USER_NS) || (LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0)) STAP_RETVALUE = from_kuid_munged(current_user_ns(), current_uid()); #else STAP_RETVALUE = current_uid(); #endif #endif %} /** * sfunction ns_uid - Returns the user ID of a target process as seen in a user namespace * * Description: This function returns the user ID of the target process as seen in the target user namespace if provided, or the stap process namespace. */ function ns_uid:long () %{ /* pure */ /* unprivileged */ /* stable */ int64_t rc = from_target_user_ns(current, UID); if (rc < 0) STAP_ERROR ("cannot resolve id in namespace"); else STAP_RETURN (rc); %} /** * sfunction euid - Return the effective uid of a target process * * Description: Returns the effective user ID of the target process. */ function euid:long () %{ /* pure */ /* unprivileged */ /* stable */ #ifdef STAPCONF_TASK_UID STAP_RETVALUE = current->euid; #else #if defined(CONFIG_USER_NS) || (LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0)) STAP_RETVALUE = from_kuid_munged(&init_user_ns, current_euid()); #else STAP_RETVALUE = current_euid(); #endif #endif %} /** * sfunction ns_euid - Returns the effective user ID of a target process as seen in a user namespace * * Description: This function returns the effective user ID of the target process as seen in the target user namespace if provided, or the stap process namespace. */ function ns_euid:long () %{ /* pure */ /* unprivileged */ /* stable */ int64_t rc = from_target_user_ns(current, EUID); if (rc < 0) STAP_ERROR ("cannot resolve id in namespace"); else STAP_RETURN (rc); %} /** * sfunction is_myproc - Determines if the current probe point has occurred in the user's own process * * Description: This function returns 1 if the current probe * point has occurred in the user's own process. */ function is_myproc:long () %{ /* pure */ /* unprivileged */ /* stable */ STAP_RETVALUE = is_myproc(); %} %( systemtap_v <= "1.4" %? /** * sfunction cpuid - Returns the current cpu number * * Description: This function returns the current cpu number. * Deprecated in SystemTap 1.4 and removed in SystemTap 1.5. */ function cpuid:long () %{ /* pure */ STAP_RETVALUE = smp_processor_id(); %} %) /** * sfunction cpu - Returns the current cpu number * * Description: This function returns the current cpu number. */ function cpu:long () %{ /* pure */ /* unprivileged */ /* stable */ STAP_RETVALUE = smp_processor_id(); %} /** * sfunction registers_valid - Determines validity of register() and u_register() in current context * * Description: This function returns 1 if register() and u_register() * can be used in the current context, or 0 otherwise. * For example, registers_valid() returns 0 * when called from a begin or end probe. */ function registers_valid:long () %{ /* pure */ /* unprivileged */ /* stable */ STAP_RETVALUE = (c->user_mode_p ? (CONTEXT->uregs != NULL) : (CONTEXT->kregs != NULL)); %} /** * sfunction user_mode - Determines if probe point occurs in user-mode * * Return 1 if the probe point occurred in user-mode. */ function user_mode:long () %{ /* pure */ /* unprivileged */ /* stable */ STAP_RETVALUE = CONTEXT->user_mode_p ? 1 : 0; %} /** * sfunction is_return - Whether the current probe context is a return probe * * Description: Returns 1 if the current probe context is a return probe, * returns 0 otherwise. */ function is_return:long () %{ /* pure */ /* stable */ if (CONTEXT->probe_type == stp_probe_type_kretprobe || CONTEXT->probe_type == stp_probe_type_uretprobe) STAP_RETVALUE = 1; else STAP_RETVALUE = 0; %} /** * sfunction target - Return the process ID of the target process * * Description: This function returns the process ID of the target * process. This is useful in conjunction with the -x PID or * -c CMD command-line options to stap. An example of its use is * to create scripts that filter on a specific process. * * -x <pid> * target() returns the pid specified by -x * * -c <command> * target() returns the pid for the executed command specified by -c */ function target:long () %{ /* pure */ /* unprivileged */ /* stable */ STAP_RETVALUE = _stp_target; %} /** * sfunction module_name - The module name of the current script * * Description: This function returns the name of the stap module. * Either generated randomly (stap_[0-9a-f]+_[0-9a-f]+) * or set by stap -m <module_name>. */ function module_name:string () %{ /* pure */ /* unprivileged */ /* stable */ strlcpy(STAP_RETVALUE, THIS_MODULE->name, MAXSTRINGLEN); %} /** * sfunction stp_pid - The process id of the stapio process * * Description: This function returns the process id of the * stapio process that launched this script. There could be * other SystemTap scripts and stapio processes running on * the system. */ function stp_pid:long () %{ /* pure */ /* stable */ STAP_RETVALUE = _stp_pid; %} /** * sfunction remote_id - The index of this instance in a remote execution. * * Description: This function returns a number 0..N, which is the unique * index of this particular script execution from a swarm of * "stap --remote A --remote B ..." runs, and is the same number * "stap --remote-prefix" would print. The function returns -1 if the * script was not launched with "stap --remote", or if the remote * staprun/stapsh are older than version 1.7. */ function remote_id:long () { return %{ /* pure */ /* unprivileged */ _stp_remote_id %} } /** * sfunction remote_uri - The name of this instance in a remote execution. * * Description: This function returns the remote host used to invoke * this particular script execution from a swarm of "stap --remote" runs. * It may not be unique among the swarm. * The function returns an empty string if the script was not launched with * "stap --remote". */ function remote_uri:string () { return %{ /* string */ /* pure */ /* unprivileged */ _stp_remote_uri %} } /** * sfunction stack_size - Return the size of the kernel stack * * Description: This function returns the size of the kernel stack. */ function stack_size:long () %{ /* pure */ /* stable */ STAP_RETVALUE = THREAD_SIZE; %} /** * sfunction stack_used - Returns the amount of kernel stack used * * Description: This function determines how many bytes are * currently used in the kernel stack. */ function stack_used:long () %{ /* pure */ /* stable */ char a; STAP_RETVALUE = THREAD_SIZE - ((long)&a & (THREAD_SIZE-1)); %} /** * sfunction stack_unused - Returns the amount of kernel stack currently available * * Description: This function determines how many bytes are * currently available in the kernel stack. */ function stack_unused:long () %{ /* pure */ /* stable */ char a; STAP_RETVALUE = (long)&a & (THREAD_SIZE-1); %} /** * sfunction addr - Address of the current probe point. * * Description: Returns the instruction pointer from the current probe's * register state. Not all probe types have registers though, in which case * zero is returned. The returned address is suitable for use with functions * like symname() and symdata(). */ function addr:long () %{ /* pure */ /* stable */ if (CONTEXT->user_mode_p) { STAP_RETVALUE = (intptr_t)(CONTEXT->uregs ? REG_IP(CONTEXT->uregs) : 0); } else { STAP_RETVALUE = (intptr_t)(CONTEXT->kregs ? REG_IP(CONTEXT->kregs) : 0); } %} /** * sfunction uaddr - User space address of current running task * * Description: Returns the address in userspace that the current * task was at when the probe occurred. When the current running task * isn't a user space thread, or the address cannot be found, zero * is returned. Can be used to see where the current task is combined * with usymname() or usymdata(). Often the task will be in the VDSO * where it entered the kernel. */ function uaddr:long () %{ /* pure */ /* myproc-unprivileged */ /* stable */ struct pt_regs *uregs; if (CONTEXT->user_mode_p) uregs = CONTEXT->uregs; else uregs = _stp_current_pt_regs(); if (uregs) STAP_RETVALUE = (int64_t) REG_IP(uregs); else STAP_RETVALUE = 0; %} /** * sfunction cmdline_args - Fetch command line arguments from current process * @n: First argument to get (zero is normally the program itself) * @m: Last argument to get (or minus one for all arguments after n) * @delim: String to use to separate arguments when more than one. * * Description: Returns arguments from the current process starting * with argument number n, up to argument m. If there are less than n * arguments, or the arguments cannot be retrieved from the current * process, the empty string is returned. If m is smaller than n then * all arguments starting from argument n are returned. Argument zero * is traditionally the command itself. */ function cmdline_args:string(n:long, m:long, delim:string) { __args = ""; __mm = task_current()->mm; if (__mm == 0) return ""; __arg_start = __mm->arg_start; __arg_end = __mm->arg_end; if (__arg_start == 0 || __arg_end == 0) return ""; for (__nr=0; (__arg_start < __arg_end) && // still string content left? (m<0 || __nr<=m); // caller still interested? __nr++) { __arg = user_string2(__arg_start, ""); // argv[__nr], unquoted __arg_start += strlen(__arg) + 1; // skip over for next iteration if (__nr == n) // caller starting to get interested? __args = __arg; else if (__nr > n) // caller still interested? { if (__arg == "") __args .= delim . "\"\"" else __args .= delim . __arg; } } return __args; } /** * sfunction cmdline_arg - Fetch a command line argument * @n: Argument to get (zero is the program itself) * * Description: Returns argument the requested argument from the * current process or the empty string when there are not that many * arguments or there is a problem retrieving the argument. Argument * zero is traditionally the command itself. */ function cmdline_arg:string(n:long) { return cmdline_args(n, n, ""); } /** * sfunction cmdline_str - Fetch all command line arguments from current process * * Description: Returns all arguments from the current process * delimited by spaces. Returns the empty string when the arguments * cannot be retrieved. */ function cmdline_str:string() { return cmdline_args(0, -1, " "); }
Close