20/10/2010, 21:01
|
| | Fecha de Ingreso: agosto-2006
Mensajes: 141
Antigüedad: 18 años, 3 meses Puntos: 0 | |
Respuesta: ofuscar php el codigo no tiene problemas, si lo cargo en su estado puro en el xampp trabaja perfectamente, los errores surgen al aplicarle el base64
por ejemplo este codigo pertenece a logueo.php
<?php
session_start();
require("db.php");
$link=conectaBD();
$result=mysql_query("select * from usuarios where nom_usuario='".$_POST[usr]."';");
$msg="\"El Usuario ingresado no existe, o la contrase\"";
$msg.="+String.fromCharCode(241)+\"";
$msg.="a es erronea.\"";
$_SESSION['msgLogin']=$msg;
$url='index.php';
if (mysql_num_rows($result)==0){
header("Location: ".$url);
}else{
$arr = mysql_fetch_array ($result);
if ($arr["pass_usr"]!=$_POST[pwd]) {
header("Location: ".$url);
}else{
$_SESSION['msgLogin']='';
$_SESSION['control'] = 1;
$_SESSION['nombre']=$_POST[usr];
$_SESSION['tipo']= $arr["nivel"];
session_write_close();
if ($arr['nivel']=='A'){
header("location: administracion.php");}
if ($arr['nivel']=='J'){
header("location: jugador.php");}
}
}
?>
en el momento que lo ofusco
<?php
eval(gzinflate(base64_decode('HVVHz4RWEjyvf8V3sy0k w5DRWrZghgwDDJnLivDIOcOv37EPLfV7qlarW1Vdf//1599jOf4Cwz/8soKfeE7Lah9+wPIzzsMKiiobfsZh/mnjnxZcPxlovzGDtByWb/IPaKxAFmc/bbWCOZ6r+I8fLf6p+gL0Ffg+v+kO5iX+Bw3+aZEOWVUMP8u/xWWV/Ps9V+kad6BfwR+/gD1ufyvuqs/beAW/JfECSPx/GfgWgt9+lbxEmhcXr1cs8Kgz82iBNa5cD9nZ2BfqNLpDvOu2zz EUJgeflSHFGnkrdXsYxmAYMrP8lq4XLqMnRUfG4mdoiiDQCaf3 vHKZ1yA0TFMOxOitGdwHDDIJnudAJrue4nLIIqZEbuCrT+Cocr Kwg3JgtvuBhA9fd3KRgkOvX3xKMaHvBOcral+5x2gm86DaDdmh +HElSUPyIQNpeX5+emRnoj19hMzSA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94aW2ElrVuCs8 uutZsdh3Z5745lSqzG4hNGIujpW052KQaF2pcc57LONMS4w5di x0U+Dc89QLyFCEPm8UiPkicjhygvjgfoz8uV+nyFQ0bH7S4xEv/w0nk3YXN2Hd0ekTu8uVxmSJ7cF9XukeGRxq8USyMFAX7ZNfYIp X+JUAy2TO+Qlt1wKoX4JJcxKM3ttP083O94I0Px1pTn+vFojBb rPNH0ZgUVaejF7yTRXflmLAtHtPpwJLkW45j0N7pR9+4h2hlxV WdI72orHBR7ZYdcV/b7DtL0TiJLNlGde0geZ6rR78mmPmkwA96x2rCeuF7ASBY2Fnpm 5n9KTd577pssEcMPCC7W6mzN+bHpE2zymeGRIk/kh6bXnZR/2SVHZ86UNT38QhxNJqP2qpXl1T1s9tvmpY3CzRfhjcGDbJOwFq ohZOya0ra5pTZNZFT+CFX1vFbVuqpDVup3R5oOytQW1RD5Rd7Z x2adNxWI5lw4bw+5cqVpFydZMxviZXGsH6WvJjhmkzMAHib9tG gBI7x068ahg0oBiam2CiNNqkh226uQaNfqGhvIFxqkwFgQYzDA OA8MmRiUwbv76+++///eXv//65T9//v1/')));
?>
y el codigo ofuscado en base 64 que ves aqui funciona sin problemas en el servidor linux, y al pasarlo al xampp en windows arroja los errores mencionados arriba
Última edición por GreenlanternX; 20/10/2010 a las 21:07 |