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 GvHdb; rOb1F: $role = $access; goto OkfQw; czmJ2: include "\151\156\143\x..
Decoded Output download
<?php
goto GvHdb;
rOb1F:
$role = $access;
goto OkfQw;
czmJ2:
include "inc/functionscpp.php";
goto YxtH8;
OkfQw:
$page = "dadosreports";
goto lBFdn;
lBFdn:
$action = "show";
goto adTEx;
eyiSi:
$acc = showAllowedLabel($acl, $role, $page, $action);
goto XRKvu;
UcRSk:
$access = $_SESSION["logged_user"]["acesso"];
goto rOb1F;
adTEx:
$acl = rolesPermissions(new LizACL\Acl());
goto eyiSi;
YxtH8:
include "inc/Acl.php";
goto UcRSk;
GvHdb:
session_start();
goto czmJ2;
XRKvu:
$superint = $_GET["superint"];
$tipo = $_GET["cham"];
$resp = $_GET["resp"];
$data1 = $_GET["data1"];
$data2 = $_GET["data2"];
require_once "connect.php";
if ($superint == "*" && $tipo == "*" && $resp == "*") {
$stmt = $conn->prepare("SELECT *, COUNT(superint) AS catnumbers FROM chamados WHERE (dataat>= {$data1} AND dataat<= {$data2}) GROUP BY superint");
$stmt->execute();
$results = $stmt->fetchAll(PDO::FETCH_OBJ);
echo json_encode($results);
} elseif ($superint == "*" && $tipo != "*" && $resp == "*") {
$stmt = $conn->prepare("SELECT *, COUNT(superint) AS catnumbers FROM chamados WHERE tiposerv={$tipo} AND (dataat>= {$data1} AND dataat<= {$data2}) GROUP BY superint");
$stmt->execute();
$results = $stmt->fetchAll(PDO::FETCH_OBJ);
echo json_encode($results);
} else {
if ($superint != "*" && $tipo == "*" && $resp != "*") {
$stmt = $conn->prepare("SELECT *, COUNT(superint) AS catnumbers FROM chamados WHERE superint={$superint} AND resp={$resp} AND (dataat>= {$data1} AND dataat<= {$data2}) GROUP BY superint");
$stmt->execute();
$results = $stmt->fetchAll(PDO::FETCH_OBJ);
echo json_encode($results);
} elseif ($superint == "*" && $tipo != "*" && $resp != "*") {
$stmt = $conn->prepare("SELECT *, COUNT(superint) AS catnumbers FROM chamados WHERE tiposerv={$tipo} AND resp={$resp} AND (dataat>= {$data1} AND dataat<= {$data2}) GROUP BY superint");
$stmt->execute();
$results = $stmt->fetchAll(PDO::FETCH_OBJ);
echo json_encode($results);
} elseif ($superint != "*" && $tipo == "*" && $resp == "*") {
$stmt = $conn->prepare("SELECT *, COUNT(superint) AS catnumbers FROM chamados WHERE superint={$superint} AND (dataat>= {$data1} AND dataat<= {$data2}) GROUP BY superint");
$stmt->execute();
$results = $stmt->fetchAll(PDO::FETCH_OBJ);
echo json_encode($results);
} elseif ($superint == "*" && $tipo == "*" && $resp != "*") {
$stmt = $conn->prepare("SELECT *, COUNT(superint) AS catnumbers FROM chamados WHERE resp={$resp} AND (dataat>= {$data1} AND dataat<= {$data2}) GROUP BY superint");
$stmt->execute();
$results = $stmt->fetchAll(PDO::FETCH_OBJ);
echo json_encode($results);
} else {
$stmt = $conn->prepare("SELECT *, COUNT({$superint}) AS catnumbers FROM chamados WHERE superint={$superint} AND resp={$resp} AND tiposerv={$tipo} AND (dataat>= {$data1} AND dataat<= {$data2}) GROUP BY {$superint}");
$stmt->execute();
$results = $stmt->fetchAll(PDO::FETCH_OBJ);
echo json_encode($results);
}
}
goto mpi7u;
mpi7u: ?>
Did this file decode correctly?
Original Code
<?php
goto GvHdb;
rOb1F:
$role = $access;
goto OkfQw;
czmJ2:
include "\151\156\143\x2f\x66\165\156\143\164\x69\x6f\156\x73\143\x70\x70\56\x70\150\x70";
goto YxtH8;
OkfQw:
$page = "\144\141\144\157\x73\x72\x65\x70\x6f\x72\x74\163";
goto lBFdn;
lBFdn:
$action = "\x73\150\157\x77";
goto adTEx;
eyiSi:
$acc = showAllowedLabel($acl, $role, $page, $action);
goto XRKvu;
UcRSk:
$access = $_SESSION["\x6c\x6f\147\x67\x65\x64\x5f\165\163\x65\x72"]["\x61\x63\x65\163\163\157"];
goto rOb1F;
adTEx:
$acl = rolesPermissions(new LizACL\Acl());
goto eyiSi;
YxtH8:
include "\x69\156\x63\57\101\143\154\x2e\160\x68\160";
goto UcRSk;
GvHdb:
session_start();
goto czmJ2;
XRKvu:
$superint = $_GET["\x73\x75\x70\x65\x72\x69\x6e\164"];
$tipo = $_GET["\x63\x68\141\155"];
$resp = $_GET["\x72\145\x73\x70"];
$data1 = $_GET["\144\x61\164\141\x31"];
$data2 = $_GET["\x64\141\x74\141\x32"];
require_once "\143\x6f\156\156\145\143\x74\x2e\x70\150\160";
if ($superint == "\52" && $tipo == "\52" && $resp == "\x2a") {
$stmt = $conn->prepare("\x53\105\x4c\105\103\124\x20\x2a\x2c\40\103\x4f\x55\x4e\124\50\x73\165\160\145\162\151\156\x74\51\x20\x41\123\40\x63\141\164\156\165\155\x62\145\x72\x73\40\106\x52\x4f\115\40\143\x68\141\x6d\141\144\x6f\x73\40\x57\110\x45\122\105\x20\50\144\141\164\x61\x61\x74\x3e\x3d\40{$data1}\x20\x41\x4e\x44\40\x64\x61\164\x61\141\164\74\75\x20{$data2}\x29\x20\107\x52\117\x55\120\40\102\x59\40\163\x75\x70\145\162\x69\x6e\164");
$stmt->execute();
$results = $stmt->fetchAll(PDO::FETCH_OBJ);
echo json_encode($results);
} elseif ($superint == "\x2a" && $tipo != "\52" && $resp == "\52") {
$stmt = $conn->prepare("\123\105\114\x45\x43\124\40\x2a\54\40\103\117\x55\116\124\50\163\x75\x70\145\162\x69\156\164\x29\40\x41\123\40\143\141\x74\156\165\x6d\x62\145\x72\x73\40\106\122\x4f\115\x20\143\x68\x61\155\141\x64\157\x73\40\127\x48\105\x52\105\40\164\x69\x70\x6f\x73\x65\162\x76\75{$tipo}\40\x41\x4e\x44\40\x28\x64\141\164\141\x61\164\x3e\x3d\40{$data1}\x20\101\x4e\x44\x20\144\x61\164\x61\141\x74\x3c\x3d\40{$data2}\51\40\x47\122\x4f\x55\x50\x20\102\131\x20\x73\165\160\x65\162\x69\156\164");
$stmt->execute();
$results = $stmt->fetchAll(PDO::FETCH_OBJ);
echo json_encode($results);
} else {
if ($superint != "\52" && $tipo == "\x2a" && $resp != "\52") {
$stmt = $conn->prepare("\123\105\114\x45\103\x54\x20\x2a\54\x20\x43\x4f\x55\116\124\50\163\x75\x70\x65\x72\x69\156\x74\51\40\101\x53\40\143\141\164\156\165\x6d\142\145\162\163\40\x46\x52\117\x4d\x20\143\x68\x61\x6d\141\x64\x6f\163\40\127\110\x45\122\105\x20\x73\165\x70\145\162\151\156\x74\x3d{$superint}\40\101\x4e\x44\40\x72\145\x73\160\x3d{$resp}\40\x41\116\x44\x20\x28\x64\x61\x74\141\141\164\x3e\75\x20{$data1}\x20\101\116\x44\x20\144\x61\x74\x61\x61\164\x3c\75\x20{$data2}\x29\x20\107\122\x4f\x55\x50\x20\x42\131\40\x73\165\x70\x65\162\151\x6e\164");
$stmt->execute();
$results = $stmt->fetchAll(PDO::FETCH_OBJ);
echo json_encode($results);
} elseif ($superint == "\x2a" && $tipo != "\x2a" && $resp != "\52") {
$stmt = $conn->prepare("\x53\x45\x4c\x45\x43\x54\x20\52\54\40\103\x4f\125\x4e\124\50\x73\165\160\x65\162\x69\156\164\51\40\x41\123\40\x63\x61\x74\156\x75\155\142\x65\x72\x73\40\x46\122\117\x4d\40\x63\x68\141\x6d\x61\144\x6f\x73\x20\127\110\105\x52\105\40\x74\151\160\x6f\x73\145\162\166\x3d{$tipo}\40\x41\x4e\104\x20\162\145\163\160\x3d{$resp}\x20\x41\116\x44\x20\50\x64\141\164\x61\x61\164\76\x3d\40{$data1}\40\x41\116\104\x20\144\141\164\x61\x61\164\74\x3d\x20{$data2}\51\x20\x47\122\x4f\125\x50\x20\x42\x59\40\163\x75\160\145\x72\151\156\x74");
$stmt->execute();
$results = $stmt->fetchAll(PDO::FETCH_OBJ);
echo json_encode($results);
} elseif ($superint != "\52" && $tipo == "\x2a" && $resp == "\x2a") {
$stmt = $conn->prepare("\123\x45\114\x45\x43\x54\40\52\x2c\x20\103\x4f\x55\x4e\124\x28\x73\165\160\145\162\151\156\x74\x29\40\x41\123\x20\143\x61\164\x6e\x75\155\142\x65\x72\x73\x20\106\122\117\x4d\40\143\x68\x61\155\141\144\x6f\x73\x20\x57\110\x45\x52\105\40\163\x75\x70\x65\162\151\x6e\x74\75{$superint}\x20\x41\x4e\x44\x20\50\x64\x61\164\x61\141\164\x3e\x3d\x20{$data1}\x20\x41\x4e\104\x20\144\141\164\141\141\164\x3c\x3d\x20{$data2}\x29\x20\107\122\117\125\x50\x20\x42\131\40\163\165\x70\x65\162\151\x6e\x74");
$stmt->execute();
$results = $stmt->fetchAll(PDO::FETCH_OBJ);
echo json_encode($results);
} elseif ($superint == "\x2a" && $tipo == "\x2a" && $resp != "\x2a") {
$stmt = $conn->prepare("\x53\105\114\x45\103\124\x20\52\x2c\40\x43\117\125\x4e\x54\x28\x73\165\160\x65\x72\151\156\x74\x29\40\x41\123\x20\143\x61\x74\156\165\155\x62\x65\162\163\x20\x46\122\117\115\x20\x63\150\x61\155\x61\x64\157\163\40\x57\x48\x45\122\105\40\x72\145\x73\160\x3d{$resp}\40\x41\x4e\x44\40\x28\144\141\x74\x61\141\164\76\75\x20{$data1}\40\101\116\104\40\144\x61\x74\141\x61\164\74\75\x20{$data2}\51\40\x47\122\117\x55\x50\40\102\x59\40\163\x75\160\145\162\x69\x6e\164");
$stmt->execute();
$results = $stmt->fetchAll(PDO::FETCH_OBJ);
echo json_encode($results);
} else {
$stmt = $conn->prepare("\x53\x45\x4c\x45\x43\124\40\x2a\54\x20\103\x4f\x55\x4e\x54\x28{$superint}\x29\40\x41\x53\x20\x63\x61\x74\156\x75\x6d\x62\145\162\163\x20\x46\x52\x4f\115\40\143\150\141\155\141\x64\x6f\x73\40\127\x48\x45\122\105\40\163\165\x70\x65\162\151\156\164\75{$superint}\x20\101\x4e\x44\40\x72\145\163\x70\75{$resp}\x20\x41\x4e\x44\40\164\x69\160\x6f\163\x65\x72\166\75{$tipo}\x20\101\116\104\40\50\x64\141\164\141\141\164\x3e\75\x20{$data1}\40\x41\116\x44\40\144\x61\x74\141\141\x74\74\x3d\x20{$data2}\51\40\x47\x52\117\125\120\40\102\x59\40{$superint}");
$stmt->execute();
$results = $stmt->fetchAll(PDO::FETCH_OBJ);
echo json_encode($results);
}
}
goto mpi7u;
mpi7u: ?>
Function Calls
None |
Stats
MD5 | c20f1bae3c05947323adb5f255d2bb08 |
Eval Count | 0 |
Decode Time | 42 ms |