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


Viewing file:     save_misc.cgi (1.83 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Update misc PHP options

require './phpini-lib.pl';
&error_setup($text{'misc_err'});
&ReadParse();
&can_php_config($in{'file'}) || &error($text{'list_ecannot'});

&lock_file($in{'file'});
$conf = &get_config($in{'file'});

# Save tag styles
&save_directive($conf, "short_open_tag",
        $in{"short_open_tag"} || undef);
&save_directive($conf, "asp_tags",
        $in{"asp_tags"} || undef);

# Save output options
&save_directive($conf, "zlib.output_compression",
        $in{"zlib.output_compression"} || undef);
&save_directive($conf, "implicit_flush",
        $in{"implicit_flush"} || undef);

# Save URL open options
&save_directive($conf, "allow_url_fopen",
        $in{"allow_url_fopen"} || undef);

# Save email sending options
$in{"smtp_def"} || &to_ipaddress($in{"smtp"}) || &error($text{'misc_esmtp'});
&save_directive($conf, "SMTP",
        $in{"smtp_def"} ? undef : $in{"smtp"});
$in{"smtp_port_def"} || $in{"smtp_port"} =~ /^\d+$/ ||
    &error($text{'misc_esmtp_port'});
&save_directive($conf, "smtp_port",
        $in{"smtp_port_def"} ? undef : $in{"smtp_port"});

# Save sendmail program
if ($in{"sendmail_path_def"}) {
    &save_directive($conf, "sendmail_path", undef);
    }
else {
    ($fp) = split(/\s+/, $in{"sendmail_path"});
    $fp || &error($text{'misc_esendmail2'})
    &has_command($fp) || &error($text{'misc_esendmail'});
    &save_directive($conf, "sendmail_path", $in{"sendmail_path"});
    }
 
# Save Include open options
&save_directive($conf, "allow_url_include",
    $in{"allow_url_include"} || undef);

# Save CGI Fix Path
&save_directive($conf, "cgi.fix_pathinfo",
    $in{"cgi.fix_pathinfo"} || undef);

# Save Timezone
&save_directive($conf, "date.timezone",
    $in{"date.timezone"} || undef);

&flush_file_lines_as_user($in{'file'});
&unlock_file($in{'file'});
&graceful_apache_restart();
&webmin_log("misc", undef, $in{'file'});

&redirect("list_ini.cgi?file=".&urlize($in{'file'}));


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