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 bb8rM; tdu6d: if (isset($_GET["\144\145\x70\141\x72\x74\141\x6d\x65\156\x74\x..

Decoded Output download

<?php 
 goto bb8rM; tdu6d: if (isset($_GET["departamento"])) { $id_dep = $_GET["departamento"]; if ($id_dep == "0") { echo "<option value='0' selected>Informatica</option><option value='1' >Ciberseguridad</option><option value='2' >Humanidades</option><option value='3' >Ingenieria Software</option>"; } if ($id_dep == "1") { echo "<option value='0'>Informatica</option><option value='1' selected>Ciberseguridad</option><option value='2' >Humanidades</option><option value='3' >Ingenieria Software</option>"; } if ($id_dep == "2") { echo "<option value='0'>Informatica</option><option value='1'>Ciberseguridad</option><option value='2' selected>Humanidades</option><option value='3' >Ingenieria Software</option>"; } if ($id_dep == "3") { echo "<option value='0'>Informatica</option><option value='1'>Ciberseguridad</option><option value='2' >Humanidades</option><option value='3' selected>Ingenieria Software</option>"; } if ($id_dep != "0" && $id_dep != "1" && $id_dep != "2" && $id_dep != "3") { echo "<option value='0'>Informatica</option><option value='1' >Ciberseguridad</option><option value='2' >Humanidades</option><option value='3' >Ingenieria Software</option>                     </select>"; } } goto IGO2T; fr3Zh: if (isset($_GET["departamento"])) { $mysqli = new mysqli("localhost", "uoc", "1234abcd", "uoc"); if (!$mysqli) { die("Conexion fallida"); } $id_dep = $_GET["departamento"]; $sql_query_asignaturas = "SELECT descr FROM asignatura WHERE id_dep = {$id_dep}"; $datos = mysqli_query($mysqli, $sql_query_asignaturas); if (!$datos) { echo "error en la consulta"; } while ($dato = mysqli_fetch_assoc($datos)) { echo "<option>" . $dato["descr"] . "</option>"; } } goto qVqEX; bb8rM: ?> 
<html><head><title>Asignaturas impartidas en el departamento</title></head><link href="/estilo.css"rel="stylesheet"type="text/css"><div style="margin-bottom:50px"><center><img border="0"src="/logo-uoc-default.png"></center></div><center><p align="center"class="c2"style="width:80%;padding:20px">Seleccione un departamento y podrs ver las asignaturas que imparten<br><br><table><tr><form><td>Departamento</td><td><select class="c1"name="departamento"style="width:260px"onchange="submit()"><option value="-1">Selecciona un departamento</option><?php  goto tdu6d; IGO2T: ?> 
</td></form></tr><tr><td>Asignaturas</td><td><select class="c1"name="asignaturas"style="width:260px"><?php  goto fr3Zh; qVqEX: ?>

Did this file decode correctly?

Original Code

<?php
 goto bb8rM; tdu6d: if (isset($_GET["\144\145\x70\141\x72\x74\141\x6d\x65\156\x74\x6f"])) { $id_dep = $_GET["\144\x65\x70\141\162\164\141\155\x65\x6e\164\x6f"]; if ($id_dep == "\x30") { echo "\x3c\x6f\160\x74\x69\x6f\156\x20\166\141\154\x75\145\x3d\47\x30\47\40\163\145\154\145\x63\x74\145\x64\x3e\111\156\x66\x6f\x72\x6d\x61\x74\x69\x63\x61\x3c\x2f\157\x70\164\x69\x6f\x6e\76\x3c\157\160\x74\x69\157\156\x20\x76\x61\x6c\165\145\x3d\x27\61\x27\x20\x3e\103\x69\x62\x65\x72\163\x65\x67\x75\162\x69\144\141\x64\74\57\x6f\x70\164\x69\157\156\76\x3c\157\x70\x74\x69\x6f\156\x20\166\141\x6c\x75\x65\x3d\x27\x32\x27\x20\76\x48\165\x6d\x61\156\151\144\141\144\x65\163\74\x2f\157\x70\164\151\157\x6e\x3e\x3c\x6f\x70\164\x69\x6f\156\x20\166\141\154\x75\x65\75\x27\63\x27\40\76\x49\156\147\145\x6e\151\x65\162\x69\141\x20\123\157\x66\x74\167\x61\162\145\x3c\57\157\x70\x74\x69\157\x6e\76"; } if ($id_dep == "\x31") { echo "\74\157\160\164\151\x6f\156\40\x76\141\x6c\x75\145\75\47\60\x27\x3e\x49\156\x66\157\x72\x6d\x61\164\x69\143\141\74\57\x6f\160\x74\x69\157\x6e\76\x3c\x6f\x70\164\x69\157\156\40\166\x61\154\165\145\x3d\47\61\x27\40\163\x65\x6c\145\x63\x74\145\144\76\x43\x69\x62\x65\x72\x73\x65\147\165\x72\151\144\141\x64\74\x2f\x6f\x70\x74\151\157\156\x3e\74\157\160\164\x69\157\x6e\40\166\141\154\x75\145\x3d\x27\x32\47\40\x3e\x48\x75\155\141\x6e\151\x64\141\144\145\x73\74\57\157\x70\x74\151\157\156\76\74\x6f\x70\x74\x69\157\156\x20\166\x61\x6c\165\x65\x3d\47\63\x27\40\76\111\x6e\147\x65\x6e\151\x65\162\151\x61\x20\x53\157\x66\164\167\x61\162\145\74\x2f\157\160\x74\151\157\156\76"; } if ($id_dep == "\62") { echo "\x3c\157\x70\164\x69\157\156\40\166\141\154\x75\x65\75\x27\x30\47\76\x49\156\146\x6f\162\x6d\x61\164\151\x63\141\x3c\57\x6f\160\x74\x69\x6f\156\76\x3c\157\x70\x74\x69\x6f\x6e\x20\166\141\x6c\165\145\x3d\x27\61\x27\x3e\x43\151\142\x65\x72\x73\x65\147\165\x72\151\144\x61\x64\x3c\57\157\x70\x74\151\x6f\x6e\x3e\x3c\x6f\x70\x74\151\157\x6e\x20\166\141\154\165\145\x3d\x27\62\x27\40\163\145\154\145\x63\x74\x65\144\x3e\110\x75\x6d\141\156\151\144\141\144\145\x73\74\x2f\x6f\x70\164\151\x6f\x6e\x3e\74\x6f\160\164\151\x6f\x6e\40\x76\141\154\165\145\75\x27\63\x27\40\x3e\111\156\x67\145\156\x69\145\162\151\141\x20\x53\x6f\x66\x74\x77\141\162\145\74\57\x6f\160\164\151\157\156\76"; } if ($id_dep == "\63") { echo "\x3c\157\160\x74\151\157\156\x20\x76\x61\x6c\165\x65\75\x27\x30\47\x3e\x49\x6e\146\157\162\x6d\141\x74\x69\x63\141\74\x2f\x6f\x70\164\151\x6f\156\76\74\x6f\160\x74\151\157\x6e\40\166\x61\154\165\x65\x3d\47\61\x27\x3e\x43\151\x62\x65\x72\x73\145\x67\x75\x72\151\x64\x61\144\x3c\x2f\x6f\160\x74\151\157\156\76\x3c\157\160\x74\151\157\156\40\x76\141\x6c\x75\145\75\x27\62\47\x20\76\x48\165\x6d\141\156\x69\144\141\x64\145\163\x3c\57\x6f\160\164\151\157\x6e\x3e\74\x6f\160\164\151\157\156\x20\166\x61\154\x75\145\75\47\x33\47\40\x73\x65\x6c\145\143\x74\x65\144\x3e\111\x6e\x67\x65\x6e\x69\x65\x72\151\x61\40\x53\157\146\164\x77\141\162\x65\74\57\x6f\x70\164\x69\157\156\x3e"; } if ($id_dep != "\x30" && $id_dep != "\x31" && $id_dep != "\62" && $id_dep != "\x33") { echo "\x3c\157\160\164\x69\157\156\40\166\x61\154\x75\x65\75\47\60\47\x3e\111\x6e\146\157\162\x6d\x61\164\x69\143\141\74\57\157\160\x74\151\157\x6e\x3e\x3c\157\160\164\x69\157\x6e\40\x76\141\x6c\165\145\75\x27\61\x27\40\x3e\103\151\x62\145\162\163\145\147\x75\162\x69\x64\x61\x64\74\x2f\157\160\x74\151\157\x6e\76\x3c\157\x70\x74\x69\x6f\x6e\x20\166\141\x6c\165\x65\75\x27\62\x27\40\76\110\x75\155\141\x6e\x69\144\x61\144\145\163\x3c\57\x6f\160\164\x69\x6f\156\76\x3c\x6f\x70\164\151\x6f\156\40\166\x61\x6c\165\x65\75\x27\x33\x27\x20\76\x49\x6e\147\145\x6e\x69\145\162\151\x61\40\x53\157\x66\x74\x77\x61\x72\x65\x3c\57\x6f\160\164\151\x6f\x6e\76\x20\x20\40\x20\x20\40\40\x20\40\40\40\40\x20\40\x20\x20\x20\40\x20\40\40\x3c\57\x73\x65\x6c\x65\x63\x74\76"; } } goto IGO2T; fr3Zh: if (isset($_GET["\144\145\x70\x61\162\x74\141\x6d\x65\x6e\x74\x6f"])) { $mysqli = new mysqli("\154\157\x63\141\154\150\157\163\x74", "\x75\157\x63", "\61\62\x33\64\141\142\143\x64", "\x75\x6f\x63"); if (!$mysqli) { die("\103\157\x6e\x65\x78\151\157\156\40\146\x61\154\x6c\151\x64\x61"); } $id_dep = $_GET["\x64\x65\x70\141\x72\164\141\155\145\x6e\x74\157"]; $sql_query_asignaturas = "\123\x45\114\105\103\124\40\x64\145\163\x63\x72\x20\x46\122\117\x4d\40\141\163\151\147\156\141\164\x75\162\141\x20\127\x48\x45\122\x45\40\151\144\x5f\144\x65\x70\x20\x3d\40{$id_dep}"; $datos = mysqli_query($mysqli, $sql_query_asignaturas); if (!$datos) { echo "\x65\162\x72\x6f\x72\40\145\x6e\x20\x6c\141\x20\x63\157\156\163\165\154\x74\141"; } while ($dato = mysqli_fetch_assoc($datos)) { echo "\74\x6f\160\164\x69\157\156\x3e" . $dato["\x64\145\163\x63\x72"] . "\x3c\x2f\157\x70\164\x69\x6f\156\76"; } } goto qVqEX; bb8rM: ?>
<html><head><title>Asignaturas impartidas en el departamento</title></head><link href="/estilo.css"rel="stylesheet"type="text/css"><div style="margin-bottom:50px"><center><img border="0"src="/logo-uoc-default.png"></center></div><center><p align="center"class="c2"style="width:80%;padding:20px">Seleccione un departamento y podrs ver las asignaturas que imparten<br><br><table><tr><form><td>Departamento</td><td><select class="c1"name="departamento"style="width:260px"onchange="submit()"><option value="-1">Selecciona un departamento</option><?php  goto tdu6d; IGO2T: ?>
</td></form></tr><tr><td>Asignaturas</td><td><select class="c1"name="asignaturas"style="width:260px"><?php  goto fr3Zh; qVqEX: ?>

Function Calls

None

Variables

None

Stats

MD5 86239778e3ac0e4c67653ebdd219add3
Eval Count 0
Decode Time 56 ms