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

do 'majordomo-lib.pl';
$conf = &get_config();
@lists = &list_lists($conf);

# useradmin_create_user(&details)
# Add a user to the mailing list
sub useradmin_create_user
{
foreach $l (@lists) {
    if ($config{"sync_$l"}) {
        local $dom = $config{"shost_$l"};
        $dom = &get_system_hostname() if (!$dom);
        local $list = &get_list($l, $conf);
        local $pass = &find_value("admin_passwd",
               &get_list_config($list->{'config'}));
        &lock_file($list->{'members'});
        open(WRAPPER, "|$config{'program_dir'}/wrapper majordomo");
        print WRAPPER "From: $_[0]->{'user'}\@$dom\n\n";
        print WRAPPER "approve $pass subscribe $l ",
                  "$_[0]->{'user'}\@$dom\n\n";
        close(WRAPPER);
        sleep(1);
        &unlock_file($list->{'members'});
        }
    }
}

# useradmin_delete_user(&details)
# Delete a user from the mailing list
sub useradmin_delete_user
{
foreach $l (@lists) {
    if ($config{"sync_$l"}) {
        local $dom = $config{"shost_$l"};
        $dom = &get_system_hostname() if (!$dom);
        local $list = &get_list($l, $conf);
        local $pass = &find_value("admin_passwd",
               &get_list_config($list->{'config'}));
        &lock_file($list->{'members'});
        open(WRAPPER, "|$config{'program_dir'}/wrapper majordomo");
        print WRAPPER "From: $_[0]->{'user'}\@$dom\n\n";
        print WRAPPER "approve $pass unsubscribe $l ",
                  "$_[0]->{'user'}\@$dom\n\n";
        close(WRAPPER);
        sleep(1);
        &unlock_file($list->{'members'});
        }
    }
}

# useradmin_modify_user(&details)
# Does nothing
sub useradmin_modify_user
{
return if ($_[0]->{'user'} eq $_[0]->{'olduser'} || !$_[0]->{'olduser'});
foreach $l (@lists) {
    if ($config{"sync_$l"}) {
        # Directly update the subscription list, if the user is on it
        local $dom = $config{"shost_$l"};
        $dom = &get_system_hostname() if (!$dom);
        local $list = &get_list($l, $conf);
        &lock_file($list->{'members'});
        local $lref = &read_file_lines($list->{'members'});
        local ($i, $found);
        for($i=0; $i<@$lref; $i++) {
            if ($lref->[$i] eq "$_[0]->{'olduser'}\@$dom") {
                $lref->[$i] = "$_[0]->{'user'}\@$dom";
                $found++;
                }
            }
        &flush_file_lines() if ($found);
        &unlock_file($list->{'members'});
        }
    }

}

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