!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/webmin/   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_sendmail.cgi (1.63 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Save mail server settings

require './webmin-lib.pl';
&ReadParse();
&error_setup($text{'sendmail_err'});
&foreign_require("mailboxes");
&lock_file($mailboxes::module_config_file);
%mconfig = &foreign_config("mailboxes");

# Save smtp server
if ($in{'mode'} == 0) {
    delete($mconfig{'send_mode'});
    }
elsif ($in{'mode'} == 1) {
    $mconfig{'send_mode'} = '127.0.0.1';
    }
else {
    &to_ipaddress($in{'smtp'}) || &to_ip6address($in{'smtp'}) ||
        &error($text{'sendmail_esmtp'});
    $mconfig{'send_mode'} = $in{'smtp'};
    $in{'port'} =~ /^\d+$/ || &error($text{'sendmail_eport'});
    if ($in{'port'} == 25) {
        delete($mconfig{'smtp_port'});
        }
    else {
        $mconfig{'smtp_port'} = $in{'port'};
        }
    }

# Save login and password
if ($in{'login_def'}) {
    delete($mconfig{'smtp_user'});
    delete($mconfig{'smtp_pass'});
    }
else {
    $in{'login_user'} =~ /^\S+$/ || &error($text{'sendmail_elogin'});
    eval "use Authen::SASL";
    if ($@) {
        # Perl module missing
        &error(&text('sendmail_esasl',
            "/cpan/download.cgi?source=3&cpan=Authen::SASL&".
                        "mode=2&return=/$module_name/&returndesc=".
                        &urlize($text{'index_return'}),
            "Authen::SASL"));
        }
    $mconfig{'smtp_user'} = $in{'login_user'};
    $mconfig{'smtp_pass'} = $in{'login_pass'};
    }

# Save auth method
$mconfig{'smtp_auth'} = $in{'auth'};

# Save from address
if ($in{'from_def'}) {
    delete($mconfig{'webmin_from'});
    }
else {
    $in{'from'} =~ /^\S+\@\S+$/ || &error($text{'sendmail_efrom'});
    $mconfig{'webmin_from'} = $in{'from'};
    }

&save_module_config(\%mconfig, "mailboxes");
&unlock_file($mailboxes::module_config_file);
&webmin_log("sendmail");
&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.0051 ]--