HEX
Server: Apache/2.4.65 (Debian)
System: Linux kubikelcreative 5.10.0-35-amd64 #1 SMP Debian 5.10.237-1 (2025-05-19) x86_64
User: www-data (33)
PHP: 8.4.13
Disabled: NONE
Upload Files
File: //usr/local/usermin-1.823/file/contents.cgi
#!/usr/bin/perl
# Show the contents of 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
$realfile = &unmake_chroot($in{'file'});
&switch_acl_uid();
($err, @lines) = &extract_archive($realfile, 0, 1);
print $err,"\n";
foreach my $l (@lines) {
	print $l,"\n";
	}