!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/bind8/   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:     conf_trusted.cgi (2.64 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Show a form for setting up DNSSEC verification and trusted keys

require './bind8-lib.pl';
&ReadParse();
$access{'defaults'} || &error($text{'trusted_ecannot'});
&supports_dnssec_client() || &error($text{'trusted_esupport'});
&ui_print_header(undef, $text{'trusted_title'}, "",
         undef, undef, undef, undef, &restart_links());
$conf = &get_config();
$options = &find("options", $conf);
$mems = $options->{'members'};
@dlv = &find("dnssec-lookaside", $mems);
$tkeys = &find("trusted-keys", $conf);
$tkeys ||= { 'members' => [ ] };

# Check if not setup at all
if (!@dlv && !@{$tkeys->{'members'}}) {
    print "<center>\n";
    print &ui_form_start("setup_trusted.cgi", "post");

    print &text('trusted_setup', "<tt>$dnssec_dlv_zone</tt>"),"<p>\n";

    print &ui_form_end([ [ undef, $text{'trusted_ok'} ] ]);
    print "</center>\n";
    print "<hr>\n";
    }

print &ui_form_start("save_trusted.cgi", "post");
print &ui_table_start($text{'trusted_header'}, undef, 4);

# DNSSEC enabled?
print &choice_input($text{'trusted_dnssec'}, 'dnssec-enable', $mems,
            $text{'yes'}, 'yes', $text{'no'}, 'no',
            $text{'default'}, undef);
if (&supports_dnssec_client() == 2) {
    print &choice_input($text{'trusted_validation'},
                'dnssec-validation', $mems,
                $text{'yes'}, 'yes', $text{'no'}, 'no',
                $text{'default'}, undef);
    }

print &ui_table_hr();

# Trusted DLVs
@dtable = ( );
$i = 0;
foreach $d (@dlv, { 'values' => [ '.' ] }) {
    $dlv = $d->{'values'}->[0];
    $dlv = "" if ($dlv eq ".");
    push(@dtable, [ &ui_opt_textbox("anchor_$i", $d->{'values'}->[2],
                    30, $text{'trusted_none'}),
            &ui_opt_textbox("dlv_$i", $dlv, 20,
                    $text{'trusted_root'}) ]);
    $i++;
    }
print &ui_table_row($text{'trusted_dlvs'},
    &ui_columns_table([ $text{'trusted_anchor'}, $text{'trusted_dlv'} ],
              undef,
              \@dtable), 3);

# Trusted keys
@ktable = ( );
$i = 0;
foreach $k (@{$tkeys->{'members'}}, { }) {
    @v = @{$k->{'values'}};
    @wrapped = ( );
    while(length($v[3]) > 30) {
        push(@wrapped, substr($v[3], 0, 30));
        $v[3] = substr($v[3], 30);
        }
    push(@wrapped, $v[3]);
    push(@ktable, [ &ui_opt_textbox("zone_$i", $k->{'name'}, 20,
                    $text{'trusted_none'}),
             &ui_textbox("flags_$i", $v[0], 6),
             &ui_textbox("proto_$i", $v[1], 6),
             &ui_textbox("alg_$i", $v[2], 6),
            &ui_textarea("key_$i", join("\n", @wrapped), 4, 32) ]);
    $i++;
    }
print &ui_table_row($text{'trusted_keys'},
    &ui_columns_table([ $text{'trusted_zone'}, $text{'trusted_flags'},
                $text{'trusted_proto'}, $text{'trusted_alg'},
                $text{'trusted_key'} ],
              undef,
              \@ktable), 3);

print &ui_table_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.0136 ]--