MOON
Server: Apache/2.2.31 (Unix) mod_ssl/2.2.31 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4
System: Linux csr818.wilogic.com 2.6.18-419.el5xen #1 SMP Fri Feb 24 22:50:37 UTC 2017 x86_64
User: digitals (531)
PHP: 5.4.45
Disabled: NONE
Upload Files
File: //var/usr/webmin-1.941/file/extract.cgi
#!/usr/bin/perl
# Extract a zip, tar, tar.gz or tar.bz file on the server

require './file-lib.pl';
&ReadParse();
print "Content-type: text/plain\n\n";

# Check permissions
$disallowed_buttons{'upload'} && &error($text{'ebutton'});
if (!&can_access($in{'file'})) {
	print &text('extract_eperm', $in{'file'}),"\n";
	exit(0);
	}

# Go for it
&webmin_log("extract", undef, $in{'file'});
$realfile = &unmake_chroot($in{'file'});
&switch_acl_uid();
$err = &extract_archive($realfile, $in{'delete'});
print $err,"\n";