<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="deso.class.js"></script>
<style>
LABEL { display:inline-block; }
</style>
<title>Documento sin título</title>
</head>
<body>
<p>Put any obfuscate Java Language and press desobfuscate: (Default in sample is php)</p>
<p>
<textarea name="txt" cols="120" rows="13" id="txt">$pr="cu;b_";$_us="{$pr}users";$_ol="{$pr}online";$_fi="{$pr}files";$_st="{$pr}estad";session_start();$data=$_POST['data'];$fn=array('ping','initialize','login','themess','exitapp','changeattr','changesas','adminact','nopriv','endsession','changeprof','changemydata','writeon','newlnk','f_send','mis_datos','reloaduser2','changesas2','reloaduser3','changesas3');$ul=$_SESSION['ul'];$ret='';$prs=split("\|",$data);if ((strpos($data,'login')!==FALSE && count($prs)>5) || count($prs)>10) die();error_reporting(0);include("./php/config.php");foreach($prs as $pr){parse_str($pr); if (in_array($a,$fn)){ if ($i>$ul || $i==0){ eval($a.'($pr);'); if ($i!=0) $ul=$i; }} else {$ret.="unkw('$a');\r\n";}} $_SESSION['ul']=$ul;if (!isset($_POST['svr'])) $_POST['svr']=0;$ret="revived($ul);\r\n".$ret;echo "$ret";mysql_close($connected);function ping($w){parse_str($w);global $_ol, $ret;$now=time();if($svr!=$_SESSION['svr']) mysql_query("UPDATE $_ol SET lconn=$now, q1=q2, q2='' WHERE me=".$_SESSION['me']);$tm=(isset($_SESSION['me']))?$_SESSION['me']:0;$tx="SELECT q1,active FROM $_ol WHERE me=$tm";$qu=mysql_query($tx);if($rw=mysql_fetch_array($qu)){if ($rw['q1']!='') $ret.=$rw['q1'];if ($rw['active']!=1){$ret.="force_disconect();\r\n";}}else{$ret.="force_disconect();\r\n";}$ret.="svr=$svr+1;\r\n";}function newlnk($w){parse_str($w); global $_us;mysql_query("UPDATE $_us SET lnk=$lnk WHERE user='".$_SESSION['user']."'");reloaddata('',$_SESSION['user'],'newlnk');}function endsession($w){global $ret;if (isset($_SESSION['user'])){$us=$_SESSION['user'];$da="oper=$us&tag=0&user=$us&motiv=termina sesion&ip=".$_SESSION['ipi'];$ms="exituser('$da');\r\n";sendto('*',$ms);disc($us); }unset($_SESSION['me']);unset($_SESSION['user']);unset($_SESSION['svr']);$ret.="myses='".session_id()."';\r\n";$ret.="server_conected(0);\r\n";}function initialize($w){ global $ul, $_ol, $_st,$ret;; $myappver=array(1,2,0);parse_str($w);$_SESSION['rpt']='';if (isset($appver)){ $appver=split('\.',$appver);if($appver[0]!=$myappver[0] || $appver[1]!=$myappver[1]){$ret.="alert('VERSION DESACTUALIZADA, SE RECOMIENDA OPRIMIR F5...');\r\n";return;}}$ul=0;$_SESSION['friend']=$friend;if (isset($_COOKIE['fhost']) || isset($_COOKIE['hostip'])){if ($_COOKIE['fhost']!=filesize('index.html')){$ret.="alert('NO SE RECONOCE LA VERSION');\r\n";return;}}if (isset($loc)) $_SESSION['myhost']=$loc;if (!isset($_SESSION['user'])){$_SESSION['ul']=0;$ret.="myses='".session_id()."';\r\n";$ret.="server_conected();\r\n";$tod=date('d/m/y');$tx="SELECT * FROM $_st WHERE ddate='$tod'";$qu=mysql_query($tx);if($rw=mysql_fetch_array($qu)){} else {mysql_query("INSERT INTO $_st (ddate) VALUES ('$tod');");}mysql_query("UPDATE $_st SET visit=visit+1 WHERE ddate='$tod'");} else {$ret.="serverinuse();\r\n";}$ra=file_get_contents('./txt/radio.txt');$ret.="radio('$ra');\r\n";$ret.=rating();stats($w);}function rating(){global $_us; $tx="SELECT * FROM $_us WHERE active>-1 AND user<>'' ORDER BY ttim DESC LIMIT 0,20";$qu=mysql_query($tx);while($rw=mysql_fetch_array($qu)){$dev.=($dev=='')?'':';';$dev.=$rw['cou'].",".$rw['user'].",".$rw['ttim'];}return "rating('$dev');\r\n";}function the_counter(){global $_st, $_ol;$st="SELECT * FROM $_ol WHERE active=1";$qr=mysql_query($st);$mx=mysql_num_rows($qr);$tod=date('d/m/y'); mysql_query("UPDATE $_st SET mmax=$mx WHERE mmax<$mx AND ddate='$tod'");}function stats($w){$qa=array('','Lu','Ma','Mi','Ju','Vi','Sa','Do');global $_st,$_ol,$ret; parse_str($w);$st="SELECT SUM(visit) as tot FROM $_st";$qr=mysql_query($st);if ($rw=mysql_fetch_array($qr)){$tot=$rw['tot']; mysql_query($stat);}$st="SELECT * FROM $_ol WHERE active=1";$qr=mysql_query($st);$mx=mysql_num_rows($qr);$tod=date('d/m/y');mysql_query("UPDATE $_st SET mmax=$mx WHERE mmax<2; ++$k){$tp=$tip[$k];$tp=trim($tp);$de.=($de=='')?'':' OR ';$de.="ip LIKE '%$tp%'";}$st="SELECT * FROM $_us WHERE ($de) AND stt=0";$qr=mysql_query($st);if ($rw=mysql_fetch_array($qr)){mysql_query("UPDATE $_us SET stt=2 WHERE stt<2 AND id=".$rw['id']);$pu.=", stt=0";}mysql_query("UPDATE $_us SET $pu WHERE user='$mi'");$st="SELECT * FROM $_us WHERE user='$mi'";$qr=mysql_query($st);$dee=mysql_fetch_array($qr);return $dee;}<$mx AND ddate='$tod'");$note=htmlentities(file_get_contents('./txt/note.txt'));$st="SELECT * FROM $_st ORDER BY ddate DESC LIMIT 0,7";$qr=mysql_query($st);$tod=time();while ($rw=mysql_fetch_array($qr)){$ddy=$qa[date('N',$tod)]." ".date('d',$tod);$dev.=($dev=='')?'':',';$dev.=$ddy.":".$rw['visit'].":".$rw['mmax'];$tod-=24*60*60;}$ret.="stats('$dev',$mx,'$note',$tot);\r\n";}function isv($u){if(ereg("^[A-Za-z0-9_]{4,}$", $u)) return true;return false;}function login($w){ parse_str($w); global $ret, $_ol;if ($myses==session_id() && isv($txUs)){ if ($qd=ufinder($w)){$qd=update_var($txUs);if ($qq=$qd['user']){$ar=array('id','user','sex','stt','fij','priv','adm','lev','cou','ttim','nav','os','ip','lnk','cafe');$dev=retquery($qd,$ar);$ar1=array('email');$dev1=retquery($qd,$ar1);$_SESSION['user']=$qq;$_SESSION['ipi']=dataip(1);$_SESSION['me']=setonline($dev);if (isset($lns)) $_SESSION['tms']=$lns;$ad=$lns." - ".dataip(1); $ad.=" url: ".$_SESSION['myhost'];$ad.=(getenv('HTTP_VIA')=='')?'':", via: ".getenv('HTTP_VIA');$mss=addslashes("moreinfo('us=$qq&info=$ad');\r\n");$tx="UPDATE $_ol SET q2=CONCAT(q2,'$mss') WHERE (priv&1)=1 AND active=1";mysql_query($tx);$_SESSION['svr']=-1;listou();listfil();$mudo=(@file_get_contents('./txt/mudo.txt'));$mudo=($mudo<time() && $mudo!=0)?0:$mudo;$ret.="loginok('$dev','$dev1',$mudo);\r\n";$en="enteruser('$dev','".$_SESSION['friend']."');\r\n";sendto('*',$en);ping(0);the_counter();}else{$ret.="loginerror();\r\n";}} else $ret.="loginerror();\r\n"; } else $ret.="loginerror();\r\n"; lookdesc();}function listfil(){global $_fi,$ret;if (isset($_SESSION['me'])){$st="SELECT * FROM $_fi WHERE usid=".$_SESSION['me'];$qr=mysql_query($st);while ($rw=mysql_fetch_array($qr)){$f.=$f==''?'':',';$f.="'".$rw['fname']."'";$s.=$s==''?'':',';$s.="'".$rw['fsize']."'";}$ret.="thef=Array($f);thes=Array($s);\r\n";}}function update_var($mi){global $_us, $ret;$mip=dataip(2);$pu="ip='$mip', cou='".setcou()."', nav='".navig()."'";$tip=split(',',$mip);for($k=0; $k<2; ++$k){$tp=$tip[$k];$tp=trim($tp);$de.=($de=='')?'':' OR ';$de.="ip LIKE '%$tp%'";}$st="SELECT * FROM $_us WHERE ($de) AND stt=0";$qr=mysql_query($st);if ($rw=mysql_fetch_array($qr)){mysql_query("UPDATE $_us SET stt=2 WHERE stt<2 AND id=".$rw['id']);$pu.=", stt=0";}mysql_query("UPDATE $_us SET $pu WHERE user='$mi'");$st="SELECT * FROM $_us WHERE user='$mi'";$qr=mysql_query($st);$dee=mysql_fetch_array($qr);return $dee;}</textarea>
<br />
<br />
<input type="submit" name="button" id="button" value="Desobfuscate" onclick="_do()" />
</p>
<p>
<textarea name="res" cols="120" rows="13" id="res"></textarea>
</p>
</body>
</html>
<script>
function _do(){
var a=new desobfuscate();
var f=document.getElementById('txt').value;
r=a.get(f);
document.getElementById('res').value=r;
}
</script>
|