Software: Apache. PHP/5.5.15 uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 SYSTEM Safe-mode: OFF (not secure) E:\xampp\xampp\htdocs\ drwxrwxrwx |
Viewing file: auntentica.txt (1.18 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | <?php $valid_passwords = array ("Ambiente" => "2011"); $valid_users = array_keys($valid_passwords); $user = $_SERVER['PHP_AUTH_USER']; $pass = $_SERVER['PHP_AUTH_PW']; $validated = (in_array($user, $valid_users)) && ($pass == $valid_passwords[$user]); if (!$validated) { header('WWW-Authenticate: Basic realm="Ingrese el usuario para acceder a la EXTRANET de la Secretaria Distrital de Ambiente"'); header('HTTP/1.0 401 Unauthorized'); die ("Not authorized"); } /*if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) { $uri = 'https://'; } else { $uri = 'http://'; } $uri .= $_SERVER['HTTP_HOST']; header('Location: '.$uri.'/xampp/'); exit; */ header("Location:php/reqintranet.php"); //header("Location:sig/authenticate.php"); /*$IpAddress=$_SERVER["REMOTE_ADDR"]; if ($IpAddress=='201.245.192.250'){ header("location:http://201.245.192.252/sig/authenticate.php"); } else{ header("location:http://192.168.10.3/php/reqintranet.php"); } /*if ($IpAddress=='201.245.192.250') header("location:http://201.245.192.252/sig/authenticate.php"); else header("location:http://192.168.10.3/php/reqintranet.php"); */ ?> |
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0156 ]-- |