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.142.53.239
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 : http_headers.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. ]]-- local logger = require "rspamd_logger" local ucl = require "ucl" local spf_symbols = { symbol_allow = 'R_SPF_ALLOW', symbol_deny = 'R_SPF_FAIL', symbol_softfail = 'R_SPF_SOFTFAIL', symbol_neutral = 'R_SPF_NEUTRAL', symbol_tempfail = 'R_SPF_DNSFAIL', symbol_na = 'R_SPF_NA', symbol_permfail = 'R_SPF_PERMFAIL', } local dkim_symbols = { symbol_allow = 'R_DKIM_ALLOW', symbol_deny = 'R_DKIM_REJECT', symbol_tempfail = 'R_DKIM_TEMPFAIL', symbol_na = 'R_DKIM_NA', symbol_permfail = 'R_DKIM_PERMFAIL', symbol_trace = 'DKIM_TRACE', } local dkim_trace = { pass = '+', fail = '-', temperror = '?', permerror = '~', } local dmarc_symbols = { allow = 'DMARC_POLICY_ALLOW', badpolicy = 'DMARC_BAD_POLICY', dnsfail = 'DMARC_DNSFAIL', na = 'DMARC_NA', reject = 'DMARC_POLICY_REJECT', softfail = 'DMARC_POLICY_SOFTFAIL', quarantine = 'DMARC_POLICY_QUARANTINE', } local opts = rspamd_config:get_all_opt('dmarc') if opts and opts['symbols'] then for k, _ in pairs(dmarc_symbols) do if opts['symbols'][k] then dmarc_symbols[k] = opts['symbols'][k] end end end opts = rspamd_config:get_all_opt('dkim') if opts then for k, _ in pairs(dkim_symbols) do if opts[k] then dkim_symbols[k] = opts[k] end end end opts = rspamd_config:get_all_opt('spf') if opts then for k, _ in pairs(spf_symbols) do if opts[k] then spf_symbols[k] = opts[k] end end end -- Disable DKIM checks if passed via HTTP headers rspamd_config:add_condition("DKIM_CHECK", function(task) local hdr = task:get_request_header('DKIM') if hdr then local parser = ucl.parser() local res, err = parser:parse_string(tostring(hdr)) if not res then logger.infox(task, "cannot parse DKIM header: %1", err) return true end local p_obj = parser:get_object() local results = p_obj['results'] if not results and p_obj['result'] then results = { { result = p_obj['result'], domain = 'unknown' } } end if results then for _, obj in ipairs(results) do local dkim_domain = obj['domain'] or 'unknown' if obj['result'] == 'pass' or obj['result'] == 'allow' then task:insert_result(dkim_symbols['symbol_allow'], 1.0, 'http header') task:insert_result(dkim_symbols['symbol_trace'], 1.0, string.format('%s:%s', dkim_domain, dkim_trace.pass)) elseif obj['result'] == 'fail' or obj['result'] == 'reject' then task:insert_result(dkim_symbols['symbol_deny'], 1.0, 'http header') task:insert_result(dkim_symbols['symbol_trace'], 1.0, string.format('%s:%s', dkim_domain, dkim_trace.fail)) elseif obj['result'] == 'tempfail' or obj['result'] == 'softfail' then task:insert_result(dkim_symbols['symbol_tempfail'], 1.0, 'http header') task:insert_result(dkim_symbols['symbol_trace'], 1.0, string.format('%s:%s', dkim_domain, dkim_trace.temperror)) elseif obj['result'] == 'permfail' then task:insert_result(dkim_symbols['symbol_permfail'], 1.0, 'http header') task:insert_result(dkim_symbols['symbol_trace'], 1.0, string.format('%s:%s', dkim_domain, dkim_trace.permerror)) elseif obj['result'] == 'na' then task:insert_result(dkim_symbols['symbol_na'], 1.0, 'http header') end end end end return false end) -- Disable SPF checks if passed via HTTP headers rspamd_config:add_condition("SPF_CHECK", function(task) local hdr = task:get_request_header('SPF') if hdr then local parser = ucl.parser() local res, err = parser:parse_string(tostring(hdr)) if not res then logger.infox(task, "cannot parse SPF header: %1", err) return true end local obj = parser:get_object() if obj['result'] then if obj['result'] == 'pass' or obj['result'] == 'allow' then task:insert_result(spf_symbols['symbol_allow'], 1.0, 'http header') elseif obj['result'] == 'fail' or obj['result'] == 'reject' then task:insert_result(spf_symbols['symbol_deny'], 1.0, 'http header') elseif obj['result'] == 'neutral' then task:insert_result(spf_symbols['symbol_neutral'], 1.0, 'http header') elseif obj['result'] == 'softfail' then task:insert_result(spf_symbols['symbol_softfail'], 1.0, 'http header') elseif obj['result'] == 'permfail' then task:insert_result(spf_symbols['symbol_permfail'], 1.0, 'http header') elseif obj['result'] == 'na' then task:insert_result(spf_symbols['symbol_na'], 1.0, 'http header') end end end return false end) rspamd_config:add_condition("DMARC_CALLBACK", function(task) local hdr = task:get_request_header('DMARC') if hdr then local parser = ucl.parser() local res, err = parser:parse_string(tostring(hdr)) if not res then logger.infox(task, "cannot parse DMARC header: %1", err) return true end local obj = parser:get_object() if obj['result'] then if obj['result'] == 'pass' or obj['result'] == 'allow' then task:insert_result(dmarc_symbols['allow'], 1.0, 'http header') elseif obj['result'] == 'fail' or obj['result'] == 'reject' then task:insert_result(dmarc_symbols['reject'], 1.0, 'http header') elseif obj['result'] == 'quarantine' then task:insert_result(dmarc_symbols['quarantine'], 1.0, 'http header') elseif obj['result'] == 'tempfail' then task:insert_result(dmarc_symbols['dnsfail'], 1.0, 'http header') elseif obj['result'] == 'softfail' or obj['result'] == 'none' then task:insert_result(dmarc_symbols['softfail'], 1.0, 'http header') elseif obj['result'] == 'permfail' or obj['result'] == 'badpolicy' then task:insert_result(dmarc_symbols['badpolicy'], 1.0, 'http header') elseif obj['result'] == 'na' then task:insert_result(dmarc_symbols['na'], 1.0, 'http header') end end end return false end)
Close