the package sniffer for genshin impact/yuanshen
Special thanks to Akka0, Sorapointa,tamilpp25, unipendix.
原理详见MagicSniffer。
The principle can be found at MagicSniffer.
安装scapy,参见nahida
获得对应版本的proto文件(比如NickTheHuy),运行iridium-utils中的get_packet_id.py获取packet_id.json,运行proto2json.py获取packet_serialization.json。将iridium-bruteforce.py中GetPlayerTokenReq和GetPlayerTokenRsp的packet_id修改为对应版本的。
Get the corresponding version of the proto file(e.g. from NickTheHuy), run get_packet_id.py
in iridium-utils to obtain packet_id.json
, and run proto2json.py
to obtain packet_serialization.json
. Modify the packet_id for GetPlayerTokenReq
and GetPlayerTokenRsp
in iridium-bruteforce.py
to match the corresponding version.