krot

php kill bot

Oct 26th, 2017
173
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     }
RAW Paste Data