!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:     save_client.cgi (1.64 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Save SMTP authentication options

require './postfix-lib.pl';

&ReadParse();

$access{'client'} || &error($text{'opts_ecannot'});

&error_setup($text{'client_err'});

&lock_postfix_files();

if ($in{'client_def'}) {
    # Reset to default
    &set_current_value("smtpd_client_restrictions",
               "__DEFAULT_VALUE_IE_NOT_IN_CONFIG_FILE__");
    }
else {
    # Save client options
    @opts = split(/[\s,]+/,&get_current_value("smtpd_client_restrictions"));
    %oldopts = map { $_, 1 } @opts;
    %newopts = map { $_, 1 } split(/\0/, $in{'client'});

    # Save boolean options
    foreach $o (&list_client_restrictions()) {
        if ($newopts{$o} && !$oldopts{$o}) {
            push(@opts, $o);
            }
        elsif (!$newopts{$o} && $oldopts{$o}) {
            @opts = grep { $_ ne $o } @opts;
            }
        }

    # Save options with values
    foreach $o (&list_multi_client_restrictions()) {
        # Find all current positions
        local @pos;
        for(my $i=0; $i<@opts; $i++) {
            push(@pos, $i) if ($opts[$i] eq $o);
            }

        # Make sure something was entered
        if ($newopts{$o}) {
            $in{"value_$o"} =~ /\S/ ||
                &error(&text('client_evalue', $text{'sasl_'.$o}));
            }

        # Sync with values entered
        @v = split(/\s+/, $in{"value_$o"});
        for(my $i=0; $i<@pos || $i<@v; $i++) {
            if ($i<@pos && $i<@v) {
                # Updating a value
                $opts[$pos[$i]+1] = $v[$i];
                }
            elsif ($i<@pos && $i>=@v) {
                # Removing a value
                splice(@opts, $pos[$i], 2);
                }
            elsif ($i>=@pos && $i<@v) {
                # Adding a value, at the end
                push(@opts, $o, $v[$i]);
                }
            }
        }

    &set_current_value("smtpd_client_restrictions", join(" ", @opts));
    }

&unlock_postfix_files();

&reload_postfix();

&webmin_log("client");
&redirect("");




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