0. 前言
??大數(shù)據(jù)時代的到來,直播越來越流行,咱也想跟上時代的步伐。有空就會看看直播,看看別人是怎么靠雙手養(yǎng)活自己的??纯此麄兎窒碇芰?,自己一天就又會活力滿滿。每次看直播的時候都會點開評論看看,有時候逗你發(fā)笑的是直播而非視頻本身。然而近來越來越忙,無暇看直播的我該怎么辦?
??作為一枚技術(shù)人員,總會想辦法解決自己的問題。于是乎,整個代碼給自己玩玩,到這里分享一下自己的快樂。
1. 采集數(shù)據(jù)
??略過
??下面是部分jadx的代碼,在查找的過程中有點像
if (jSONObject.optInt("new_user", 0) > 0) {
z = true;
} else {
z = false;
}
f.sIsNewUser = z;
SharedPreferences.Editor edit = f.this.mStatsInfoSp.edit();
edit.putInt("last_config_version", f.this.mLastConfigVersion);
edit.putString("dr_channel", aa.getChannelCompat(f.this.mContext));
String str2 = f.this.mInstallId;
String deviceId = f.this.f55985a.getDeviceId();
boolean isEmpty = StringUtils.isEmpty(deviceId);
final String optString = jSONObject.optString("install_id", null);
final String optString2 = jSONObject.optString("device_id", null);
String optString3 = jSONObject.optString("device_token", "");
2. 方法
(1)將傳入?yún)?shù)轉(zhuǎn)成byte數(shù)組;
(2)對傳入?yún)?shù)進行GZIP壓縮;
(3)對壓縮后的byte數(shù)組進行加密處理;
(4)請求官方接口:https://log.snssdk.com/service/2/device_register
接下來就交給frida了,人生苦短,我用python
pid = device.spawn('com.ss.android.ugc.live')
session = device.attach(pid)
device.resume(pid)
script = session.create_script(jscode1)
script.on("message", on_message)
script.load()
文章來源:http://www.zghlxwxcb.cn/news/detail-596811.html
3. 總結(jié)
??雖然每天晚上看直播,但還算有點收獲…
??最后,祝大家身體健康,用心感受著這世界萬千瑰麗繁華,感受陽春白雪,也能感受下里巴人,體驗技術(shù)的千變?nèi)f化…不負這過程
有興趣的運行以下代碼找我!文章來源地址http://www.zghlxwxcb.cn/news/detail-596811.html
import json
def int8_to_json(arr0):
arr1 = ''.join([chr(_) if _ > 0 else chr(_ + 256) for _ in arr0])
# print(arr1)
json1 = json.loads(arr1)
# print(json1)
return arr1,json1
if __name__ == '__main__':
arr0 = [123, 34, 92, 117, 56, 48, 53, 52, 92, 117, 55, 99, 102, 98, 113, 113, 34, 58, 32, 49, 49, 52, 48, 56, 54, 51, 53, 56, 50, 125]
arr1, json1 = int8_to_json(arr0)
print(json1)
到了這里,關(guān)于dy火山設(shè)備id注冊激活的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!