不废话直接上代码,其实核心就是解读了com.ss.iphone.ugc.Aweme.plist文件,利用LUA的表达式提取出sec_uid。
require("TSLib")
ts = require("ts")
function query()
local json = ts.json
local file = appDataPath("com.ss.iphone.ugc.Aweme") .. "/Library/Preferences/" .. "com.ss.iphone.ugc.Aweme.plist"
local txt = readFileString(file)
local uid, sec
if txt then
local url = ""
local tab = {}
for str in string.gmatch(txt, "www.iesdouyin.com/share/user/[%?%w_=&-sec]+") do
if not string.match(str, "P$") then
url = str
break
end
end
if url == "" then
error("号错了")
end
uid, sec = string.match(url, "%d+"), string.match(url, "sec_uid=([%?%w_-]+)")
return uid, sec
end
error("号错了")
end
u, s = query()
dialog(u)
dialog(s)
以上代码是触动格式,自己可以动手写个触摸的。