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


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

require './filemin-lib.pl';
use lib './lib';
use File::MimeInfo;

&ReadParse();

get_paths();

$archive_type = mimetype($cwd.'/'.$in{'file'});

if ($archive_type =~ /x-bzip/) {
    $cmd = "tar xvjfp ".quotemeta("$cwd/$in{'file'}").
           " -C ".quotemeta($cwd);
    }
elsif ($archive_type =~ /x-tar|\/gzip|x-xz|x-compressed-tar/) {
    $cmd = "tar xfp ".quotemeta("$cwd/$in{'file'}").
           " -C ".quotemeta($cwd);
    }
elsif ($archive_type =~ /x-7z/) {
    $cmd = "7z x ".quotemeta("$cwd/$in{'file'}")." -o" .quotemeta($cwd);
    }
elsif ($archive_type =~ /\/zip/) {
    $cmd = "unzip ".quotemeta("$cwd/$in{'file'}")." -d ".quotemeta($cwd);
    }
elsif ($archive_type =~ /\/x-rar|\/vnd\.rar/) {
    $cmd = "unrar x -r -y ".quotemeta("$cwd/$in{'file'}").
           " ".quotemeta($cwd);
    }
elsif ($archive_type =~ /(\/x-rpm|\/x-deb)/) {
    my $dir = fileparse( "$cwd/$name", qr/\.[^.]*/ );
    my $path = quotemeta("$cwd/$dir");
    &make_dir($path, 0755);
    if ($archive_type =~ /\/x-rpm/) {
        $cmd = "(rpm2cpio ".quotemeta("$cwd/$name").
               " | (cd ".quotemeta($path)."; cpio -idmv))";
        }
    else {
        $cmd = "dpkg -x ".quotemeta("$cwd/$name")." ".quotemeta($path);
        }
    }
else {
    &error($text{'extract_etype'});
    }

# Run the extraction command
$out = &backquote_logged("$cmd 2>&1 >/dev/null </dev/null");
if ($?) {
    &error(&html_escape($out));
    }

&redirect("index.cgi?path=".&urlize($path));

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