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


Viewing file:     cgi_args.pl (1.42 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |

do 'sendmail-lib.pl';
do 'virtusers-lib.pl';
do 'generics-lib.pl';
do 'domain-lib.pl';
do 'access-lib.pl';

sub cgi_args
{
my ($cgi) = @_;
if ($cgi =~ /^list_/) {
    # All these are OK with no args
    return '';
    }
elsif ($cgi eq 'edit_alias.cgi') {
    # Assume first one
    return 'num=0';
    }
elsif ($cgi eq 'edit_virtuser.cgi') {
    # First virtuser, if any
    my $conf = &get_sendmailcf();
    my $vfile = &virtusers_file($conf);
    my ($vdbm, $vdbmtype) = &virtusers_dbm($conf);
    if ($vdbm) {
        my @virts = &list_virtusers($vfile);
        return @virts ? 'num=0' : 'none';
        }
    return 'none';
    }
elsif ($cgi eq 'edit_generic.cgi') {
    # First outgoing address mapping
    my $conf = &get_sendmailcf();
    my $gfile = &generics_file($conf);
    my ($gdbm, $gdbmtype) = &generics_dbm($conf);
    if ($gdbm) {
        my @gens = &list_generics($gfile);
        return @gens ? 'num=0' : 'none';
        }
    return 'none';
    }
elsif ($cgi eq 'edit_domain.cgi') {
    # First domain table entry
    my $conf = &get_sendmailcf();
    my $dfile = &domains_file($conf);
    my ($ddbm, $ddbmtype) = &domains_dbm($conf);
    if ($ddbm) {
        my @doms = &list_domains($dfile);
        return @doms ? 'num=0' : 'none';
        }
    return 'none';
    }
elsif ($cgi eq 'edit_access.cgi') {
    # First spam control rule
    my $conf = &get_sendmailcf();
    my $afile = &access_file($conf);
    my ($adbm, $adbmtype) = &access_dbm($conf);
    if ($adbm) {
        my @accs = &list_access($afile);
        return @accs ? 'num=0' : 'none';
        }
    return 'none';
    }
return undef;
}

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