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 // 2014 $OOO0O0O00=__FILE__;$OOO000000=urldecode('%74%68%36%73%62%65%68%71%6c%61%3..

Decoded Output download


header('Content-Type: text/html; charset=gbk');
include 'config.php';
$Link = MySQL_Connect($DBHost,$DBUser,$DBPassword) or die (' - ,QQ:81356582!');
MySQL_Select_Db($DBName,$Link) or die ('Database '.$DBName.' do not exists.');
if (!mysql_select_db('shengui')) {
exit('<font color="red">MySQL Error!</font>');
}
require('antiroot.php');
$sendmail = new sendmail;
if(isset($_GET[charinfo])){
$r = $sendmail->myfetch($sendmail->myquery("SELECT RoleID,Name FROM basetab_sg where Name = '{$_GET[charinfo]}' or RoleID = '{$_GET[charinfo]}'"));
if($r[0] == '') exit(" $_GET[charinfo] !");else exit("ID: $r[0], : $r[1]");
}
if(isset($_POST[roleid1]) or isset($_POST[roleid2])){
if(empty($_POST[roleid1])) $roleid = $_POST[roleid2];else $roleid = $_POST[roleid1];
if (!preg_match('/[0-9]+/',$roleid)) {
$r= $sendmail->myfetch($sendmail->myquery("SELECT RoleID FROM basetab_sg where Name = '{$roleid}' or RoleID = '{$roleid}'"));
$roleid = $r[0];
}
$sendmail->_sendmailWOI($roleid ,$_POST[title] ,$_POST[msg] ,$_POST[coin] ,$_POST[zen] ,$_POST[exp] ,$_POST[itemid] ,$_POST[qtde] );
echo "<script>alert('ID $roleid')</script>";
}
;echo '<script>
function load_wt(url, div, tipo, campos)
{
	var ajax = null;

	if(window.ActiveXObject)
	{
		ajax = new ActiveXObject(\'Microsoft.XMLHTTP\');
	}
	else if(window.XMLHttpRequest)
	{
		ajax = new XMLHttpRequest();
	}

	if(ajax != null)
	{
		var cache = new Date().getTime()
		ajax.open(tipo, url+\'&cache=\'+cache, true);
		ajax.onreadystatechange = function status()
		{
			if(ajax.readyState == 4)
			{
				if(ajax.status == 200)
				{
					document.getElementById(div).innerHTML = ajax.responseText;
					var texto = unescape(ajax.responseText.replace(/\+/g, " "))
					ExtractScript(texto);
				}
			}
			else
			{
				document.getElementById(div).innerHTML = \'<div align="center"><img src="load.gif" /></div>\';
			}
		}
		
		if(tipo == "POST")
		{
			ajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
			ajax.setRequestHeader("Cache-Control", "no-store, no-cache, must-revalidate");
			ajax.setRequestHeader("Cache-Control", "post-check=0, pre-check=0");
			ajax.setRequestHeader("Pragma", "no-cache");
			ajax.send(campos); 
		}
		else
		{
			ajax.send(null);
		}
	}
}
</script>

<table>
	 <tr>
	 <td>
			<form action="" method="post" class="STYLE-NAME">
				<h1>
					<span></span>
				</h1>
				<label>
					<span>ID :</span>

					<input id="roleid1"  name="roleid1" placeholder="Role ID Only" onBlur="load_wt(\'sendmail.php?charinfo=\'+document.getElementById(\'roleid1\').value, \'loginResult\', \'GET\');"/> -- > &nbsp;&nbsp;<span id="loginResult"></span>
					</br>
					</br>
					: 
					<select name="roleid2">
							';
$CHARS = $sendmail->myquery('SELECT * FROM basetab_sg order by roleid asc; ');
while ($ARRAY = $sendmail->myarray($CHARS)) echo '<option value="'.$ARRAY[RoleID].'">ID['.$ARRAY[RoleID].'] '.$ARRAY[Name].' ['.$ARRAY[Level].']</option>';
;echo '					</select>
					
				</label>
				</br>
				</br>
				<label>
					<span> :</span>
					<input id="title" type="title" name="title" placeholder="20" maxlength="20"/>
				</label>
				</br>
				</br>
				<label>
					<span> :</span>
					<textarea id="msg" name="msg" placeholder=""></textarea>
				</label> 
				 </br>
				</br>
				 <label>
					<span>// :</span>
					<input id="coin" type="coin" name="coin"  value="0" maxlength="5" size="8"/>
					<input id="zen" type="zen" name="zen"  value="0" maxlength="5" size="8"/>
					<input id="exp" type="exp" name="exp"  value="0" maxlength="5" size="8"/>
				</label>
				</br>
				</br>
				 <label>
					<span>ID/ :</span>
					<input id="itemid" type="itemid" name="itemid"  value="0" maxlength="5" size="8"/>
					<input id="qtde" type="qtde" name="qtde"  value="0" maxlength="5" size="8"/>
				</label>
				</br>
				</br>    
				 <label>
					<span>&nbsp;</span> 
					<input type="submit" class="button" value="" /> 
				</label>    
			</form>
		</td>

		<td>
		
		</td>
	</tr>
	


</table>';

Did this file decode correctly?

Original Code

<?php //  2014
$OOO0O0O00=__FILE__;$OOO000000=urldecode('%74%68%36%73%62%65%68%71%6c%61%34%63%6f%5f%73%61%64%66%70%6e%72');$OO00O0000=5764;$OOO0000O0=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5};$OOO0000O0.=$OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$OOO0000O0.=$OOO0000O0{3}.$OOO000000{11}.$OOO000000{12}.$OOO0000O0{7}.$OOO000000{5};$O0O0000O0='OOO0000O0';eval(($$O0O0000O0('JE9PME9PMDAwMD0kT09PMDAwMDAwezE3fS4kT09PMDAwMDAwezEyfS4kT09PMDAwMDAwezE4fS4kT09PMDAwMDAwezV9LiRPT08wMDAwMDB7MTl9O2lmKCEwKSRPMDAwTzBPMDA9JE9PME9PMDAwMCgkT09PME8wTzAwLCdyYicpOyRPTzBPTzAwME89JE9PTzAwMDAwMHsxN30uJE9PTzAwMDAwMHsyMH0uJE9PTzAwMDAwMHs1fS4kT09PMDAwMDAwezl9LiRPT08wMDAwMDB7MTZ9OyRPTzBPTzAwTzA9JE9PTzAwMDAwMHsxNH0uJE9PTzAwMDAwMHswfS4kT09PMDAwMDAwezIwfS4kT09PMDAwMDAwezB9LiRPT08wMDAwMDB7MjB9OyRPTzBPTzAwME8oJE8wMDBPME8wMCwxMTQ2KTskT08wME8wME8wPSgkT09PMDAwME8wKCRPTzBPTzAwTzAoJE9PME9PMDAwTygkTzAwME8wTzAwLDM4MCksJ1E5QXE4N3k0aFIwaWF0NlpDcHdWRUpkdXZ6KzNqV2tnb1lER0tibEJlSGMxczVPeFBtRlNOTFVNWEkvVGYycm49JywnQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm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HbZwhXhDfrqCeRACKRAVmH3B9LWA9HzqNDklJOhD9Nku9bZwR/zdXDhyIY3dE2hBHb3Dhoh4zY34JbZwhPhD95vuYszdIBWyo2hGEDh4tHklE2hGoDiSXtAoKRACKRZybOj4JNhybKZwRbk4QDh4pIjyE2hlJXjAho3l75zVNDzuYPhDQoWl7sWdE2hGQDhyLYkymb3lWN+qNDtwhojUb/zVND6AhxZoN0ACKRAVPx3y7DzdPrqCeRACKRZA2DjGXtAoKRACKfiURFZoN0ACKRAwQf3y7DzdPrqCeRACKRAVmSjy7OZ1uQx52RpAn0njynhqefiMtPvdXrqCeRACKRAVmH3B9LWA9HzqND+upb3dbKhD9Nku9bZwRHWyJ5+dCDhyIY3dE2hlbNzdLHzAhoh4zY34JbZwhPhD95vuYszdIBWyo2hGEDh4tHklE2hGoDiSXtAoKRACKRZybOj4JNhybKZwRmWypbhD9Nku9bZwRmWypbhD9OvdLbZwRmWypbhDQoWl7sWdE2hGQDhyLYkymb3lWN+qNDtwhojUb/zVND6AhxZoN0ACKRAVPx3y7DzdPrqCeRACKRZA2DjGXtAoKRACKfiURFZDQohAQtAoKRACKoZymYvlJsZoN0ACKRACKfjM9Y3GXl3lRSjqsfiMtPvdXrhQN0ACKRACKf+dIPWuCoW4bPzVNDjMJD3dbNhD9G3y7SjSNDvBJNWy2OhD9UvdmLzVND5/iiSWZ0xZXDhAfrhQN0ACKRAVPx3y7DzdPrhAQohQN0ACKRZA2l3MR5ZoN0ACKfiMpKZoN0qCeRAVmNzqXtAoKRqCeRAVPxWyCrqCeRZA2NjGXtAoKtAoN0qCefiMpYvlmbZDjT

Function Calls

fread 3
strtr 2
fclose 1
OOO0000O0 1
urldecode 1
str_replace 1
base64_decode 2

Variables

$O0O0000O0 OOO0000O0
$OO00O0000 5764
$OO00O00O0 header('Content-Type: text/html; charset=gbk'); include '..
$OO0OO0000 fopen
$OO0OO000O fread
$OO0OO00O0 strtr
$OOO000000 th6sbehqla4co_sadfpnr
$OOO0000O0 base64_decode
$OOO0O0O00 index.php

Stats

MD5 3c3e3e173567fe25abeb120d1bb566e6
Eval Count 3
Decode Time 107 ms