[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: splashscreen.lua
File is not writable. Editing disabled.
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 proxy_port = ngx.var.proxy_port if proxy_port ~= '80' and proxy_port ~= '443' then table.insert(uri_parts, ':' .. proxy_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 vars = prepare_data() template.render('index.html', vars, 'splashscreen')
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 691.44 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: N/A