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 date_default_timezone_set('Europe/Warsaw'); $current_time = date('Y-m-d H:i:s'); ..

Decoded Output download

<?php 
date_default_timezone_set('Europe/Warsaw'); 
$current_time = date('Y-m-d H:i:s'); 
 
$flag = ''; 
 
if (isset($_GET['938c2a3dfa19c1a46821bed04912db62f9fdb134737804213cd67099482dc640'])) { 
    if (file_exists('flag.txt')) { 
        $flag = file_get_contents('flag.txt'); 
    } 
} 
?> 
 
<!DOCTYPE html> 
<html lang="en"> 
<head> 
    <meta charset="UTF-8"> 
    <meta name="viewport" content="width=device-width, initial-scale=1.0"> 
    <title>Current time</title> 
    <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet"> 
</head> 
<body class="d-flex justify-content-center align-items-center" style="height: 100vh; background-color: #f8f9fa;"> 
 
    <div class="text-center"> 
        <h1>Current Time in Warsaw (Europe/Warsaw)</h1> 
        <p class="display-4"><?php echo $current_time; ?></p> 
 
        <?php if ($flag): ?> 
            <p class="lead"><?php echo $flag; ?></p> 
        <?php endif; ?> 
    </div> 
 
    <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script> 
    <script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script> 
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> 
</body> 
</html> 

Did this file decode correctly?

Original Code

<?php
date_default_timezone_set('Europe/Warsaw');
$current_time = date('Y-m-d H:i:s');

$flag = '';

if (isset($_GET['938c2a3dfa19c1a46821bed04912db62f9fdb134737804213cd67099482dc640'])) {
    if (file_exists('flag.txt')) {
        $flag = file_get_contents('flag.txt');
    }
}
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Current time</title>
    <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
</head>
<body class="d-flex justify-content-center align-items-center" style="height: 100vh; background-color: #f8f9fa;">

    <div class="text-center">
        <h1>Current Time in Warsaw (Europe/Warsaw)</h1>
        <p class="display-4"><?php echo $current_time; ?></p>

        <?php if ($flag): ?>
            <p class="lead"><?php echo $flag; ?></p>
        <?php endif; ?>
    </div>

    <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</body>
</html>

Function Calls

date_default_timezone_set 1

Variables

None

Stats

MD5 a1cb94f0b735406f83b9ec87b034432e
Eval Count 0
Decode Time 62 ms