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


Viewing file:     save_access.cgi (1.98 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# save_access.cgi
# Save, create or delete an access rule

require './sendmail-lib.pl';
require './access-lib.pl';
&ReadParse();
$access{'access'} || &error($text{'access_ecannot'});
$conf = &get_sendmailcf();
$afile = &access_file($conf);
&lock_file($afile);
($adbm, $adbmtype) = &access_dbm($conf);
@accs = &list_access($afile);
if (!$in{'new'}) {
    $a = $accs[$in{'num'}];
    &can_edit_access($a) ||
        &error($text{'sform_ecannot'});
    }

if ($in{'delete'}) {
    # delete some rule
    $loga = $a;
    &delete_access($a, $afile, $adbm, $adbmtype);
    }
else {
    # Saving or creating.. check inputs
    $whatfailed = "Failed to save spam control rule";
    $from = $in{'from'};
    $in{'from_type'} == 0 && $from !~ /^[^\@ ]+\@[A-z0-9\.\-]+$/ &&
        &error(&text('ssave_etype0', $from));
    $in{'from_type'} == 1 && $from !~ /^[0-9\.]+$/ &&
        &error(&text('ssave_etype1', $from));
    $in{'from_type'} == 2 && $from !~ /^[^\@ ]+$/ &&
        &error(&text('ssave_etype2', $from));
    $in{'from_type'} == 3 && $from !~ /^[A-z0-9\.\-]+$/ &&
        &error(&text('ssave_etype3', $from));
    $from .= '@' if ($in{'from_type'} == 2);

    if ($in{'new'} || uc($from) ne uc($a->{'from'}) ||
        $in{'tag'} ne $a->{'tag'}) {
        # Is this name taken?
        local ($same) = grep { uc($_->{'from'}) eq uc($from) &&
                       $_->{'tag'} eq $in{'tag'} } @accs;
        $same && &error(&text('ssave_ealready', $from));
        }

    if ($in{'action'}) { $action = $in{'action'}; }
    else {
        $in{'err'} =~ /^\d\d\d$/ ||
            &error(&text('ssave_ecode', $in{'err'}));
        $action = "$in{'err'} $in{'msg'}";
        }

    %newa = ( 'from', $from,
          'action', $action,
          'tag', $in{'tag'},
          'cmt', $in{'cmt'} );
    &can_edit_access(\%newa) ||
        &error($text{'ssave_ecannot2'});
    if ($in{'new'}) { &create_access(\%newa, $afile, $adbm, $adbmtype); }
    else { &modify_access($a, \%newa, $afile, $adbm, $adbmtype); }
    $loga = \%newa;
    }
&unlock_file($afile);
&webmin_log($in{'delete'} ? 'delete' : $in{'new'} ? 'create' : 'modify',
        "access", $loga->{'from'}, $loga);
&redirect("list_access.cgi");


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