!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/acl/   drwxr-xr-x
Free 28.92 GB of 117.98 GB (24.52%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     delete_group.cgi (1.36 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# delete_group.cgi
# Delete a group (and maybe it's members)

use strict;
use warnings;
no warnings 'redefine';
no warnings 'uninitialized';
require './acl-lib.pl';
our (%in, %text, %config, %access, $base_remote_user);
&ReadParse();
&error_setup($text{'gdelete_err'});
$access{'groups'} || &error($text{'gdelete_ecannot'});
my @glist = &list_groups();
my ($group) = grep { $_->{'name'} eq $in{'group'} } @glist;
my @mems = @{$group->{'members'}};
foreach my $m (@mems) {
    &error($text{'gdelete_esub'}) if ($m =~ /^\@/);
    }

if (&indexof($base_remote_user, @mems) >= 0) {
    &error($text{'gdelete_euser'});
    }
elsif (@mems && !$in{'confirm'}) {
    # Ask if the user really wants to delete the group and members
    &ui_print_header(undef, $text{'gdelete_title'}, "");

    print &ui_confirmation_form(
        "delete_group.cgi",
        &text('gdelete_desc', "<tt>$in{'group'}</tt>",
                    "<tt>".join(" ", @mems)."</tt>"),
        [ [ "group", $in{'group'} ] ],
        [ [ "confirm", $text{'gdelete_ok'} ] ],
        );

    &ui_print_footer("", $text{'index_return'});
    }
else {
    # Delete the group (and members if any)
    &delete_group($in{'group'});
    foreach my $u (@mems) {
        if ($u =~ /^\@(.*)/) {
            &delete_group("$1");
            }
        else {
            &delete_user($u);
            }
        }
    &delete_from_groups("\@".$in{'group'});
    &reload_miniserv();
    &webmin_log("delete", "group", $in{'group'});
    &redirect("");
    }


:: 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.004 ]--