Advertisement
Guest User

agito1155

a guest
Jul 27th, 2012
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.90 KB | None | 0 0
  1. <?php  $T0898B22730D57AFCD394D8E4889ECE4A = php_sapi_name() === 'cli';  if(!$T0898B22730D57AFCD394D8E4889ECE4A) {   echo "<html><head><title>Attention!</title></head>\n";   echo "<body><br /><br /><center>\n";   echo "<h1>Warning!</h1>\n";   echo "This bot is meant to be used as php CLI script!<br />\n";   echo "More information:<br />\n";   echo "<a href=\"http://www.google.com/search?hl=en&q=php+cli+windows\" target=\"_blank\">http://www.google.com/search?hl=en&q=php+cli+windows</a><br />\n";   echo "You cannot use this on a webserver.<br />\n";   echo "</center></body></html>\n";   exit;  }    set_time_limit(0);  if(function_exists('date_default_timezone_set')) @date_default_timezone_set("Europe/Paris");  @error_reporting(E_ALL & ~E_NOTICE | E_STRICT);    if(!T1F5BE6B9A4D5B3D11B4AB1DC78A6A36A()) {   TECF8A82E85FBCBE07306270F9C1B08D1("Please check your internet connection");   exit;  }  TECF8A82E85FBCBE07306270F9C1B08D1("Creating directories");  if(!is_dir("battles/")) mkdir("battles/", 0777);  if(!is_dir("logs/")) mkdir("logs/", 0777);  if(!is_dir("cache/")) mkdir("cache/", 0777);  TECF8A82E85FBCBE07306270F9C1B08D1("Downloading files");    $T3A311FF8B8F78D17F31045BB51219543 = curl_init();  curl_setopt($T3A311FF8B8F78D17F31045BB51219543, CURLOPT_URL,"http://segadora.org/api/update.php");  curl_setopt($T3A311FF8B8F78D17F31045BB51219543, CURLOPT_POSTFIELDS,'');  curl_setopt($T3A311FF8B8F78D17F31045BB51219543, CURLOPT_POST, 0);  curl_setopt($T3A311FF8B8F78D17F31045BB51219543, CURLOPT_SSL_VERIFYHOST, 2);  curl_setopt($T3A311FF8B8F78D17F31045BB51219543, CURLOPT_USERAGENT, "RockyDownload");  curl_setopt($T3A311FF8B8F78D17F31045BB51219543, CURLOPT_RETURNTRANSFER, 1);  curl_setopt($T3A311FF8B8F78D17F31045BB51219543, CURLOPT_FOLLOWLOCATION, 1);  curl_setopt($T3A311FF8B8F78D17F31045BB51219543, CURLOPT_SSL_VERIFYPEER, FALSE);   $TB4A88417B3D0170D754C647C30B7216A=curl_exec($T3A311FF8B8F78D17F31045BB51219543);    $T45B963397AA40D4A0063E0D85E4FE7A1 = @json_decode($TB4A88417B3D0170D754C647C30B7216A, true);    if(!is_array($T45B963397AA40D4A0063E0D85E4FE7A1) || count($T45B963397AA40D4A0063E0D85E4FE7A1) < 1) {   TECF8A82E85FBCBE07306270F9C1B08D1("An error has accured, please notify the webmaster about this.");   exit;  } else {   foreach($T45B963397AA40D4A0063E0D85E4FE7A1 as $T8C7DD922AD47494FC02C388E12C00EAC => $T572D4E421E5E6B9BC11D815E8A027112) {    TECF8A82E85FBCBE07306270F9C1B08D1("Downloading ".$T8C7DD922AD47494FC02C388E12C00EAC);      curl_setopt($T3A311FF8B8F78D17F31045BB51219543, CURLOPT_URL,$T572D4E421E5E6B9BC11D815E8A027112);    curl_setopt($T3A311FF8B8F78D17F31045BB51219543, CURLOPT_POSTFIELDS,'');    curl_setopt($T3A311FF8B8F78D17F31045BB51219543, CURLOPT_USERAGENT, "RockyDownload");    curl_setopt($T3A311FF8B8F78D17F31045BB51219543, CURLOPT_RETURNTRANSFER, 1);    $TB4A88417B3D0170D754C647C30B7216A=curl_exec($T3A311FF8B8F78D17F31045BB51219543);      $T0666F0ACDEED38D4CD9084ADE1739498 = @fopen($T8C7DD922AD47494FC02C388E12C00EAC, 'w');    if(@fwrite($T0666F0ACDEED38D4CD9084ADE1739498, $TB4A88417B3D0170D754C647C30B7216A) === FALSE) {     TECF8A82E85FBCBE07306270F9C1B08D1("Could not write update to ".$T8C7DD922AD47494FC02C388E12C00EAC);    }    @fclose($T0666F0ACDEED38D4CD9084ADE1739498);   }   TECF8A82E85FBCBE07306270F9C1B08D1("All done");   TECF8A82E85FBCBE07306270F9C1B08D1("");  }  curl_close ($T3A311FF8B8F78D17F31045BB51219543);      function T1F5BE6B9A4D5B3D11B4AB1DC78A6A36A() {   $TD879976F6408E086F01AD51EB67D4715 = @fsockopen("segadora.org", 80, $T70106D0D821513F45702B7D25664AB7C, $T809B1ABE3F111FD3BB1A54C62706129F, 10);   if($TD879976F6408E086F01AD51EB67D4715) {    return true;   } else {    return false;   }  }  function TECF8A82E85FBCBE07306270F9C1B08D1($TC7824F3D4D5F7B2F22D034758C1E9454="",$T85A422CA8625A1F6325C2E044756B4E3=true) {   if($T85A422CA8625A1F6325C2E044756B4E3)   $TC7824F3D4D5F7B2F22D034758C1E9454 = $TC7824F3D4D5F7B2F22D034758C1E9454."\n";     fwrite(STDOUT, $TC7824F3D4D5F7B2F22D034758C1E9454);  }  ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement