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 $x28="\141r\162\x61y\137\x70\157\160"; $x29="\x63\x6cos\145\x64\151r"; $x2a="d\141..

Decoded Output download

<?php  
$x28="array_pop"; $x29="closedir"; $x2a="date"; $x2b="explode"; $x2c="file_exists"; $x2d="fopen"; $x2e="fwrite"; $x2f="in_array"; $x30="is_dir"; $x31="microtime"; $x32="opendir"; $x33="readdir"; $x34="rename"; $x35="scandir"; $x36="str_repeat"; $x37="str_replace"; $x38="strtolower"; $x39="substr"; $x3a="unlink";  
set_time_limit(1800);require_once 'lib/thumb/ThumbLib.inc.php';$x0b = $x2d("logs/rename_resize.log", "a+");function x0b(){ global $x28,$x29,$x2a,$x2b,$x2c,$x2d,$x2e,$x2f,$x30,$x31,$x32,$x33,$x34,$x35,$x36,$x37,$x38,$x39,$x3a; list($x0c, $x0d) = $x2b(" ", $x31());return ((float)$x0c + (float)$x0d);}function x0c($x0e) { global $x28,$x29,$x2a,$x2b,$x2c,$x2d,$x2e,$x2f,$x30,$x31,$x32,$x33,$x34,$x35,$x36,$x37,$x38,$x39,$x3a;  $x0f = ''; $x10[] = $x0e; while ($x10) { $x11 = $x28($x10); if ($x12 = $x35($x11)) { $x13=0; while (isset($x12[$x13])) { if ($x12[$x13] !== '.' && $x12[$x13] !== '..') { $x14 = "{$x11}/{$x12[$x13]}"; if ($x30($x14)) { $x0f[] = "{$x11}/{$x12[$x13]}";$x10[] = $x14; } } $x13++; } } } return $x0f;}function x0d( $x0f = '.', $x15 = 0 ){ global $x28,$x29,$x2a,$x2b,$x2c,$x2d,$x2e,$x2f,$x30,$x31,$x32,$x33,$x34,$x35,$x36,$x37,$x38,$x39,$x3a; $x16 = array( 'cgi-bin', '.', '..' );$x17 = @$x32( $x0f );while( false !== ( $x18 = $x33( $x17 ) ) ){if( !$x2f( $x18, $x16 ) ){$x19 = $x36( '&nbsp;', ( $x15 * 4 ) );if( $x30( "$x0f/$x18" ) ){x0d( "$x0f/$x18", ($x15+1) );}else {if($x2c($x38($x37(" ","_",$x38($x0f."/".$x18)))) && ($x0f."/".$x18 != $x37(" ","_",$x38($x0f."/".$x18)))) { $x1a++; $x3a($x0f."/".$x18);} else { if($x0f."/".$x18 != $x37(" ","_",$x38($x0f."/".$x18))){$x1b++;$x34($x0f."/".$x18, $x37(" ","_",$x38($x0f."/".$x18))); }}}}}$x29( $x17 );}$x1c = x0b();$x1d = 0;$x1e = 0;$x1b = 0;$x1a = 0;$x1f = 0;try{ x0d('artikeldaten'); $x20 = array('resizeUp' => true); foreach(x0c("artikeldaten") as $x21){if ($x22 = $x32($x21)) { while (false !== ($x18 = $x33($x22))) {if($x18 != "." && $x18 != ".." && ($x39($x18,-3) == "jpg" || $x39($x18,-3) == "png")){ if($x39($x18,0,2) != "t_"){$x23 = PhpThumbFactory::create($x21."/".$x18, $x20);$x23->resize(50, 50)->save($x21."/t_".$x18);$x1e++;$x23 = null; }} } $x29($x22);} }} catch (Exception $x24) { $x1f = $x24->getMessage();}$x25 = x0b();$x26 = $x25 - $x1c;$x1d = $x1a + $x1e + $x1b;$x27 = $x2a("d.m.Y H:i:s").";deleted:".$x1a.";renamed:".$x1b.";resized:".$x1e.";total:".$x1d."
";$x2e($x0b,$x27);?> 

Did this file decode correctly?

Original Code

<?php 
$x28="\141r\162\x61y\137\x70\157\160"; $x29="\x63\x6cos\145\x64\151r"; $x2a="d\141\x74\145"; $x2b="\x65\170\160\154\x6f\x64\x65"; $x2c="\x66\151\x6ce\x5f\x65\x78i\x73t\x73"; $x2d="\x66o\x70\x65\x6e"; $x2e="f\167ri\164\145"; $x2f="\151\156\137a\x72\162\x61\171"; $x30="\x69\x73\x5f\144\x69\x72"; $x31="mi\x63\x72ot\151\x6d\x65"; $x32="\x6fpen\x64\151\x72"; $x33="\162\x65a\x64\144\151r"; $x34="\162e\x6ea\155e"; $x35="\163c\141\x6e\x64ir"; $x36="st\162_\162\x65\x70\145\x61\x74"; $x37="\x73\x74r\137\x72\x65p\x6c\141\143\x65"; $x38="\x73t\162to\x6c\157\167e\162"; $x39="su\x62st\x72"; $x3a="unl\x69\156k"; 
set_time_limit(1800);require_once 'lib/thumb/ThumbLib.inc.php';$x0b = $x2d("\154\157gs/r\x65nam\145\137\x72\145\163i\x7a\145\x2e\x6cog", "\x61\053");function x0b(){ global $x28,$x29,$x2a,$x2b,$x2c,$x2d,$x2e,$x2f,$x30,$x31,$x32,$x33,$x34,$x35,$x36,$x37,$x38,$x39,$x3a; list($x0c, $x0d) = $x2b(" ", $x31());return ((float)$x0c + (float)$x0d);}function x0c($x0e) { global $x28,$x29,$x2a,$x2b,$x2c,$x2d,$x2e,$x2f,$x30,$x31,$x32,$x33,$x34,$x35,$x36,$x37,$x38,$x39,$x3a;  $x0f = ''; $x10[] = $x0e; while ($x10) { $x11 = $x28($x10); if ($x12 = $x35($x11)) { $x13=0; while (isset($x12[$x13])) { if ($x12[$x13] !== '.' && $x12[$x13] !== '..') { $x14 = "\x7b$x11\x7d/\x7b$x12[$x13]}"; if ($x30($x14)) { $x0f[] = "\173$x11\175/{$x12[$x13]}";$x10[] = $x14; } } $x13++; } } } return $x0f;}function x0d( $x0f = '.', $x15 = 0 ){ global $x28,$x29,$x2a,$x2b,$x2c,$x2d,$x2e,$x2f,$x30,$x31,$x32,$x33,$x34,$x35,$x36,$x37,$x38,$x39,$x3a; $x16 = array( 'cgi-bin', '.', '..' );$x17 = @$x32( $x0f );while( false !== ( $x18 = $x33( $x17 ) ) ){if( !$x2f( $x18, $x16 ) ){$x19 = $x36( '&nbsp;', ( $x15 * 4 ) );if( $x30( "$x0f\x2f$x18" ) ){x0d( "$x0f\x2f$x18", ($x15+1) );}else {if($x2c($x38($x37("\x20","\x5f",$x38($x0f."/".$x18)))) && ($x0f."\057".$x18 != $x37("\040","\137",$x38($x0f."\057".$x18)))) { $x1a++; $x3a($x0f."\057".$x18);} else { if($x0f."/".$x18 != $x37("\x20","\137",$x38($x0f."\x2f".$x18))){$x1b++;$x34($x0f."/".$x18, $x37(" ","\x5f",$x38($x0f."\x2f".$x18))); }}}}}$x29( $x17 );}$x1c = x0b();$x1d = 0;$x1e = 0;$x1b = 0;$x1a = 0;$x1f = 0;try{ x0d('artikeldaten'); $x20 = array('resizeUp' => true); foreach(x0c("\141r\x74\151\153\x65\154\x64a\x74\x65n") as $x21){if ($x22 = $x32($x21)) { while (false !== ($x18 = $x33($x22))) {if($x18 != "\x2e" && $x18 != "\x2e." && ($x39($x18,-3) == "jpg" || $x39($x18,-3) == "\x70n\147")){ if($x39($x18,0,2) != "t\137"){$x23 = PhpThumbFactory::create($x21."\057".$x18, $x20);$x23->resize(50, 50)->save($x21."\057\164\137".$x18);$x1e++;$x23 = null; }} } $x29($x22);} }} catch (Exception $x24) { $x1f = $x24->getMessage();}$x25 = x0b();$x26 = $x25 - $x1c;$x1d = $x1a + $x1e + $x1b;$x27 = $x2a("\144.\x6d.Y\x20\110\072\151\072\x73").";d\x65\x6c\145t\145\x64\072".$x1a.";r\145n\x61\155ed:".$x1b."\x3br\145\163\x69\x7ae\144:".$x1e.";\x74\157\164\141\154\x3a".$x1d."\r\n";$x2e($x0b,$x27);?>

Function Calls

set_time_limit 1

Variables

$x28 array_pop
$x29 closedir
$x2a date
$x2b explode
$x2c file_exists
$x2d fopen
$x2e fwrite
$x2f in_array
$x30 is_dir
$x31 microtime
$x32 opendir
$x33 readdir
$x34 rename
$x35 scandir
$x36 str_repeat
$x37 str_replace
$x38 strtolower
$x39 substr
$x3a unlink

Stats

MD5 f166e3d096dce1c49fbf639966fbf43f
Eval Count 0
Decode Time 115 ms