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 // Copyright 2021 VeryCo LTD. $OOO0O0O00=__FILE__;$OOO000000=urldecode('%74%68%36%7..

Decoded Output download


if(stristr($PHP_SELF,"export")||stristr($PHP_SELF,"excel")||stristr($PHP_SELF,"word")||stristr($PHP_SELF,"attach.php")||stristr($PHP_SELF,"download.php")||stristr($PHP_SELF,"down.php"))
session_cache_limiter('private, must-revalidate');
session_start();
if (!isset($LANG_MODULES))
$LANG_MODULES = array();
if (!array_key_exists('SMARTvend_lang',$LANG_MODULES))
$LANG_MODULES[] = 'SMARTvend_lang';
include_once("config/config.inc.php");
include_once("init.php");
if (!isset($checkLicence) ||$checkLicence)
{
$licence = $_SESSION["REG_INFO"];
$regInfo = TRegister::getInstance();
if ($licence==NULL)
{
$appClient = new AppClient(0);
$appClient->init(_AS_SERVER_,_AS_PORT_);
$licence = "";
if ($appClient->open())
{
$licence = $appClient->checkRegister();
if ( $licence <0 )
{
$result = $licence;
}
else
{
$result = 0;
}
$appClient->close();
}
else
{
$result = -1;
}
if($result!=0)
{
include_once("general/sys/register.php");
exit;
}
$regInfo->parseJSON($licence);
$_SESSION["REG_COMPANY"] = $register->CompanyName;
$_SESSION["REG_INFO"] = $licence;
}
else
{
$regInfo->parseJSON($licence);
}
if ($regInfo->isExpiry())
{
$_SESSION["REG_COMPANY"] = "";
$_SESSION["REG_INFO"] = "";
include_once("general/sys/register.php");
exit;
}
$ClientIP=$_SERVER['REMOTE_ADDR'];
if (($regInfo->VerType != "W") &&($ClientIP != "127.0.0.1"))
{
echo Tools::getMessageBox($LG_COMMON['infoWarn'],$LG_MSG['-90002']);
exit;
}
}
ob_start();
include_once("include/sys_function.php");
if ( !is_array( $SYS_FUNCTIONS ) ||count( $SYS_FUNCTIONS ) == 0 )
{
$funs  = new TFunctions();
$funs->generalCache();
include( "include/sys_function.php");
}
$User = TUser::getInstance();
if ($_SESSION["LG_TIME"] != ""&&$_SESSION["SYS_TIME"]=="")
{
$currTime = date("Y-m-d H:i:s");
$_SESSION["SYS_TIME"] = $currTime;
TEventTime::getInstance()->refreshCurrentTime($currTime,"",$User->currentUser(),1);
}
$OFFLINE_TIME_MIN=0;
if($OFFLINE_TIME_MIN>0)
{
$LAST_OPERATION_TIME=$_COOKIE["LAST_OPERATION_TIME"];
if(!stristr($SCRIPT_NAME,"/general/ipanel/") &&!stristr($SCRIPT_NAME,"/general/mytable/") &&!stristr($SCRIPT_NAME,"/general/status_bar/")&&!stristr($SCRIPT_NAME,"/general/topbar.php"))
{
setcookie("LAST_OPERATION_TIME",time(),0,"/");
}
if($LAST_OPERATION_TIME!=""&&time()-$LAST_OPERATION_TIME >$OFFLINE_TIME_MIN*60)
{
session_destroy();
}
}
$CURR_THEME = $_SESSION["LG_THEME"];
$CURR_THEME = $CURR_THEME==""?"1":$CURR_THEME
;echo '<link rel="stylesheet" type="text/css" href="/themes/';echo $CURR_THEME;echo '/ui.general.css">
';
if (!$User->checkOnlineStatus())
{
echo "<title>{$LG_COMMON['infoWarn']}</title><body bgcolor='#677CAD'>";
echo Tools::getMessageBox($LG_COMMON['infoWarn'],$LG_MSG['-2108']);
echo "<center><br><input type=\"button\" value=\"{$LG_COMMON['LoginNow']}\" class=\"BigButton\" onclick=\"window.location.reload('/')\"></center>";
session_destroy();
exit;
}
if(!$User->isAuthorized())
{
echo "<title>{$LG_COMMON['infoWarn']}</title><body bgcolor='#677CAD'>";
echo Tools::getMessageBox($LG_COMMON['infoWarn'],$LG_MSG['-90004']);
echo "<center><br><input type=\"button\" value=\"{$LG_COMMON['LoginNow']}\" class=\"BigButton\" onclick=\"window.location.reload('/')\"></center>";
exit;
}
if(!$User->checkPermission($SYS_FUNCTIONS))
{
echo "<body class='bodycolor'><title>{$LG_MSG['-90003']}</title><body bgcolor='#264989'>";
echo Tools::getMessageBox($LG_COMMON['infoWarn'],$LG_MSG['-90002']);
exit;
}
session_write_close();

Did this file decode correctly?

Original Code

<?php // Copyright 2021 VeryCo LTD.
$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=4696;$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('JE9PME9PMDAwMD0kT09PMDAwMDAwezE3fS4kT09PMDAwMDAwezEyfS4kT09PMDAwMDAwezE4fS4kT09PMDAwMDAwezV9LiRPT08wMDAwMDB7MTl9O2lmKCEwKSRPMDAwTzBPMDA9JE9PME9PMDAwMCgkT09PME8wTzAwLCdyYicpOyRPTzBPTzAwME89JE9PTzAwMDAwMHsxN30uJE9PTzAwMDAwMHsyMH0uJE9PTzAwMDAwMHs1fS4kT09PMDAwMDAwezl9LiRPT08wMDAwMDB7MTZ9OyRPTzBPTzAwTzA9JE9PTzAwMDAwMHsxNH0uJE9PTzAwMDAwMHswfS4kT09PMDAwMDAwezIwfS4kT09PMDAwMDAwezB9LiRPT08wMDAwMDB7MjB9OyRPTzBPTzAwME8oJE8wMDBPME8wMCwxMTYzKTskT08wME8wME8wPSgkT09PMDAwME8wKCRPTzBPTzAwTzAoJE9PME9PMDAwTygkTzAwME8wTzAwLDM4MCksJ0xObEZHY1Y2b1haeVdFOUl1YXpUaFlDN1AwYjVxOEtIZW5RVWdmdkE0QnJNd2sveHNqSk90aUQyUjNTMW0rZHA9JywnQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLycpKSk7ZXZhbCgkT08wME8wME8wKTs=')));return;?>
XG+IWFNIWFNIWFiO86XHqvYs5VcU0zeA7i+Vzhjc7imAyloAoQ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gePv8U5DjxqUtAoOP2EtENalqdoUwElvYUbVmeYV+x56WS9v8f8Gifq2En0DYl52e4XGj67tEIThiITfwAbC3v5i8nqvRA7zsgTG8HTYE6CJqk9TLsWFuA7zg1FuBfPDnxolomPDY/8VYJIUjQqURmbC3s87ue86fs0TiqovXi86ax5fsQo60n56YfIYsQKJaWai+FTtiETt35Xtjx0Df/Tv+2Xii+7loePDjnq2W+7lXlbC8l87at5D3qoQNx5vEwbCEMIYsQ8Df/0V+2yvjxPDctbC+/yAXf5V+n0leAyJqB7lodIl+U0C3t07odoUwElvYRb7u1FuB+FuBB0QenXcYO07okIvE40CEMhVYJ5CfOqDfx5QeghifT7t0YTgEhzh+9hJgBFuB1FuBfPDnxolomPv+gKzNU5VcOqOtAPv+gKCEx5V+JXORm8Vft5VhdKJaWai+Eht85XJt3WFLsWJ88HTsx8Vft5VhdIVXx06gePv8U5DjxqUtAoOoDEFgR9zqdoUwElvYUbVmeYV+x56WS9v8f8Gifq2En0DYl52e4XGj67tEIThiITfwAbC3v5i8nqvRA7zsgTG8HTYE6CJqk9TLsWFoA7zg1FuBfKVft9stZHutZqDYOqDfx5f+2qvft0Y+U5V+O0zeB9stZ

Function Calls

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

Variables

$O0O0000O0 OOO0000O0
$OO00O0000 4696
$OO00O00O0 if(stristr($PHP_SELF,"export")||stristr($PHP_SELF,"excel")..
$OO0OO0000 fopen
$OO0OO000O fread
$OO0OO00O0 strtr
$OOO000000 th6sbehqla4co_sadfpnr
$OOO0000O0 base64_decode
$OOO0O0O00 index.php

Stats

MD5 5bdfa5ce2072bcb8c18eef40d1b53489
Eval Count 3
Decode Time 112 ms