$36 GRAYBYTE WORDPRESS FILE MANAGER $55

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/imunify360-webshield/lualib/resty/

HOME
Current File : /opt/imunify360-webshield/lualib/resty//string.lua
-- Copyright (C) by Yichun Zhang (agentzh)


local ffi = require "ffi"
local ffi_new = ffi.new
local ffi_str = ffi.string
local C = ffi.C
--local setmetatable = setmetatable
--local error = error
local tonumber = tonumber


local _M = { _VERSION = '0.16' }


ffi.cdef[[
typedef unsigned char u_char;

u_char * ngx_hex_dump(u_char *dst, const u_char *src, size_t len);

intptr_t ngx_atoi(const unsigned char *line, size_t n);
]]

local str_type = ffi.typeof("uint8_t[?]")

local BUF_MAX_LEN = 1024
local hex_buf = ffi_new(str_type, BUF_MAX_LEN)
function _M.to_hex(s)
    local len = #s
    local buf_len = len * 2
    local buf
    if buf_len <= BUF_MAX_LEN then
        buf = hex_buf
    else
        buf = ffi_new(str_type, buf_len)
    end
    C.ngx_hex_dump(buf, s, len)
    return ffi_str(buf, buf_len)
end

function _M.atoi(s)
    return tonumber(C.ngx_atoi(s, #s))
end


return _M

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
16 Dec 2025 10.11 AM
root / root
0755
core
--
16 Dec 2025 10.11 AM
root / root
0755
dns
--
16 Dec 2025 10.11 AM
root / root
0755
limit
--
16 Dec 2025 10.11 AM
root / root
0755
lrucache
--
16 Dec 2025 10.11 AM
root / root
0755
template
--
16 Dec 2025 10.11 AM
root / root
0755
upstream
--
16 Dec 2025 10.11 AM
root / root
0755
websocket
--
16 Dec 2025 10.11 AM
root / root
0755
aes.lua
9.624 KB
26 Nov 2025 10.43 PM
root / root
0644
cookie.lua
5.548 KB
26 Nov 2025 10.43 PM
root / root
0644
core.lua
0.693 KB
26 Nov 2025 10.43 PM
root / root
0644
http.lua
28.99 KB
26 Nov 2025 10.43 PM
root / root
0644
http_headers.lua
1.123 KB
26 Nov 2025 10.43 PM
root / root
0644
lock.lua
4.581 KB
26 Nov 2025 10.43 PM
root / root
0644
lrucache.lua
6.95 KB
26 Nov 2025 10.43 PM
root / root
0644
md5.lua
1.194 KB
26 Nov 2025 10.43 PM
root / root
0644
random.lua
0.656 KB
26 Nov 2025 10.43 PM
root / root
0644
sha.lua
0.23 KB
26 Nov 2025 10.43 PM
root / root
0644
sha1.lua
1.164 KB
26 Nov 2025 10.43 PM
root / root
0644
sha224.lua
1.021 KB
26 Nov 2025 10.43 PM
root / root
0644
sha256.lua
1.192 KB
26 Nov 2025 10.43 PM
root / root
0644
sha384.lua
1.021 KB
26 Nov 2025 10.43 PM
root / root
0644
sha512.lua
1.327 KB
26 Nov 2025 10.43 PM
root / root
0644
shell.lua
4.875 KB
26 Nov 2025 10.43 PM
root / root
0644
signal.lua
3.115 KB
26 Nov 2025 10.43 PM
root / root
0644
string.lua
0.866 KB
26 Nov 2025 10.43 PM
root / root
0644
template.lua
22.686 KB
26 Nov 2025 10.43 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF