⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.93
Server IP:
65.108.141.171
Server:
Linux server.heloix.com 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
webmin
/
virtual-server
/
Edit File: 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); }
Simpan