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 :  /proc/17567/root/usr/share/systemtap/examples/general/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/17567/root/usr/share/systemtap/examples/general/watchdog.stp
#!/usr/bin/stap
/*
 * watchdog.stp
 * usage: stap watchdog.stp start_event stop_event time_ms
 */

global active, count

function trigger(p:long) { 
  /* may want to change the action here */
  event=sprintf("/usr/bin/pstack %d", p);
  system(event);
}

probe $1 { active[pid()]=1 }
probe $2 { delete active[pid()]; delete count[pid()]}

probe timer.ms($3) {
  foreach (p in active) {
    count[p]++
    if (count[p] == 2) 
      trigger(p)
  }
}

haha - 2025