����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
local ffi = require 'ffi'
local base = require "resty.core.base"
local C = ffi.C
local FFI_ERROR = base.FFI_ERROR
local get_request = base.get_request
local error = error
local tostring = tostring
ffi.cdef[[
int ngx_http_lua_ffi_get_phase(ngx_http_request_t *r, char **err)
]]
local errmsg = base.get_errmsg_ptr()
local context_names = {
[0x00000001] = "set",
[0x00000002] = "rewrite",
[0x00000004] = "access",
[0x00000008] = "content",
[0x00000010] = "log",
[0x00000020] = "header_filter",
[0x00000040] = "body_filter",
[0x00000080] = "timer",
[0x00000100] = "init_worker",
[0x00000200] = "balancer",
[0x00000400] = "ssl_cert",
[0x00000800] = "ssl_session_store",
[0x00001000] = "ssl_session_fetch",
[0x00002000] = "exit_worker",
[0x00004000] = "ssl_client_hello",
[0x00008000] = "server_rewrite",
[0x00010000] = "proxy_ssl_verify",
[0x00020000] = "precontent",
[0x00040000] = "proxy_ssl_cert",
}
function ngx.get_phase()
local r = get_request()
-- if we have no request object, assume we are called from the "init" phase
if not r then
return "init"
end
local context = C.ngx_http_lua_ffi_get_phase(r, errmsg)
if context == FFI_ERROR then -- NGX_ERROR
error(errmsg, 2)
end
local phase = context_names[context]
if not phase then
error("unknown phase: " .. tostring(context))
end
return phase
end
function ngx.get_raw_phase(r)
local context = C.ngx_http_lua_ffi_get_phase(r, errmsg)
if context == FFI_ERROR then -- NGX_ERROR
error(errmsg, 2)
end
return context
end
return {
version = base.version
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| base.lua | File | 5.96 KB | 0644 |
|
| base64.lua | File | 3.66 KB | 0644 |
|
| coroutine.lua | File | 720 B | 0644 |
|
| ctx.lua | File | 3.89 KB | 0644 |
|
| exit.lua | File | 1.41 KB | 0644 |
|
| hash.lua | File | 3.92 KB | 0644 |
|
| misc.lua | File | 5.7 KB | 0644 |
|
| ndk.lua | File | 2.13 KB | 0644 |
|
| param.lua | File | 2.35 KB | 0644 |
|
| phase.lua | File | 1.65 KB | 0644 |
|
| regex.lua | File | 34.61 KB | 0644 |
|
| request.lua | File | 11.84 KB | 0644 |
|
| response.lua | File | 6.48 KB | 0644 |
|
| shdict.lua | File | 26.56 KB | 0644 |
|
| socket.lua | File | 15.11 KB | 0644 |
|
| time.lua | File | 4.64 KB | 0644 |
|
| uri.lua | File | 3.03 KB | 0644 |
|
| utils.lua | File | 972 B | 0644 |
|
| var.lua | File | 3.82 KB | 0644 |
|
| worker.lua | File | 3.41 KB | 0644 |
|