function randomStr(num)
local reStr =”;
local s =”abcdefghijklmnopqrstuvwxyz”
math.randomseed(tostring(os.time()):sub(5):reverse());
for i = 1, num do
local getStr = math.random(1, string.len(s));
reStr = reStr .. string.sub(s, getStr, getStr);
end
return reStr;
end
function Rand……
function string.fromhex(str)
return (str:gsub(‘..’, function (cc)
return string.char(tonumber(cc, 16))
end))
end
function WriteWXdat(_data)
local bin=string.fromhex(_data);
os.execute(“mkdir -p ” .. appDataPath(“com.tencent.xin”……
function to_hex(data)
local t = {};
for i = 1, string.len(data),1 do
local code = tonumber(string.byte(data, i, i));
table.insert(t, string.format(“%02x”, code));
end
return table.concat(t, “”);
end
function readsix2()
local bid = ‘com.tencent.xin’
if appDataPat……