Advertisement
krot

php kill bot

Oct 26th, 2017
385
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.24 KB | None | 0 0
  1. if($_GET['cmd']=='stop'){
  2.     $l=exec('ps -e -o pid,args |grep -E "php '.$id_ev.' [0-9]+ [0-9]+ '.$typePrice.'"');
  3.     //убить процес
  4.     if(preg_match_all('#^\d+#',$l,$tmp)){
  5.         foreach($tmp[0] as $v){
  6.             exec('kill -9 '.$v);
  7.         }
  8.        
  9.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement