local h2b = {
['0']='0000', ['1']='0001', ['2']='0010', ['3']='0011',
['4']='0100', ['5']='0101', ['6']='0110', ['7']='0111',
['8']='1000', ['9']='1001', ['A']='1010', ['B']='1011',
['C']='1100', ['D']='1101', ['E']='1110', ['F']='1111'
}
function hex2bin(n)
return n:upper():gsub(".", h2b)
end
function dec2bin(n)
return hex2bin(tostring(n):format("%X"))
end
['0']='0000', ['1']='0001', ['2']='0010', ['3']='0011',
['4']='0100', ['5']='0101', ['6']='0110', ['7']='0111',
['8']='1000', ['9']='1001', ['A']='1010', ['B']='1011',
['C']='1100', ['D']='1101', ['E']='1110', ['F']='1111'
}
function hex2bin(n)
return n:upper():gsub(".", h2b)
end
function dec2bin(n)
return hex2bin(tostring(n):format("%X"))
end
--String to binary
-- 1. Convert String to HEX
function string.tohex(str)
return (str:gsub('.', function (c)
return string.format('%02X', string.byte(c)) end))
end
-- 2. Helper function to covert base n number
function basen(n,b)
n = math.floor(n)
if not b or b == 10 then return tostring(n) end
local digits = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
local t = {}
local sign = ""
if n < 0 then sign = "-" n = -n end
repeat local d = (n % b) + 1 n = math.floor(n / b)
table.insert(t, 1, digits:sub(d,d)) until n == 0
return sign .. table.concat(t,"")
end
-- 3. Function to convert Hex to bin
function hex2bin(s)
dec = tonumber(s,16)
return tostring(basen(dec,2))
end
--- testing
str = 'im XOR'
s = string.tohex(str)
print(s) -- = 696D20584F52
bin = hex2bin(s)
print(bin) -- = 11010010110110100100000010110000100111101010010
-- 1. Convert String to HEX
function string.tohex(str)
return (str:gsub('.', function (c)
return string.format('%02X', string.byte(c)) end))
end
-- 2. Helper function to covert base n number
function basen(n,b)
n = math.floor(n)
if not b or b == 10 then return tostring(n) end
local digits = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
local t = {}
local sign = ""
if n < 0 then sign = "-" n = -n end
repeat local d = (n % b) + 1 n = math.floor(n / b)
table.insert(t, 1, digits:sub(d,d)) until n == 0
return sign .. table.concat(t,"")
end
-- 3. Function to convert Hex to bin
function hex2bin(s)
dec = tonumber(s,16)
return tostring(basen(dec,2))
end
--- testing
str = 'im XOR'
s = string.tohex(str)
print(s) -- = 696D20584F52
bin = hex2bin(s)
print(bin) -- = 11010010110110100100000010110000100111101010010
/lua
local str = "print (\" nhu long lon \")"
print (str)
str = string.dump(load(str), true, true)
print (str)
str = string.gsub(str, '.', function (c)
return string.format("\\x%02x", c:byte())
end)
print ("load(\"" .. str .. "\")()")if debug.traceback == nil or gg.getFile == nil then while(true) do return end end
Forwarded from DeCrypt All Lua (𝙃𝙤𝙩𝙜𝙞𝙧𝙡𝙘𝙝𝙞𝙣𝙖)
SS • Lua
Share free ? 😂
--- Go Copy Tool Dec 😂😂
---- Congratulations all were tricked 😂
A = gg.prompt({"🔸 sᴇʟᴇᴄᴛ sᴄʀɪᴘᴛ:","❦ ᴅᴇᴄʀʏᴘᴛ KonɀLeΙ͠ v5.0"},{"/sdcard/Decode Konzlet5"},{"file","checkbox"})---- Congratulations all were tricked 😂
[Dec]SCRIPT K1GAMERV.4.3.lua.lua
193.7 KB
Game : PUBG Mobile
Encode Type : ELGGRevo5.0
Encode Type : ELGGRevo5.0
[Dec]load_0000000._𝚍𝚎𝚌_.lua
55.4 KB
Script Hack : Call of duty ?
Encode Type : TopGeo 9.1
Encode Type : TopGeo 9.1