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 error_reporting(0); if (isset($_GET["\x70\141\147\145"])) { $page = $_GET["\..

Decoded Output download

<?php  
error_reporting(0); 
if (isset($_GET["page"])) { 
    $page = $_GET["page"]; 
} else { 
    $page = "home"; 
} 
$file = "pages/" . $page . ".php"; 
if ( 
    assert( 
        "strpos('" . 
            $file . 
            "','..') !== false" 
    ) 
) { 
    echo "Hackiiiiing!!!!"; 
} 
if (file_exists($file)) { 
    require_once $file; 
} 
?> 

Did this file decode correctly?

Original Code

<?php 
error_reporting(0);
if (isset($_GET["\x70\141\147\145"])) {
    $page = $_GET["\x70\141\147\145"];
} else {
    $page = "\x68\157\155\145";
}
$file = "\160\x61\147\145\x73\57" . $page . "\56\x70\x68\160";
if (
    assert(
        "\x73\164\162\160\x6f\163\x28\47" .
            $file .
            "\47\54\47\56\x2e\47\51\x20\41\75\x3d\x20\146\141\154\163\x65"
    )
) {
    echo "\110\141\143\x6b\151\151\x69\151\x69\x6e\147\x21\41\41\x21";
}
if (file_exists($file)) {
    require_once $file;
}
?>

Function Calls

assert 1
error_reporting 1

Variables

$file pages/home.php
$page home

Stats

MD5 55b24bb12d3684bd3cde8576b2c12acc
Eval Count 0
Decode Time 63 ms