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


Viewing file:     client.cgi (2.22 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# A single page just for editing smtpd_client_restrictions
# XXX editing access maps?

require './postfix-lib.pl';

$access{'client'} || &error($text{'client_ecannot'});
&ui_print_header(undef, $text{'client_title'}, "");

$default = $text{'opts_default'};
$none = $text{'opts_none'};
$no_ = $text{'opts_no'};

print &ui_form_start("save_client.cgi", "post");
print &ui_table_start($text{'client_title'}, undef, 2);

# Parse current settings, by building a map from names to indexes
@opts = split(/[\s,]+/, &get_current_value('smtpd_client_restrictions'));
for(my $i=0; $i<@opts; $i++) {
    $opts{$opts[$i]} ||= [ ];
    push(@{$opts{$opts[$i]}}, $i);
    }

# Add binary restrictions to list
@grid = ( );
%done = ( );
foreach $r (&list_client_restrictions()) {
    push(@grid, &ui_checkbox("client", $r, $text{'sasl_'.$r},
                 defined($opts{$r})), undef);
    $done{$r} = 1;
    }

# Add restrictions with values
foreach $r (&list_multi_client_restrictions()) {
    @v = @{$opts{$r}};
    $vals = undef;
    if (scalar(@v)) {
        $vals = join(" ", map { $opts[$_+1] } @v);
        }
    push(@grid, &ui_checkbox("client", $r, $text{'sasl_'.$r},
                 scalar(@v)),
            &ui_textbox("value_$r", $vals, 60).
            ($r eq "check_client_access" ?
            " ".&map_chooser_button("value_$r", $r) : ""));
    $done{$r} = 1;
    foreach $v (@v) {
        $done{$opts[$v+1]} = 1;
        }
    if ($r eq "check_client_access" && @v) {
        # Can show client access map
        $has_client_access = 1;
        }
    }

# Show text field for the rest
@rest = grep { !$done{$_} } @opts;
if (@rest) {
    push(@grid, &ui_checkbox("other", 1, $text{'client_other'}, 1),
            &ui_textbox("other_list", join(" ", @rest), 40));
    }

# Show field
print &ui_table_row($text{'client_restrict'},
    &ui_radio("client_def", @opts ? 0 : 1,
          [ [ 1, $text{'client_restrict1'} ],
            [ 0, $text{'client_restrict0'} ] ])."<br>\n".
    &ui_grid_table(\@grid, 2));

print &ui_table_end();
print &ui_form_end([ [ undef, $text{'save'} ] ]);

if ($has_client_access) {
    print &ui_hr();
    &generate_map_edit("smtpd_client_restrictions:check_client_access",
        $text{'map_click'}." ".
        "<font size=\"-1\">".&hlink("$text{'help_map_format'}",
            "access")."</font>\n<br>\n", 1,
        $text{'mapping_client'}, $text{'header_value'});
    }

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