!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/usr/share/webmin/bacula-backup/   drwxr-xr-x
Free 28.67 GB of 117.98 GB (24.3%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     treechooser.cgi (2.03 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# treechooser.cgi
# Outputs HTML for a javascript file-chooser tree

require './bacula-backup-lib.pl';
&PrintHeader();
&ReadParse();

$shortest = "/";
$in{'job'} =~ s/^(.*)_(\d+)$/$2/g;
print <<EOF;
<html>
<head>
    <title>$text{'tree_title'}</title>
    <link rel="stylesheet" href="jstree/themes/default/style.min.css" />
    <style>
        body {
            margin: 0;
            font-family: Arial, Helvetica, sans-serif;
            font-size: 0.8em;
        }
        .buttons {
            display: flex;
            flex-flow: row nowrap;
            justify-content: center;
            padding: 5px;
        }
        .main-container {
            display: flex;
            flex-flow: column nowrap;
            height: 100%;
        }
        .spaced-button {
            margin: 5px;
        }
        #jstree {
            flex: 1;
            margin: 10px;
            margin-bottom: 0px;
            border: thin solid gray;
            overflow: auto;
        }
    </style>
</head>

<body>

<div class="main-container">
    <div id="jstree"></div>
    <div class="buttons">
        <button id="confirm" class="ui-button ui-widget ui-corner-all spaced-button">OK</button>
        <button id="cancel"  class="ui-button ui-widget ui-corner-all spaced-button">Cancel</button>
    </div>
</div>

<script src="jstree/jquery-3.6.0.min.js"></script>
<script src="jstree/jstree.min.js"></script>

<script>
    \$("#cancel").click(function() {
        window.close();
    });

    \$("#confirm").click(function() {
        let list = \$('#jstree').jstree(true).get_selected(true).map(n => n.original.fullpath).sort().reduce((a, v) => (a + '\\n' + v));
        \$(top.ifield).val(list);
        window.close();
    });

    \$(function () {
        \$('#jstree').jstree({
            'plugins' : [ 'checkbox' ],
            'core' : {
                'animation': 100,
                'worker' : false,
                'force_text': true,
                'data' : {
                    'url' : function (node) {
                        const r = [];
                        r.push('fmt='    + 'json');
                        r.push('job='    + encodeURIComponent('$in{'job'}'));
                        r.push('volume=' + encodeURIComponent('$in{'volume'}'));
                        r.push('dir='    + ((node.id == '#') ? encodeURIComponent('$shortest') : encodeURIComponent(node.original.fullpath)));
                        return 'list.cgi?' + r.join('&');
                    }
                }
            }
        });
    });
</script>

</body>
</html>
EOF

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.005 ]--