<?php
$source = base64_decode("S0xBQ2Sc2l6/uaG3p8KsrKGi1sK+rruu2cKrodyrqg==");
while (preg_match_all('/\\\x(..)/', $source, $matches)) {
for ($i = 0, $len = count($matches[0]); $i < $len; ++$i) {
$source = str_replace($matches[0][$i], chr(hexdec($matches[1][$i])), $source);
}
}
//echo $source;
preg_match('/eval\(base64_decode\(\\\(.+)\)\)/', $source, $matches);
$source = base64_decode($matches[1]);
while (preg_match_all('/\\\x(..)/', $source, $matches)) {
for ($i = 0, $len = count($matches[0]); $i < $len; ++$i) {
$source = str_replace($matches[0][$i], chr(hexdec($matches[1][$i])), $source);
}
}
//echo $source;
preg_match('/eval\(base64_decode\((.+)\)\)/', $source, $matches);
$source = base64_decode($matches[1]);
preg_match('/eval\(base64_decode\((.+)\)\)/', $source, $matches);
$source = base64_decode($matches[1]);
/*
while (preg_match_all('/\\\x(..)/', $source, $matches)) {
for ($i = 0, $len = count($matches[0]); $i < $len; ++$i) {
$source = str_replace($matches[0][$i], chr(hexdec($matches[1][$i])), $source);
}
}
*/
echo '>>>'.$source;