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


Viewing file:     save_image.cgi (2.61 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# save_image.cgi

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

&lock_file($config{'lilo_conf'});
$conf = &get_lilo_conf();
if ($in{'delete'}) {
    # deleting an existing image
    $image = $conf->[$in{'idx'}];
    &save_directive($conf, $image);
    &flush_file_lines();
    &unlock_file($config{'lilo_conf'});
    &webmin_log("delete", "image",
            &find_value("label", $image->{'members'}), \%in);
    &redirect("");
    exit;
    }
elsif ($in{'new'}) {
    # creating a new kernel image
    $image = { 'name' => 'image',
           'members' => [ ] };
    }
else {
    # updating an existing image
    $oldimage = $image = $conf->[$in{'idx'}];
    }

# Validate and store inputs
$in{'label'} =~ /\S+/ || &error($text{'image_ename'});
&save_subdirective($image, "label", $in{'label'});
$in{'optional'} || -r $in{'image'} ||
    &error(&text('image_ekernel', $in{'image'}));
$image->{'value'} = $in{'image'};
if ($in{'opts'} == 0) {
    &save_subdirective($image, "append");
    &save_subdirective($image, "literal");
    }
elsif ($in{'opts'} == 1) {
    &save_subdirective($image, "append", "\"$in{'append'}\"");
    &save_subdirective($image, "literal");
    }
else {
    &save_subdirective($image, "append");
    &save_subdirective($image, "literal", "\"$in{'append'}\"");
    }
if ($in{'rmode'} == 0) {
    &save_subdirective($image, "root");
    }
elsif ($in{'rmode'} == 1) {
    &save_subdirective($image, "root", "current");
    }
elsif ($in{'rmode'} == 2) {
    &save_subdirective($image, "root", $in{'root'});
    }
if ($in{'initrd_def'}) {
    &save_subdirective($image, "initrd");
    }
else {
    -r $in{'initrd'} || &error(&text('image_einitrd', $in{'initrd'}));
    &save_subdirective($image, "initrd", $in{'initrd'});
    }
&save_subdirective($image, "read-only", $in{'ro'} == 1 ? "" : undef);
&save_subdirective($image, "read-write", $in{'ro'} == 2 ? "" : undef);
if ($in{'vga'} eq "") {
    &save_subdirective($image, "vga");
    }
elsif ($in{'vga'} eq "other") {
    $in{'vgaother'} =~ /^\d+$/ ||
        &error("VGA text mode must be an integer");
    &save_subdirective($image, "vga", $in{'vgaother'});
    }
else {
    &save_subdirective($image, "vga", $in{'vga'});
    }
if ($in{'passmode'} == 0) {
    &save_subdirective($image, "password");
    }
else {
    &save_subdirective($image, "password", $in{'password'});
    }
&save_subdirective($image, "restricted", $in{'restricted'} ? "" : undef);
&save_subdirective($image, "lock", $in{'lock'} ? "" : undef);
&save_subdirective($image, "optional", $in{'optional'} ? "" : undef);

# Save the actual image structure
&save_directive($conf, $oldimage, $image);
&flush_file_lines();
&unlock_file($config{'lilo_conf'});
&webmin_log($in{'new'} ? 'create' : 'modify', "image",
        &find_value("label", $image->{'members'}), \%in);
&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.0129 ]--