!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 53.79 GB of 127.8 GB (42.09%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     conf_net.cgi (2.57 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Display global networking options

require './bind8-lib.pl';
$access{'defaults'} || &error($text{'net_ecannot'});
&ui_print_header(undef, $text{'net_title'}, "",
         undef, undef, undef, undef, &restart_links());

&ReadParse();
$conf = &get_config();
$options = &find("options", $conf);
$mems = $options->{'members'};

# Start of form
print &ui_form_start("save_net.cgi", "post");
print &ui_table_start($text{'net_header'}, "width=100%", 4);

# Ports and addresses to listen on
@listen = &find("listen-on", $mems);
$ltable = &ui_radio("listen_def", @listen ? 0 : 1,
            [ [ 1, $text{'default'} ],
              [ 0, $text{'net_below'} ] ])."<br>\n";

@table = ( );
push(@listen, { });
for($i=0; $i<@listen; $i++) {
    $port = $listen[$i]->{'value'} eq 'port' ?
                        $listen[$i]->{'values'}->[1] : undef;
    @vals = map { $_->{'name'} } @{$listen[$i]->{'members'}};
    push(@table, [
        &ui_radio("pdef_$i", $port ? 0 : 1,
          [ [ 1, $text{'default'} ],
            [ 0, &ui_textbox("port_$i", $port, 5) ] ]),
        &ui_textbox("addrs_$i", join(" ", @vals), 50),
        ]);
    }
$ltable .= &ui_columns_table(
    [ $text{'net_port'}, $text{'net_addrs'} ],
    undef,
    \@table,
    undef,
    1);

print &ui_table_row($text{'net_listen'}, $ltable, 3);
print &ui_table_hr();

# Source address for queries
$src = &find("query-source", $mems);
$srcstr = join(" ", @{$src->{'values'}});
$sport = $1 if ($srcstr =~ /port\s+(\d+)/i);
$saddr = $1 if ($srcstr =~ /address\s+([0-9\.]+)/i);
print &ui_table_row($text{'net_saddr'},
    &ui_opt_textbox("saddr", $saddr, 15, $text{'default'},
            $text{'net_ip'}));

# Source port for queries
print &ui_table_row($text{'net_sport'},
    &ui_opt_textbox("sport", $sport, 5, $text{'default'},
            $text{'net_port'}));

# Source port for transfers
$src = &find("transfer-source", $mems);
$srcstr = join(" ", @{$src->{'values'}});
$tport = $1 if ($srcstr =~ /port\s+(\d+)/i);
$taddr = $1 if ($srcstr =~ /^([0-9\.]+|\*)/i);
print &ui_table_row($text{'net_taddr'},
    &ui_radio("taddr_def", $taddr eq "" ? 1 : $taddr eq "*" ? 2 : 0,
          [ [ 1, $text{'default'} ],
            [ 2, $text{'net_taddrdef'} ],
            [ 0, $text{'net_ip'}." ".
              &ui_textbox("taddr", $taddr eq "*" ? "" : $taddr, 15) ],
          ]));

# Source port for transfers
print &ui_table_row($text{'net_tport'},
    &ui_opt_textbox("tport", $tport, 5, $text{'default'},
            $text{'net_port'}));

print &addr_match_input($text{'net_topol'}, 'topology', $mems, 1);
print &addr_match_input($text{'net_recur'}, 'allow-recursion', $mems, 1);

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