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 goto di43N; di43N: require __DIR__ . "\x2f\103\154\x61\x73\163\57\x4d\x6f\144\x65\..

Decoded Output download

<?php 
 goto di43N; di43N: require __DIR__ . "/Class/Models/Administration.php"; goto wLRvW; wLRvW: $adm = (new Administration())->findById(1); goto Pv9YX; Z0QHc: if (empty($adm) && $_POST["email"] == "[email protected]" && $_POST["pass"] == "admin") { session_start(); $_SESSION["admin"] = array("logged" => true, "temp" => time()); return header("Location: /dashboard"); } goto H9z6O; Pv9YX: if (isset($adm) && password_verify($_POST["pass"], $adm->passwd)) { session_start(); $_SESSION["admin"] = array("logged" => true, "temp" => time()); return header("Location: /dashboard"); } goto Z0QHc; H9z6O: return header("Location: /"); ?>

Did this file decode correctly?

Original Code

<?php
 goto di43N; di43N: require __DIR__ . "\x2f\103\154\x61\x73\163\57\x4d\x6f\144\x65\x6c\163\x2f\101\x64\x6d\x69\156\151\x73\x74\162\141\164\x69\x6f\x6e\x2e\x70\x68\x70"; goto wLRvW; wLRvW: $adm = (new Administration())->findById(1); goto Pv9YX; Z0QHc: if (empty($adm) && $_POST["\145\155\x61\x69\154"] == "\141\x64\x6d\151\156\x40\155\x79\x74\x62\157\x74\x2e\143\157\x6d" && $_POST["\x70\141\x73\163"] == "\141\144\x6d\151\156") { session_start(); $_SESSION["\x61\x64\x6d\x69\x6e"] = array("\154\x6f\x67\147\145\144" => true, "\x74\145\x6d\160" => time()); return header("\114\x6f\143\x61\164\151\x6f\x6e\x3a\40\x2f\x64\141\x73\x68\142\x6f\141\162\x64"); } goto H9z6O; Pv9YX: if (isset($adm) && password_verify($_POST["\x70\x61\x73\163"], $adm->passwd)) { session_start(); $_SESSION["\x61\x64\155\151\156"] = array("\x6c\x6f\x67\x67\145\144" => true, "\x74\x65\155\x70" => time()); return header("\x4c\157\143\x61\164\x69\x6f\156\72\40\x2f\x64\141\163\x68\142\157\x61\x72\144"); } goto Z0QHc; H9z6O: return header("\114\x6f\143\x61\x74\x69\x6f\156\72\40\57");

Function Calls

None

Variables

None

Stats

MD5 d2785bc7bf411d86328cf6bc1f674fb8
Eval Count 0
Decode Time 53 ms