Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
check.php <?php if ($_SERVER['REQUEST_METHOD'] === 'POST') { $flag = "TBCTF{REDACT..
Decoded Output download
check.php
<?php
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$flag = "TBCTF{REDACTED}";
$hash = "0e901030118301310371748512009101";
$salt = "c719abc318a4d1ac";
if (isset($_POST['magic'])) {
$input_magic = $_POST['magic'];
if (md5($salt . $input_magic) == $hash) {
echo "Here is your flag - " . $flag;
} else {
echo "Incorrect magic word :'( )";
}
}
}
?>
Did this file decode correctly?
Original Code
check.php
<?php
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$flag = "TBCTF{REDACTED}";
$hash = "0e901030118301310371748512009101";
$salt = "c719abc318a4d1ac";
if (isset($_POST['magic'])) {
$input_magic = $_POST['magic'];
if (md5($salt . $input_magic) == $hash) {
echo "Here is your flag - " . $flag;
} else {
echo "Incorrect magic word :'( )";
}
}
}
?>
Function Calls
None |
Stats
MD5 | 4b9e40e1e81ef4e9030955ef3e6058a2 |
Eval Count | 0 |
Decode Time | 56 ms |