Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php require __DIR__ . '/secrets.php'; if (!isset($_GET['start'])){ show_source(__..
Decoded Output download
<?php
require __DIR__ . '/secrets.php';
if (!isset($_GET['start'])){
show_source(__FILE__);
exit;
}
function auth($username, $password, $realm='Administration') {
if( $_SERVER['PHP_AUTH_USER'] != $username ||
$_SERVER['PHP_AUTH_PW'] != $password ) {
header("WWW-Authenticate: Basic realm=\"$realm\"");
header('HTTP/1.0 401 Unauthorized');
echo 'Access Denied';
exit;
}
}
auth('admin', '0password');
secret_redirect();
?>
Did this file decode correctly?
Original Code
<?php
require __DIR__ . '/secrets.php';
if (!isset($_GET['start'])){
show_source(__FILE__);
exit;
}
function auth($username, $password, $realm='Administration') {
if( $_SERVER['PHP_AUTH_USER'] != $username ||
$_SERVER['PHP_AUTH_PW'] != $password ) {
header("WWW-Authenticate: Basic realm=\"$realm\"");
header('HTTP/1.0 401 Unauthorized');
echo 'Access Denied';
exit;
}
}
auth('admin', '0password');
secret_redirect();
?>
Function Calls
None |
Stats
MD5 | f1f656835054350031390c3ffcfdc61c |
Eval Count | 0 |
Decode Time | 30 ms |