!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:     save_members.cgi (2.16 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# save_members.cgi
# Store the members of some list

require './majordomo-lib.pl';
&ReadParseMime();
%access = &get_module_acl();
&can_edit_list(\%access, $in{'name'}) || &error($text{'edit_ecannot'});
$access{'edit'} || &error($text{'members_eedit'});
$list = &get_list($in{'name'}, &get_config());
$conf = &get_list_config($list->{'config'});
$pass = &find_value("admin_passwd", $conf);
$wrapper_path = $config{'wrapper_path'} || "$config{'program_dir'}/wrapper";

# find the list owner's email address
$aliases_files = &get_aliases_file();
@aliases = &foreign_call($aliases_module, "list_aliases", $aliases_files);
foreach $a (@aliases) {
    if ($a->{'name'} eq "owner-$in{'name'}" ||
        $a->{'name'} eq "$in{'name'}-owner") {
        $owner = $a->{'values'}->[0];
        }
    }

&lock_file($list->{'members'});
if ($in{'update'}) {
    # save the new list of members
    $in{'members'} =~ s/\r//g;
    $in{'members'} =~ s/\n*$/\n/;
    &open_tempfile(MEMS, ">$list->{'members'}");
    &print_tempfile(MEMS, $in{'members'});
    &close_tempfile(MEMS);
    &unlock_file($list->{'members'});
    &webmin_log("members", undef, $in{'name'});
    }
elsif ($in{'add'}) {
    # call majordomo to subscribe an address
    $pass || &error($text{'members_esub'});
    $in{'addr_a'} =~ /^(\S+)\@(\S+)\.(\S+)$/ ||
        &error($text{'members_esubaddr'});
    open(WRAPPER, "|$wrapper_path majordomo");
    printf WRAPPER "From: %s\n\n",
        $owner ? $owner : $in{'addr_a'};
    print WRAPPER "approve $pass subscribe $in{'name'} $in{'addr_a'}\n\n";
    close(WRAPPER);
    sleep(1);
    &unlock_file($list->{'members'});
    &webmin_log("subscribe", undef, $in{'name'},
            { 'addr' => $in{'addr_a'} });
    }
elsif ($in{'remove'}) {
    # call majordomo to unsubscribe an address
    $pass || &error($text{'members_eunsub'});
    $in{'addr_r'} =~ /^(\S+)\@(\S+)\.(\S+)$/ ||
        &error($text{'members_eunsubaddr'});
    open(WRAPPER, "|$wrapper_path majordomo");
    printf WRAPPER "From: %s\n\n",
        $owner ? $owner : $in{'addr_r'};
    print WRAPPER "approve $pass unsubscribe $in{'name'} $in{'addr_r'}\n\n";
    close(WRAPPER);
    sleep(1);
    &unlock_file($list->{'members'});
    &webmin_log("unsubscribe", undef, $in{'name'},
            { 'addr' => $in{'addr_r'} });
    }
&redirect("edit_list.cgi?name=$in{'name'}");


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