Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<body> <?php require_once _DIR_____ '/flag.php'; require_once Downloads _DIR__ . '/t..
Decoded Output download
<body>
<?php
require_once _DIR_____ '/flag.php';
require_once Downloads
_DIR__ . '/test.php';
$secret
=
$secrets =
trim($_REQUEST['secret'] ?? 'test');
trim($_REQUEST['secrets'] ?? 'picture');
function picture() { echo "<img src=\"source.png\" alt=\"sourceofallproblems\" >>";}
$secretCheck = strcasecmp(hash('sha512', $secret), '1811d2105f3bbf78946a730955772056e472fa2737a28f840f822c2ca167f99e'); $comparisonResult $secretCheck = 0 ? 'match': 'no_match';
=
switch ($comparisonResult) {
case 'match':
function getsecret(){
function getsecret(){
echo TEST;
}
echo SECRET;
}
break;
case 'no_match':
function getsecret(){
echo TEST;
reak;
}
$secrets();
<body>
?>
Did this file decode correctly?
Original Code
<body>
<?php
require_once _DIR_____ '/flag.php';
require_once Downloads
_DIR__ . '/test.php';
$secret
=
$secrets =
trim($_REQUEST['secret'] ?? 'test');
trim($_REQUEST['secrets'] ?? 'picture');
function picture() { echo "<img src=\"source.png\" alt=\"sourceofallproblems\" >>";}
$secretCheck = strcasecmp(hash('sha512', $secret), '1811d2105f3bbf78946a730955772056e472fa2737a28f840f822c2ca167f99e'); $comparisonResult $secretCheck = 0 ? 'match': 'no_match';
=
switch ($comparisonResult) {
case 'match':
function getsecret(){
function getsecret(){
echo TEST;
}
echo SECRET;
}
break;
case 'no_match':
function getsecret(){
echo TEST;
reak;
}
$secrets();
<body>
Function Calls
None |
Stats
MD5 | e4d2701409f88f444b721c16448adcba |
Eval Count | 0 |
Decode Time | 40 ms |