!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/authentic-theme/extensions/file-manager/   drwxr-xr-x
Free 3.76 GB of 27.03 GB (13.92%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

#
# Authentic Theme (https://github.com/authentic-theme/authentic-theme)
# Copyright Ilia Rostovtsev <programming@rostovtsev.ru>
# Licensed under MIT (https://github.com/authentic-theme/authentic-theme/blob/master/LICENSE)
#

use File::Basename;
use lib (dirname(__FILE__) . '/../../lib');
use Time::Local;

require(dirname(__FILE__) . '/file-manager-lib.pm');

my $command;
my $has_zip    = has_command('zip');
my $do_zip     = ($in{'do_zip'} eq '1' ? 1 : 0);
my $extension  = (($has_zip && $do_zip) ? "zip" : "tar.gz");
my $filename   = $in{'filename'};
my $target_dir = tempname("$filename");
my $target     = "$target_dir/$filename.$extension";

if ($in{'cancel'} eq '1') {
    unlink_file($target_dir);
} elsif ($in{'download'} eq '1') {
    my $file = simplify_path($target);
    for $allowed_path (@allowed_paths) {
        if (is_under_directory($allowed_path, $file)) {
            my $size = -s "$target";
            print "Content-Type: application/x-download\n";
            print "Content-Disposition: attachment; filename=\"$filename.$extension\"\n";
            print "Content-Length: $size\n\n";
            open(FILE, "< $file") or die "can't open $file: $!";
            binmode FILE;
            local $/ = \102400;

            while (<FILE>) {
                print $_;
            }
            close FILE;
            unlink_file($target_dir);
            last;
        }
    }
} else {
    mkdir($target_dir, 0755);
    if ($has_zip && $do_zip) {
        $command = "cd " . quotemeta($cwd) . " && zip -r " . quotemeta($target);
    } else {
        $command = "tar czf " . quotemeta($target) . " -C " . quotemeta($cwd);
    }

    foreach my $name (split(/\0/, $in{'name'})) {
        $name =~ s/$in{'cwd'}\///ig;
        if (-e ($cwd . '/' . $name)) {
            $command .= " " . quotemeta($name);
        }
    }
    system_logged($command);
}
head();

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