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 PztVE; ePVnM: define("\x4d\101\130\137\x53\105\123\123\111\117\x4e\137\124\x..

Decoded Output download

<?php 
goto PztVE; 
ePVnM: 
define("MAX_SESSION_TIEMPO", 60 * 60); 
goto T5Owl; 
fQPHZ: 
if (strpos($_SERVER["HTTP_USER_AGENT"], "Mobile")) { 
    $movil = 1; 
} else { 
    $movil = 0; 
} 
goto OmO42; 
J6E83: 
$dbname = "u752765750_cgr"; 
goto PUbT7; 
PztVE: 
if (strstr($_SERVER["HTTP_ACCEPT_ENCODING"], "gzip")) { 
    if (extension_loaded("zlib")) { 
        $do_gzip_compress = TRUE; 
        ob_start(); 
        ob_implicit_flush(0); 
    } 
} 
goto UrtRs; 
iVOL4: 
$envio_correo = 0; 
goto TvyKj; 
HuCAL: 
$horario = 0; 
goto t5yCI; 
IYcBH: 
$dbpass = "b7Q9TJXc!3Ex#W&M"; 
goto J6E83; 
gKDQP: 
$ejeconta = date("Y"); 
goto PmbnO; 
lc0qL: 
session_set_cookie_params(0, "/", "owl-tech.net", 0); 
goto ePVnM; 
XZr30: 
if ($horario == 1) { 
    @session_destroy(); 
    header("location: horario.html"); 
    die; 
} 
goto eORi6; 
M2Uh3: 
$cambio_factura = "2021-07-01"; 
goto Ptd5L; 
OmO42: 
$cambio_reporte = "2020-08-01"; 
goto M2Uh3; 
mDrzU: 
$dbhost = "localhost:3307"; 
goto tChsT; 
Mu0BN: 
if (stripos($_SERVER["PHP_SELF"], "config.php") !== false) { 
    header("location: index.php"); 
    die; 
} 
goto mDrzU; 
PUbT7: 
$dbuconta = "u752765750_conta"; 
goto XT6xO; 
FZpgC: 
define("ME", "USD"); 
goto fQPHZ; 
tChsT: 
$dbuname = "u752765750_cgr"; 
goto IYcBH; 
TvyKj: 
$huso = "America/La_Paz"; 
goto OFzVR; 
T5Owl: 
if (!stripos($_SERVER["PHP_SELF"], "login.php") && !stripos($_SERVER["PHP_SELF"], "selecciona_acceso.php") && isset($_SESSION["ULTIMA_ACTIVIDAD"]) && time() - $_SESSION["ULTIMA_ACTIVIDAD"] > MAX_SESSION_TIEMPO) { 
    include "db/db.php"; 
    include "funciones.php"; 
    if (isset($_SESSION["usuario"])) { 
        $evento = utf8_encode("SE HA CERRADO LA SESION DE: " . $_SESSION["usuario"] . ", POR INACTIVIDAD"); 
    } else { 
        $evento = utf8_encode("SE HA CERRADO LA SESION POR INACTIVIDAD"); 
    } 
    registra_log($_SESSION["usuario"], $evento, $desde, $db); 
    $_SESSION = array(); 
    if (ini_get("session.use_cookies")) { 
        $params = session_get_cookie_params(); 
        setcookie(session_name(), '', time() - MAX_SESSION_TIEMPO, $params["path"], $params["domain"], $params["secure"], $params["httponly"]); 
    } 
    @session_destroy(); 
    include "fin.php"; 
    die; 
} 
goto dlyPK; 
t5yCI: 
if (date("w") === 0) { 
    $horario = 1; 
} 
goto yyrX_; 
vDa7u: 
$meses = array("Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"); 
goto iVOL4; 
Egu1m: 
$mantenimiento = 0; 
goto jY0M0; 
H9ggv: 
$fec_reg_ope = date("Y-m-d H:i:s"); 
goto HuCAL; 
yyrX_: 
if (date("G") < 7 && date("G") > 19 && ($_SESSION["id_rol"] < 3 && $_SESSION["id_rol"] != 5 && $_SESSION["id_rol"] != 7 && $_SESSION["id_rol"] != 9)) { 
    $horario = 1; 
} 
goto XZr30; 
Zvla0: 
if (!stripos($_SERVER["PHP_SELF"], "lee_ws.php") && !stripos($_SERVER["PHP_SELF"], "webservice.php") && !stripos($_SERVER["PHP_SELF"], "webcons.php") && !stripos($_SERVER["PHP_SELF"], "wspr.php") && !stripos($_SERVER["PHP_SELF"], "wsa.php") && !stripos($_SERVER["PHP_SELF"], "website.php")) { 
    if (!strpos($_SERVER["HTTP_USER_AGENT"], "Chrome") || strpos($_SERVER["HTTP_USER_AGENT"], "Edge")) { 
        header("location: no_chrome.html"); 
        die; 
    } 
} 
goto Mu0BN; 
XT6xO: 
$dbpconta = "Jd%XOJ#lArDYJk35"; 
goto nLVFr; 
OFzVR: 
if (!isset($_SESSION)) { 
    session_start(); 
} else { 
    session_destroy(); 
    session_start(); 
} 
goto ElLFR; 
ltAcR: 
$dias = array("Domingo", "Lunes", "Martes", "Mi&eacute;rcoles", "Jueves", "Viernes", "S&aacute;bado"); 
goto vDa7u; 
UrtRs: 
$PHP_SELF = $_SERVER["PHP_SELF"]; 
goto Egu1m; 
JWXJQ: 
define("MAX_TIEMPO_PASSWORD", 7884000); 
goto Eh9r_; 
nLVFr: 
$dbnconta = "u752765750_conta"; 
goto gKDQP; 
g71w2: 
if (ini_get("session.use_trans_sid") != 0) { 
    ini_set("session.use_trans_sid", "0"); 
} 
goto lc0qL; 
jY0M0: 
if ($mantenimiento == 1) { 
    header("location: mantenimiento.html"); 
    die; 
} 
goto Zvla0; 
ElLFR: 
if (ini_get("session.use_only_cookies") != 1) { 
    ini_set("session.use_only_cookies", "1"); 
} 
goto g71w2; 
Eh9r_: 
define("MN", "BOB"); 
goto FZpgC; 
Ptd5L: 
$oninput = "oninput="if(this.value.length>this.maxLength) this.value = this.value.slice(0,this.maxLength);""; 
goto H9ggv; 
PmbnO: 
$dbtype = "mysql"; 
goto ltAcR; 
dlyPK: 
$_SESSION["ULTIMA_ACTIVIDAD"] = time(); 
goto JWXJQ; 
eORi6: ?>

Did this file decode correctly?

Original Code

<?php
goto PztVE;
ePVnM:
define("\x4d\101\130\137\x53\105\123\123\111\117\x4e\137\124\x49\x45\115\120\x4f", 60 * 60);
goto T5Owl;
fQPHZ:
if (strpos($_SERVER["\110\x54\x54\120\x5f\x55\x53\x45\122\137\101\107\105\116\x54"], "\x4d\157\x62\151\154\x65")) {
    $movil = 1;
} else {
    $movil = 0;
}
goto OmO42;
J6E83:
$dbname = "\165\67\x35\x32\x37\x36\x35\x37\x35\60\137\143\x67\x72";
goto PUbT7;
PztVE:
if (strstr($_SERVER["\x48\124\x54\120\137\101\103\103\105\120\124\137\105\x4e\x43\x4f\104\x49\x4e\107"], "\147\172\151\160")) {
    if (extension_loaded("\172\x6c\151\142")) {
        $do_gzip_compress = TRUE;
        ob_start();
        ob_implicit_flush(0);
    }
}
goto UrtRs;
iVOL4:
$envio_correo = 0;
goto TvyKj;
HuCAL:
$horario = 0;
goto t5yCI;
IYcBH:
$dbpass = "\x62\67\x51\x39\x54\112\130\143\x21\x33\x45\x78\x23\x57\46\115";
goto J6E83;
gKDQP:
$ejeconta = date("\131");
goto PmbnO;
lc0qL:
session_set_cookie_params(0, "\57", "\x6f\167\154\x2d\x74\145\x63\x68\x2e\156\x65\164", 0);
goto ePVnM;
XZr30:
if ($horario == 1) {
    @session_destroy();
    header("\154\157\143\141\164\151\157\x6e\x3a\x20\x68\x6f\x72\141\x72\151\157\x2e\x68\164\155\x6c");
    die;
}
goto eORi6;
M2Uh3:
$cambio_factura = "\62\x30\62\x31\55\x30\67\55\x30\61";
goto Ptd5L;
OmO42:
$cambio_reporte = "\x32\60\x32\60\x2d\60\70\x2d\x30\x31";
goto M2Uh3;
mDrzU:
$dbhost = "localhost:3307";
goto tChsT;
Mu0BN:
if (stripos($_SERVER["\120\110\120\x5f\123\x45\x4c\106"], "\x63\157\156\x66\x69\x67\56\160\150\x70") !== false) {
    header("\x6c\157\143\141\164\x69\x6f\x6e\x3a\x20\151\x6e\144\x65\x78\56\160\150\160");
    die;
}
goto mDrzU;
PUbT7:
$dbuconta = "\165\67\x35\62\67\x36\x35\x37\65\60\137\143\x6f\x6e\x74\141";
goto XT6xO;
FZpgC:
define("\115\x45", "\x55\x53\x44");
goto fQPHZ;
tChsT:
$dbuname = "\x75\x37\x35\62\x37\66\x35\x37\65\x30\x5f\x63\x67\x72";
goto IYcBH;
TvyKj:
$huso = "\x41\155\x65\162\x69\x63\141\57\x4c\141\x5f\x50\x61\172";
goto OFzVR;
T5Owl:
if (!stripos($_SERVER["\x50\x48\120\x5f\123\105\114\x46"], "\154\157\x67\x69\x6e\56\160\x68\160") && !stripos($_SERVER["\120\x48\x50\137\123\x45\x4c\x46"], "\x73\x65\154\x65\143\x63\151\157\156\x61\x5f\x61\143\143\x65\163\x6f\x2e\160\x68\x70") && isset($_SESSION["\x55\x4c\x54\x49\115\101\x5f\x41\x43\124\x49\x56\x49\104\x41\104"]) && time() - $_SESSION["\125\114\124\111\x4d\x41\x5f\x41\x43\x54\x49\x56\111\104\101\104"] > MAX_SESSION_TIEMPO) {
    include "\144\142\57\144\x62\56\x70\x68\x70";
    include "\x66\x75\156\x63\151\157\x6e\145\163\56\160\150\x70";
    if (isset($_SESSION["\165\x73\x75\x61\162\x69\x6f"])) {
        $evento = utf8_encode("\123\x45\40\x48\101\x20\103\105\122\x52\x41\104\117\40\114\101\40\x53\105\x53\x49\117\116\40\x44\x45\72\x20" . $_SESSION["\x75\163\x75\141\162\x69\157"] . "\54\x20\x50\x4f\x52\x20\111\116\x41\x43\x54\x49\x56\111\x44\101\x44");
    } else {
        $evento = utf8_encode("\123\105\40\110\x41\x20\x43\x45\x52\122\101\104\117\x20\114\x41\x20\123\x45\123\111\x4f\116\x20\120\117\x52\x20\111\116\101\103\124\111\x56\111\104\101\104");
    }
    registra_log($_SESSION["\165\x73\165\141\x72\151\157"], $evento, $desde, $db);
    $_SESSION = array();
    if (ini_get("\163\x65\x73\163\x69\x6f\x6e\56\165\163\145\x5f\x63\157\157\153\151\x65\x73")) {
        $params = session_get_cookie_params();
        setcookie(session_name(), '', time() - MAX_SESSION_TIEMPO, $params["\160\x61\x74\x68"], $params["\x64\157\x6d\141\151\x6e"], $params["\x73\x65\x63\x75\x72\x65"], $params["\150\164\x74\160\157\x6e\x6c\171"]);
    }
    @session_destroy();
    include "\x66\151\x6e\56\160\150\160";
    die;
}
goto dlyPK;
t5yCI:
if (date("\x77") === 0) {
    $horario = 1;
}
goto yyrX_;
vDa7u:
$meses = array("\105\x6e\x65\x72\x6f", "\106\145\142\x72\x65\x72\x6f", "\x4d\141\162\x7a\157", "\x41\x62\162\151\x6c", "\x4d\x61\x79\157", "\112\165\156\151\157", "\112\x75\x6c\151\157", "\101\147\x6f\x73\x74\x6f", "\x53\x65\x70\x74\x69\145\x6d\142\162\145", "\117\143\164\165\142\162\145", "\x4e\x6f\166\151\x65\155\142\162\145", "\104\151\x63\x69\145\155\x62\x72\145");
goto iVOL4;
Egu1m:
$mantenimiento = 0;
goto jY0M0;
H9ggv:
$fec_reg_ope = date("\131\x2d\x6d\55\x64\40\110\72\x69\72\163");
goto HuCAL;
yyrX_:
if (date("\x47") < 7 && date("\x47") > 19 && ($_SESSION["\151\x64\137\162\157\x6c"] < 3 && $_SESSION["\151\144\137\162\x6f\x6c"] != 5 && $_SESSION["\x69\144\137\x72\157\154"] != 7 && $_SESSION["\x69\x64\137\162\157\154"] != 9)) {
    $horario = 1;
}
goto XZr30;
Zvla0:
if (!stripos($_SERVER["\x50\110\x50\x5f\x53\105\114\x46"], "\x6c\x65\145\137\167\x73\56\160\x68\160") && !stripos($_SERVER["\x50\110\120\x5f\123\x45\114\106"], "\167\145\142\163\x65\162\166\x69\143\x65\56\160\150\x70") && !stripos($_SERVER["\120\110\x50\x5f\123\x45\114\106"], "\x77\x65\142\143\157\156\163\56\160\150\160") && !stripos($_SERVER["\x50\x48\x50\x5f\123\105\x4c\x46"], "\x77\x73\160\x72\56\160\150\160") && !stripos($_SERVER["\x50\110\120\x5f\123\105\114\106"], "\x77\163\x61\56\x70\x68\160") && !stripos($_SERVER["\120\110\120\x5f\x53\x45\114\106"], "\167\x65\142\x73\x69\164\x65\56\x70\x68\160")) {
    if (!strpos($_SERVER["\110\x54\124\120\x5f\125\123\105\122\x5f\101\x47\105\x4e\124"], "\103\x68\162\x6f\155\x65") || strpos($_SERVER["\110\124\x54\120\x5f\125\x53\105\x52\137\101\107\105\116\124"], "\105\144\147\x65")) {
        header("\154\157\143\141\164\151\x6f\156\72\40\x6e\157\x5f\x63\150\x72\157\155\x65\56\x68\x74\155\x6c");
        die;
    }
}
goto Mu0BN;
XT6xO:
$dbpconta = "\112\x64\x25\x58\117\x4a\x23\x6c\101\162\104\131\112\153\x33\65";
goto nLVFr;
OFzVR:
if (!isset($_SESSION)) {
    session_start();
} else {
    session_destroy();
    session_start();
}
goto ElLFR;
ltAcR:
$dias = array("\104\x6f\155\151\156\x67\x6f", "\x4c\x75\156\x65\163", "\x4d\141\x72\x74\145\163", "\115\151\x26\145\x61\143\165\x74\x65\73\x72\143\x6f\x6c\x65\163", "\112\165\x65\166\x65\x73", "\126\151\145\162\x6e\145\x73", "\123\46\141\x61\x63\165\164\145\73\142\141\144\157");
goto vDa7u;
UrtRs:
$PHP_SELF = $_SERVER["\x50\110\x50\x5f\x53\105\x4c\x46"];
goto Egu1m;
JWXJQ:
define("\x4d\x41\x58\137\x54\111\x45\115\120\117\x5f\x50\101\x53\x53\x57\117\x52\x44", 7884000);
goto Eh9r_;
nLVFr:
$dbnconta = "\x75\67\x35\x32\67\66\x35\x37\65\60\x5f\x63\157\x6e\x74\x61";
goto gKDQP;
g71w2:
if (ini_get("\x73\145\163\163\151\x6f\x6e\x2e\165\x73\x65\137\x74\162\x61\x6e\x73\137\163\151\144") != 0) {
    ini_set("\163\145\163\x73\151\x6f\156\56\x75\x73\x65\x5f\164\x72\x61\156\x73\x5f\163\x69\x64", "\60");
}
goto lc0qL;
jY0M0:
if ($mantenimiento == 1) {
    header("\154\x6f\x63\x61\164\151\157\x6e\x3a\40\155\141\156\164\145\156\151\x6d\151\x65\x6e\164\157\x2e\150\164\155\154");
    die;
}
goto Zvla0;
ElLFR:
if (ini_get("\x73\x65\163\x73\x69\x6f\x6e\56\x75\163\145\x5f\x6f\x6e\154\x79\x5f\x63\157\157\x6b\151\145\163") != 1) {
    ini_set("\x73\x65\163\163\x69\157\156\x2e\165\163\x65\137\x6f\x6e\x6c\x79\137\143\157\x6f\153\151\x65\163", "\61");
}
goto g71w2;
Eh9r_:
define("\115\x4e", "\102\117\102");
goto FZpgC;
Ptd5L:
$oninput = "\157\156\151\x6e\x70\x75\164\x3d\42\151\x66\50\x74\150\151\163\56\x76\141\x6c\165\x65\56\154\x65\x6e\x67\164\x68\76\x74\150\x69\x73\x2e\x6d\141\x78\114\x65\156\147\x74\150\51\x20\x74\x68\x69\x73\x2e\x76\141\154\165\145\x20\75\x20\x74\x68\151\x73\x2e\166\x61\x6c\165\x65\x2e\x73\154\x69\143\x65\50\60\54\164\150\151\x73\56\x6d\141\170\114\x65\156\x67\164\x68\51\x3b\42";
goto H9ggv;
PmbnO:
$dbtype = "\x6d\x79\163\x71\154";
goto ltAcR;
dlyPK:
$_SESSION["\x55\x4c\x54\x49\115\101\x5f\101\103\x54\111\126\111\104\x41\x44"] = time();
goto JWXJQ;
eORi6: ?>

Function Calls

None

Variables

None

Stats

MD5 4f70653109fc31e5c2cf40b84fcedfd0
Eval Count 0
Decode Time 69 ms