!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/inittab/   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:     edit_inittab.cgi (1.59 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl

require "./inittab-lib.pl";
&ReadParse();

if ($in{'new'}) {
    # Creating a new one
    $init = { };
    }
else {
    # Find existing config
    @inittab = &parse_inittab();
    ($init) = grep { $_->{'id'} eq $in{'id'} } @inittab;
    }

&ui_print_header(undef,  &text('edit_inittab_title', $in{'id'}), "");

print &ui_form_start("save_inittab.cgi");
print &ui_hidden("oldid", $init->{'id'});
print &ui_hidden("new", $in{'new'});
print &ui_table_start($text{'edit_inittab_details'}, "width=100%", 2);

# ID number
print &ui_table_row(&hlink($text{'inittab_id'}, "id" ),
    &ui_textbox("id", $init->{'id'}, $config{'inittab_size'}));

# Active or not?
print &ui_table_row(&hlink($text{ 'inittab_active' },"active"),
    &ui_radio("comment", $init->{'comment'} ? 1 : 0,
          [ [ 0, $text{'yes'} ], [ 1, $text{'no'} ] ]));

# Levels to run in 
print &ui_table_row(&hlink($text{'inittab_runlevels'}, "runlevels"),
    join(" ", map { &ui_checkbox($_, 1, $_, &indexof($_, @{$init->{'levels'}}) >= 0) } &list_runlevels()));

# Action
$init->{'action'} = "kbdrequest" if ($init->{'action'} eq "kbrequest");
print &ui_table_row(&hlink($text{'inittab_action'}, "action"),
    &ui_select("action", $init->{'action'}, [ &list_actions() ],
           1, 0, 1));

# Command to run
print &ui_table_row(&hlink($text{'inittab_process'}, "process"),
    &ui_textbox("process", $init->{'process'}, 60));

print &ui_table_end();
if ($in{'new'}) {
    print &ui_form_end([ [ "button", $text{'create'} ] ]);
    }
else {
    print &ui_form_end([ [ "button", $text{'save'} ],
                 [ "button", $text{'edit_inittab_del'} ] ]);
    }

&ui_print_footer( "", $text{ 'inittab_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.0131 ]--