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 /* CODE-STUDIO.net */$OOO000000=urldecode('%66%67%36%73%62%65%68%70%72%61%34%63%6f%5..

Decoded Output download


$IMC=true;require('../include/config.php');
require_once('AES.php');
$iMC_Database = new iMC_Database();
$DBName = $iMC_Database->DBName();
if(isset($_GET['request']))
{
$aes = new Crypt_AES();
$aes->setKey($CONFIG->Setting('site','tmtopup_keypass'));
$_GET['request'] = base64_decode(strtr($_GET['request'],'-_,','+/='));
$_GET['request'] = $aes->decrypt($_GET['request']);
if($_GET['request'] != false)
{
parse_str($_GET['request'],$request);
$username = base64_decode($request['Ref1']);
$email = base64_decode($request['Ref2']);
$UserInfoQuery = mysql_query('SELECT * FROM `'.$DBName['authme']."` WHERE `username`='".$username."' LIMIT 1 ");
$UserInfo = mysql_fetch_array($UserInfoQuery);
if($UserInfo) {
$pointArray = $CONFIG->topupPoint();
$point = $pointArray[$request['cardcard_amount']];
mysql_query('UPDATE `'.$DBName['authme']."` SET `point`=(`point`+'".$point."') WHERE `username`='".$username."' LIMIT 1");
mysql_query("INSERT INTO `shop_topup` SET `username`='".$username."' , `transaction_id`='".$request['TXID']."', `password`='".$request['cardcard_password']."', `amount`='".$request['cardcard_amount']."', `time`='".time()."' , `ip`='".$request['client_ip']."', `status`='success' ") or die(mysql_error());
mysql_query("INSERT INTO `shop_history` SET `username`='".$UserInfo['username']."' , `type`='topup', `value`='  <strong> ".$request['cardcard_amount']." </strong>' , `time`='".time()."'");
exit('SUCCEED');
}else {
mysql_query("INSERT INTO `shop_topup` SET `username`='-' , `transaction_id`='".$request['TXID']."', `password`='".$request['cardcard_password']."', `amount`='".$request['cardcard_amount']."', `time`='".time()."' , `ip`='".$request['client_ip']."', `status`='invaild' LIMIT 1");
exit('ERROR|USERNOTFOUND');
}
exit('ERROR|INVAILD_CODE');
}
else
{
exit('ERROR|INVALID_PASSKEY');
}
}
else
{
exit('ERROR|ACCESS_DENIED');
};

Did this file decode correctly?

Original Code

<?php /* CODE-STUDIO.net */$OOO000000=urldecode('%66%67%36%73%62%65%68%70%72%61%34%63%6f%5f%74%6e%64');$GLOBALS['OOO0000O0']=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5}.$OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$GLOBALS['OOO0000O0'].=$GLOBALS['OOO0000O0']{3}.$OOO000000{11}.$OOO000000{12}.$GLOBALS['OOO0000O0']{7}.$OOO000000{5};$GLOBALS['OOO000O00']=$OOO000000{0}.$OOO000000{12}.$OOO000000{7}.$OOO000000{5}.$OOO000000{15};$GLOBALS['O0O000O00']=$OOO000000{0}.$OOO000000{1}.$OOO000000{5}.$OOO000000{14};$GLOBALS['O0O000O00']=$O0O000O00.$OOO000000{3};$GLOBALS['O0O00OO00']=$OOO000000{0}.$OOO000000{8}.$OOO000000{5}.$OOO000000{9}.$OOO000000{16};$GLOBALS['OOO00000O']=$OOO000000{3}.$OOO000000{14}.$OOO000000{8}.$OOO000000{14}.$OOO000000{8};$OOO0O0O00=__FILE__;$OO00O0000=0xa70;eval($GLOBALS['OOO0000O0']('JE8wMDBPME8wMD0kR0xPQkFMU1snT09PMDAwTzAwJ10oJE9PTzBPME8wMCwncmInKTskR0xPQkFMU1snTzBPMDBPTzAwJ10oJE8wMDBPME8wMCwweDUxMyk7JE9PMDBPMDBPMD0kR0xPQkFMU1snT09PMDAwME8wJ10oJEdMT0JBTFNbJ09PTzAwMDAwTyddKCRHTE9CQUxTWydPME8wME9PMDAnXSgkTzAwME8wTzAwLDB4MWE4KSwnbEw5bkI0VGRISU9WK21vMS9zS2lRUGNKNmFncldYZlVxMkdFejNla2pBOFl2cEQ1eDd3WmJ5dTBGdENOU1JoTT0nLCdBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWmFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6MDEyMzQ1Njc4OSsvJykpO2V2YWwoJE9PMDBPMDB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base64_decode 3

Variables

$O000O0O00 True
$O0O000O00 fgets
$O0O00OO00 fread
$OO00O0000 2672
$OO00O00O0 $IMC=true;require('../include/config.php'); require_once(..
$OOO000000 fg6sbehpra4co_tnd
$OOO00000O strtr
$OOO0000O0 base64_decode
$OOO000O00 fopen
$OOO0O0O00 index.php

Stats

MD5 7b6a3d06bd3b236498b2f748290d5c04
Eval Count 3
Decode Time 168 ms