PNG  IHDR* pHYs+ IDATx]n#; cdLb Ǚ[at¤_:uP}>!Usă cag޿ ֵNu`ݼTâabO7uL&y^wFٝA"l[|ŲHLN밪4*sG3|Dv}?+y߉{OuOAt4Jj.u]Gz*҉sP'VQKbA1u\`& Af;HWj hsO;ogTu uj7S3/QzUr&wS`M$X_L7r2;aE+ώ%vikDA:dR+%KzƉo>eOth$z%: :{WwaQ:wz%4foɹE[9<]#ERINƻv溂E%P1i01 |Jvҗ&{b?9g=^wζXn/lK::90KwrюO\!ջ3uzuGv^;騢wq<Iatv09:tt~hEG`v;3@MNZD.1]L:{ծI3`L(÷ba")Y.iljCɄae#I"1 `3*Bdz>j<fU40⨬%O$3cGt]j%Fߠ_twJ;ABU8vP3uEԑwQ V:h%))LfraqX-ۿX]v-\9I gl8tzX ]ecm)-cgʒ#Uw=Wlێn(0hPP/ӨtQ“&J35 $=]r1{tLuǮ*i0_;NƝ8;-vݏr8+U-kruȕYr0RnC]*ެ(M:]gE;{]tg(#ZJ9y>utRDRMdr9㪩̞zֹb<ģ&wzJM"iI( .ꮅX)Qw:9,i좜\Ԛi7&N0:asϓc];=ΗOӣ APqz93 y $)A*kVHZwBƺnWNaby>XMN*45~ղM6Nvm;A=jֲ.~1}(9`KJ/V F9[=`~[;sRuk]rєT!)iQO)Y$V ی ۤmzWz5IM Zb )ˆC`6 rRa}qNmUfDsWuˤV{ Pݝ'=Kֳbg,UҘVz2ﴻnjNgBb{? ߮tcsͻQuxVCIY۠:(V뺕 ٥2;t`@Fo{Z9`;]wMzU~%UA蛚dI vGq\r82iu +St`cR.6U/M9IENDB` REDROOM
PHP 5.6.40
Preview: splashscreen.lua Size: 2.93 KB
//proc/thread-self/root/opt/imunify360-webshield/nginx/lua/splashscreen.lua

local template = require 'resty.template'
local digest = require('openssl').digest
local splashscreen_sessions = ngx.shared.splashscreen_sessions


local function make_temp_uid()
    local user_agent = ngx.var.http_user_agent or 'missing_agent'
    local user_data = ngx.var.remote_addr .. user_agent .. tostring(ngx.now())
    local hashsum = digest.digest('sha1', user_data, false)
    return hashsum
end


local function generate(seq)

    local function split(data)
        local buffer = {}
        for i in data:gmatch("%w") do
            table.insert(buffer, tonumber(i))
        end
        return buffer
    end

    local digits = split(seq)
    local ready = {}

    for i, v in ipairs(digits) do
        local buffer = {"("}
        local item = "+!![]"
        if v == 0 then
            table.insert(buffer, "+![]")
        elseif v == 1 then
            table.insert(buffer, "+!+[]")
        else
            table.insert(buffer, "+!+[]")
            for i = 1, v - 1 do
                table.insert(buffer, item)
            end
        end
        if i % 2 == 0 then
            table.insert(buffer, "+[]")
        end
        table.insert(buffer, ")")
        table.insert(ready, table.concat(buffer, ""))
    end

    return "+(" .. table.concat(ready, "+") .. ")"
end

local function prepare_data()
    local uri = ngx.var.request_uri
    local uri_parts = {ngx.var.scheme, '://', ngx.var.host}
    local destination_port = ngx.var.destination_port
    if destination_port ~= '80' and destination_port ~= '443' then
        table.insert(uri_parts, ':' .. destination_port)
    end
    if uri ~= '' and uri ~= '/' then
        table.insert(uri_parts, uri)
    end

    local userid = make_temp_uid()                  -- generate temporary UID (SHA1 hashsum)
    local _start = tonumber(userid:sub(0, 6), 16)   -- take first six symbols and last six ones and
    local _stop = tonumber(userid:sub(-6), 16)      -- convert them to decimal
    local _w = generate(tostring(_start))           -- generate 2 JS check sequences from the decimals
    local _e = generate(tostring(_stop))
    local sum = _start + _stop                      -- Find the sum of the decimals and convert it to hex
    local xsum = string.format("%X", sum)

    -- place original URI to shared dictionary with the hex sum as key
    splashscreen_sessions:set(xsum, table.concat(uri_parts), 60)

    return {
        westval=_w,
        eastval=_e
    }
end

local accept = ngx.var.http_accept
if accept ~= nil and string.find(string.lower(accept), "json") ~= nil then
    ngx.header["Content-Type"] = "application/json"
    ngx.say('{"message": "Access denied by Imunify360 bot-protection. IPs used for automation should be whitelisted"}')
elseif accept ~= nil and string.find(accept, "text/") == nil and accept ~= "*/*" then
    ngx.status = 415                        -- return custom error code
    ngx.say("")
else
    local vars = prepare_data()
    template.render('index.html', vars, 'splashscreen')
end

Directory Contents

Dirs: 0 × Files: 8

Name Size Perms Modified Actions
3.63 KB lrw-r--r-- 2025-12-10 13:08:24
Edit Download
1.09 KB lrw-r--r-- 2025-12-10 13:08:24
Edit Download
4.59 KB lrw-r--r-- 2025-12-10 13:08:24
Edit Download
605 B lrw-r--r-- 2025-12-10 13:08:24
Edit Download
10.25 KB lrw-r--r-- 2025-12-10 13:08:24
Edit Download
2.93 KB lrw-r--r-- 2025-12-10 13:08:24
Edit Download
1.43 KB lrw-r--r-- 2025-12-10 13:08:24
Edit Download
3.84 KB lrw-r--r-- 2025-12-10 13:08:24
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).
© 2026 REDROOM — Secure File Manager. All rights reserved. Built with ❤️ & Red Dark UI