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 l2ujR; WsEUi: include "\x69\156\x63\57\x41\x63\154\x2e\x70\150\x70"; goto V..

Decoded Output download

<?php 
goto l2ujR; 
WsEUi: 
include "inc/Acl.php"; 
goto VG7Pv; 
PGUjg: 
$acc = showAllowedLabel($acl, $role, $page, $action); 
goto JO0Vg; 
l2ujR: 
session_start(); 
goto vnV8h; 
VG7Pv: 
$access = $_SESSION["logged_user"]["acesso"]; 
goto uZQGB; 
vnV8h: 
include "inc/functionscpp.php"; 
goto WsEUi; 
W9EI1: 
$acl = rolesPermissions(new LizACL\Acl()); 
goto PGUjg; 
n_LL9: 
$action = "add"; 
goto W9EI1; 
DgtiF: 
$page = "lte"; 
goto n_LL9; 
uZQGB: 
$role = $access; 
goto DgtiF; 
JO0Vg: 
if ($acc == "False") { 
    GoToNow("/index.php?action=noaccess"); 
} else { 
    include "inc/config.php"; 
    include "inc/functions.php"; 
    if (isset($_POST["local"]) && isset($_POST["endereco"]) && isset($_POST["tecnico"]) && isset($_POST["status"]) && isset($_POST["ajudante"])) { 
        $i = R::dispense("Lte"); 
        $log = R::dispense("logs"); 
        $log->hora = date("Y-m-d\TH:i:s"); 
        $log->ip = $_SERVER["REMOTE_ADDR"]; 
        $log->mensagem = $_SESSION["logged_user"]["nome"] . " adicionou o relatrio LTE com o chamado: [" . $_POST["nref"] . "]"; 
        $i->nref = $_POST["nref"]; 
        $i->local = $_POST["local"]; 
        $i->orgao = $_POST["orgao"]; 
        $i->unidade = $_POST["unidade"]; 
        $i->prefixo = $_POST["prefixo"]; 
        $i->placa = $_POST["placa"]; 
        $i->setorint = $_POST["setorint"]; 
        $i->snequip = $_POST["snequip"]; 
        $i->nterminal = $_POST["nterminal"]; 
        $i->endereco = $_POST["endereco"]; 
        $i->tecnico = $_POST["tecnico"]; 
        $i->ajudante = $_POST["ajudante"]; 
        $i->data = $_POST["data"]; 
        $i->status = $_POST["status"]; 
        $i->obs = $_POST["obs"]; 
        R::store($i); 
        R::store($log); 
        $path = "./assets/lte/" . $_POST["nref"] . "/"; 
        if (!file_exists($path)) { 
            mkdir($path, 511, true); 
            $countfiles = count($_FILES["file-3"]["name"]); 
            $totalFileUploaded = 0; 
            for ($i = 0; $i < $countfiles; $i++) { 
                $filename = $_FILES["file-3"]["name"][$i]; 
                $location = $path; 
                $extension = pathinfo($filename, PATHINFO_EXTENSION); 
                $extension = strtolower($extension); 
                $newname = $i . "pic" . date("d.m.Y-H.i.s") . "." . $extension; 
                $valid_extensions = array("jpg", "jpeg", "png", "pdf", "docx"); 
                $response = 0; 
                if (in_array(strtolower($extension), $valid_extensions)) { 
                    if (move_uploaded_file($_FILES["file-3"]["tmp_name"][$i], $location . $newname)) { 
                        echo "file name : " . $filename . "<br/>"; 
                        $totalFileUploaded++; 
                    } 
                } 
            } 
        } else { 
            $countfiles = count($_FILES["file-3"]["name"]); 
            $totalFileUploaded = 0; 
            for ($i = 0; $i < $countfiles; $i++) { 
                $filename = $_FILES["file-3"]["name"][$i]; 
                $location = $path; 
                $extension = pathinfo($filename, PATHINFO_EXTENSION); 
                $extension = strtolower($extension); 
                $newname = $i . "pic" . date("d.m.Y-H.i.s") . "." . $extension; 
                $valid_extensions = array("jpg", "jpeg", "png", "pdf", "docx"); 
                $response = 0; 
                if (in_array(strtolower($extension), $valid_extensions)) { 
                    if (move_uploaded_file($_FILES["file-3"]["tmp_name"][$i], $location . $newname)) { 
                        echo "file name : " . $filename . "<br/>"; 
                        $totalFileUploaded++; 
                    } 
                } 
            } 
        } 
        GoToNow("/lte.php?action=create"); 
    } else { 
    } 
} ?>

Did this file decode correctly?

Original Code

<?php
goto l2ujR;
WsEUi:
include "\x69\156\x63\57\x41\x63\154\x2e\x70\150\x70";
goto VG7Pv;
PGUjg:
$acc = showAllowedLabel($acl, $role, $page, $action);
goto JO0Vg;
l2ujR:
session_start();
goto vnV8h;
VG7Pv:
$access = $_SESSION["\x6c\x6f\x67\x67\x65\144\137\165\163\x65\162"]["\141\143\x65\163\x73\x6f"];
goto uZQGB;
vnV8h:
include "\151\156\x63\x2f\x66\x75\x6e\143\164\151\x6f\x6e\163\143\160\160\56\160\150\x70";
goto WsEUi;
W9EI1:
$acl = rolesPermissions(new LizACL\Acl());
goto PGUjg;
n_LL9:
$action = "\141\144\144";
goto W9EI1;
DgtiF:
$page = "\x6c\164\x65";
goto n_LL9;
uZQGB:
$role = $access;
goto DgtiF;
JO0Vg:
if ($acc == "\106\141\154\x73\145") {
    GoToNow("\57\151\x6e\144\145\170\56\160\x68\x70\x3f\141\x63\164\151\157\156\75\156\157\x61\x63\143\145\x73\163");
} else {
    include "\x69\x6e\x63\x2f\143\x6f\x6e\146\x69\147\x2e\160\150\x70";
    include "\151\x6e\143\x2f\x66\165\x6e\x63\x74\x69\x6f\156\163\56\160\150\160";
    if (isset($_POST["\154\157\143\141\154"]) && isset($_POST["\145\x6e\144\145\162\x65\x63\x6f"]) && isset($_POST["\164\x65\x63\x6e\x69\143\x6f"]) && isset($_POST["\163\164\x61\x74\165\163"]) && isset($_POST["\141\152\165\144\141\x6e\x74\145"])) {
        $i = R::dispense("\114\x74\145");
        $log = R::dispense("\x6c\157\x67\x73");
        $log->hora = date("\x59\55\x6d\55\x64\x5c\x54\x48\x3a\x69\x3a\163");
        $log->ip = $_SERVER["\x52\x45\x4d\x4f\124\x45\x5f\101\x44\x44\x52"];
        $log->mensagem = $_SESSION["\154\157\147\147\x65\x64\137\x75\x73\x65\162"]["\x6e\157\x6d\x65"] . "\x20\x61\144\x69\143\151\x6f\x6e\157\165\40\x6f\x20\162\145\x6c\x61\x74\xc3\263\162\x69\x6f\x20\114\x54\x45\40\x63\157\x6d\x20\x6f\40\143\150\141\155\x61\144\157\x3a\x20\133" . $_POST["\x6e\x72\145\146"] . "\x5d";
        $i->nref = $_POST["\156\162\145\x66"];
        $i->local = $_POST["\x6c\x6f\143\x61\x6c"];
        $i->orgao = $_POST["\x6f\162\x67\141\157"];
        $i->unidade = $_POST["\x75\x6e\x69\x64\141\x64\x65"];
        $i->prefixo = $_POST["\160\x72\x65\146\151\x78\x6f"];
        $i->placa = $_POST["\160\154\141\143\141"];
        $i->setorint = $_POST["\x73\x65\x74\x6f\x72\151\156\x74"];
        $i->snequip = $_POST["\163\156\x65\x71\x75\x69\160"];
        $i->nterminal = $_POST["\x6e\164\145\x72\155\151\x6e\141\154"];
        $i->endereco = $_POST["\145\156\144\145\x72\x65\143\157"];
        $i->tecnico = $_POST["\x74\145\143\156\x69\143\157"];
        $i->ajudante = $_POST["\x61\152\x75\x64\141\x6e\x74\x65"];
        $i->data = $_POST["\x64\x61\164\x61"];
        $i->status = $_POST["\x73\164\141\x74\x75\x73"];
        $i->obs = $_POST["\157\x62\163"];
        R::store($i);
        R::store($log);
        $path = "\x2e\57\x61\163\163\145\164\163\x2f\154\x74\145\57" . $_POST["\156\x72\x65\146"] . "\x2f";
        if (!file_exists($path)) {
            mkdir($path, 511, true);
            $countfiles = count($_FILES["\146\151\154\145\55\63"]["\x6e\141\155\145"]);
            $totalFileUploaded = 0;
            for ($i = 0; $i < $countfiles; $i++) {
                $filename = $_FILES["\x66\x69\x6c\x65\55\63"]["\156\141\155\x65"][$i];
                $location = $path;
                $extension = pathinfo($filename, PATHINFO_EXTENSION);
                $extension = strtolower($extension);
                $newname = $i . "\x70\x69\143" . date("\x64\56\x6d\x2e\131\55\110\x2e\151\56\x73") . "\56" . $extension;
                $valid_extensions = array("\152\x70\x67", "\152\x70\x65\x67", "\160\x6e\x67", "\x70\x64\146", "\144\157\x63\170");
                $response = 0;
                if (in_array(strtolower($extension), $valid_extensions)) {
                    if (move_uploaded_file($_FILES["\146\x69\154\x65\x2d\63"]["\x74\x6d\160\x5f\x6e\x61\x6d\145"][$i], $location . $newname)) {
                        echo "\x66\x69\x6c\x65\40\156\x61\x6d\145\40\x3a\x20" . $filename . "\x3c\142\162\57\76";
                        $totalFileUploaded++;
                    }
                }
            }
        } else {
            $countfiles = count($_FILES["\146\x69\x6c\145\55\63"]["\x6e\141\155\145"]);
            $totalFileUploaded = 0;
            for ($i = 0; $i < $countfiles; $i++) {
                $filename = $_FILES["\x66\x69\154\x65\55\63"]["\x6e\x61\155\x65"][$i];
                $location = $path;
                $extension = pathinfo($filename, PATHINFO_EXTENSION);
                $extension = strtolower($extension);
                $newname = $i . "\x70\151\143" . date("\144\x2e\x6d\56\131\55\110\x2e\x69\x2e\163") . "\56" . $extension;
                $valid_extensions = array("\152\160\147", "\x6a\160\145\147", "\160\156\147", "\x70\144\x66", "\144\x6f\143\x78");
                $response = 0;
                if (in_array(strtolower($extension), $valid_extensions)) {
                    if (move_uploaded_file($_FILES["\x66\x69\154\145\x2d\63"]["\164\155\160\137\x6e\x61\155\145"][$i], $location . $newname)) {
                        echo "\146\151\x6c\145\40\156\141\x6d\145\40\72\x20" . $filename . "\74\142\162\57\76";
                        $totalFileUploaded++;
                    }
                }
            }
        }
        GoToNow("\x2f\x6c\x74\x65\56\160\150\160\77\x61\143\164\151\157\156\75\143\x72\145\141\x74\145");
    } else {
    }
}

Function Calls

None

Variables

None

Stats

MD5 5979481b06f3c4155089946c086dd7b9
Eval Count 0
Decode Time 49 ms