!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/cluster-usermin/   drwxr-xr-x
Free 28.6 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_host.cgi (3.37 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# edit_host.cgi
# Show details of a managed host, and all the modules on it

require './cluster-usermin-lib.pl';
&ReadParse();
&ui_print_header(undef, $text{'host_title'}, "");

@hosts = &list_usermin_hosts();
($host) = grep { $_->{'id'} eq $in{'id'} } @hosts;
$server = &foreign_call("servers", "get_server", $in{'id'});
@modules = @{$host->{'modules'}};
@themes = @{$host->{'themes'}};
@users = @{$host->{'users'}};
@groups = @{$host->{'groups'}};

# Show host details
print "<input type=hidden name=id value=$in{'id'}>\n";
print "<table border width=100%>\n";
print "<tr $tb> <td><b>$text{'host_header'}</b></td> </tr>\n";
print "<tr $cb> <td><table width=100%>\n";

print "<tr> <td><b>$text{'host_name'}</b></td>\n";
if ($server->{'id'}) {
    printf "<td>%s</td>\n",
        $server->{'desc'} ? $server->{'desc'} : $server->{'host'};
    }
else {
    print "<td>$text{'this_server'}</td>\n";
    }

if ($server->{'id'}) {
    print "<td><b>$text{'host_type'}</b></td> <td>\n";
    foreach $t (@servers::server_types) {
        print $t->[1] if ($t->[0] eq $server->{'type'});
        }
    print "</td>\n";
    }
print "</tr>\n";

print "<tr> <td><b>$text{'host_count'}</b></td>\n";
printf "<td>%d</td>\n", scalar(@modules);

print "<td><b>$text{'host_tcount'}</b></td>\n";
printf "<td>%d</td> </tr>\n", scalar(@themes);

print "<tr> <td><b>$text{'host_os'}</b></td>\n";
print "<td>$host->{'real_os_type'} $host->{'real_os_version'}</td>\n";

print "<td><b>$text{'host_version'}</b></td>\n";
printf "<td>%s</td> </tr>\n", $host->{'version'};

print "</table></td></tr></table>\n";

# Show delete and refresh buttons
print "<p></p><table width=100%><tr>\n";
print "<td><form action=delete_host.cgi>\n";
print "<input type=hidden name=id value=$in{'id'}>\n";
print "<input type=submit value='$text{'host_delete'}'>\n";
print "</form></td>\n";

print "<td align=right><form action=refresh.cgi>\n";
print "<input type=hidden name=id value=$in{'id'}>\n";
print "<input type=submit value='$text{'host_refresh'}'>\n";
print "</form></td>\n";
print "</tr></table>\n";

# Show table of modules and themes
print "<p></p><table border width=100%>\n";
print "<tr $tb> <td><b>$text{'host_header_m'}</b></td> </tr>\n";
print "<tr $cb> <td><table width=100%>\n";

$i = 0;
my $total_cells = scalar(@modules);
foreach $m (sort { $a->{'desc'} cmp $b->{'desc'} } @modules) {
    my $colspan = '';
    if ($total_cells == $i + 1 && $total_cells%$i == 1) {
        if ($i%3 == 0) {
            $colspan = " colspan=3 ";
        } elsif($i%3 == 1) {
            $colspan = " colspan=2 ";
        }
    }
    print "<tr>\n" if ($i%3 == 0);
    print "<td $colspan width=33%><a href='edit_mod.cgi?mod=$m->{'dir'}&host=$in{'id'}'>",$m->{'desc'},"</td>\n";
    print "</tr>\n" if ($i%3 == 2);
    $i++;
    }
if (@themes) {
    $i = 0;
    print "</table></td></tr>\n";
    print "<tr $tb> <td><b>$text{'host_header_t'}</b></td> </tr>\n";
    print "<tr $cb> <td><table width=100%>\n";
    my $total_cells_themes = scalar(@themes);
    foreach $t (sort { $a->{'desc'} cmp $b->{'desc'} } @themes) {
        my $colspan = '';
        if ($total_cells_themes == $i + 1 && $total_cells_themes%$i == 1) {
            if ($i%3 == 0) {
                $colspan = " colspan=3 ";
            } elsif($i%3 == 1) {
                $colspan = " colspan=2 ";
            }
        }
        print "<tr>\n" if ($i%3 == 0);
        print "<td $colspan width=33%><a href='edit_mod.cgi?theme=$t->{'dir'}$in{'id'}'>",$t->{'desc'},"</td>\n";
        print "</tr>\n" if ($i%3 == 2);
        $i++;
        }
    }
print "</table></td></tr></table><br>\n";

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


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