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 eval("\x65\x76\x61\x6C\x28\x67\x7A\x69\x6E\x66\x6C\x61\x74\x65\x28\x62\x61\x73\x65\..
Decoded Output download
?><?
session_start();
include("../funcions/html_functions.php");
include("../funcions/mysql_functions.php");
include("../funcions/xml_functions.php");
include("../idiomas/lang_es.php");
localhost_detect();
timestamp_execution();
function volver()
{
?>
<button style="width:80%;height:50;font-size:20px"
onfocus="this.blur();"
hidefocus="true"
onclick="window.location.href='index.php'">volver atrs
</button>
</body>
</html>
<?
die();
}
?>
<html>
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../style/style.css" title="style">
</head>
<body style="text-align:center;">
<?if(isset($_GET['action']))
{
llegir_xml("../xml/epmmachineconf.xml");
//print_r($_SESSION);
$enlace_local=enlace_local();
$_SESSION['machines']=array();
$_SESSION['machines']=table_machines($enlace_local,$_SESSION['xml']['MachineId']);
// SI EL ENLLAA AMB EL SERVIDOR NO ESTA DISPONIBLE HO DEIXEM ESTAR I NO FEM RES MES
if(!$enlace_remoto=enlace_remoto())
{
insertLogSync($enlace_local,"0","0","2","Unable to connect to remote host");
echo "
<br>UNABLE TO CONNECT TO REMOTE MYSQL HOST
";
echo "<br><br><hr><br><br><h1>No se pudo conectar con el servidor remoto, revise la configuracin.</h1><br><br><hr><br><br>";
volver();
}
else
{
$query="INSERT INTO operations (machine_id,operation,result,op_time) VALUES ('1','1','3','2010-01-01 01-01-01')";
if(mysqli_query($enlace_remoto,$query))
{
echo "<br><br>
<hr>
<br><br>
<h1 style='color:green'>
Linea insertada en la tabla operations remota
</h1>
<br><br>
<hr>
<br><br>";
}
else
{
echo "<br><br>
<hr>
<br><br>
<h1 style='color:green'>
Error al insertar la linea en la tabla remota operations.
</h1>
<br><br>
<hr>
<br><br>";
}
$query="INSERT INTO logsync (machine_id,result,sync_time) VALUES ('1','1','2010-01-01 01-01-01')";
if(mysqli_query($enlace_remoto,$query))
{
echo "<br><br>
<hr>
<br><br>
<h1 style='color:green'>
Linea insertada en la tabla logsync remota
</h1>
<br><br>
<hr>
<br><br>";
}
else
{
echo "<br><br>
<hr>
<br><br>
<h1 style='color:green'>
Error al insertar la linea en la tabla remota logsync.
</h1>
<br><br>
<hr>
<br><br>";
}
volver();
}
}
?>
<br><br><hr><br><br>
<p>Si se va a iniciar la sincronizacin en una tabla que esta vacia, primero debe insertarse en esa tabla una linea con un timestamp valido en las tablas logsync y operations. Esto tipicamente sucede despus de haber hecho un truncate en la tabla.<br>Por motivos de seguridad <strong>la maquina no puede sincronizar con una tabla vacia.</strong><br> La siguiente operaci ejecutar las siguientes querys:<br><strong>INSERT INTO operations <br>(machine_id,operation,result,op_time) <br>VALUES<br> ('1','1','3','2010-01-01 01-01-01')<br><br>INSERT INTO logsync <br>(machine_id,result,sync_time) <br>VALUES<br> ('1','1','2010-01-01 01-01-01')</strong></p>
<br><br><hr><br><br>
<button style="width:80%;height:50;font-size:20px"
onfocus="this.blur();"
hidefocus="true"
onclick="window.location.href='initsync.php?action=insert'">Insertar Marca Inicio
</button>
<br><br><br>
<button style="width:80%;height:50;font-size:20px"
onfocus="this.blur();"
hidefocus="true"
onclick="window.location.href='index.php'">volver atrs
</button>
</body>
</html>
Did this file decode correctly?
Original Code
<?php
eval("\x65\x76\x61\x6C\x28\x67\x7A\x69\x6E\x66\x6C\x61\x74\x65\x28\x62\x61\x73\x65\x36\x34\x5F\x64\x65\x63\x6F\x64\x65\x28'TVZHDsS4EfyLL7ahg3KCT8o5h5GEvSjnPIqv96zXgH0oFLqqiCbRIMHyTId//O2Pm8D/uEnix/AP3B83Qv2Y/GnMj+kfhB+Iv7w/MyT215r/5JD/auhfGvrLoT8fF3/1f3PEn97/1Qj19ztM0ff0FSF6Ig/COAZXdR4S2DMr+A76KvqGTl/StbcXpVmoZfP6IzpDFfHyTGjCjSeGXVXn2SlzD+rzRhnnLIJUBc8bbVR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eocGB4OaBzPn33++G/h9Q9m///Ne/AQ=='\x29\x29\x29\x3B");
?>
Function Calls
gzinflate | 5 |
dfqgzx09871 | 1 |
base64_decode | 5 |
Stats
MD5 | 8f74d3b3a8ee897e7f681e42f003297d |
Eval Count | 9 |
Decode Time | 65 ms |