!C99Shell v. 1.0 pre-release build #16!

Software: Apache/2.0.54 (Fedora). PHP/5.0.4 

uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 

uid=48(apache) gid=48(apache) groups=48(apache)
context=system_u:system_r:httpd_sys_script_t
 

Safe-mode: OFF (not secure)

/usr/libexec/webmin/software/   drwxr-xr-x
Free 3.84 GB of 27.03 GB (14.21%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     view.cgi (899 B)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# view.cgi
# Output the contents of a file

require './software-lib.pl';
$p = $ENV{'PATH_INFO'};

# Try to guess type from filename
if ($p =~ /\.([^\.\/]+)$/) {
    $ext = lc($1);
    &get_miniserv_config(\%miniserv);
    open(MIME, $miniserv{'mimetypes'});
    while(<MIME>) {
        s/#.*//g;
        if (/(\S+)\s+(.*)/) {
            foreach $e (split(/\s+/, $2)) {
                if ($ext eq $e) {
                    $type = $1;
                    last;
                    }
                }
            }
        }
    close(MIME);
    }
if (!$type) {
    # No idea .. use the 'file' command
    if (`file "$p"` =~ /text|script/) {
        $type = "text/plain";
        }
    else {
        $type = "application/octet-stream";
        }
    }

# Dump the file
if (!open(FILE, "<$p")) {
    print "Content-type: text/plain\n\n";
    print &text('list_eview', $p, $!),"\n";
    }
else {
    @st = stat($p);
    print "Content-length: $st[7]\n";
    print "Content-type: $type\n\n";
    while(read(FILE, $buf, 1024)) {
        print $buf;
        }
    close(FILE);
    }


:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #16 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0028 ]--