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文件,运行iridium-utils中的get_packet_id.py获取packet_id.json,运行proto2json.py获取packet_serialization.json。对于国际服(OSREL),应该将iridium-bruteforce.py
中函数rsa_decrypt
的private_key_4.pem
改为private_key_5.pem
。
Get the corresponding version of the proto file, run get_packet_id.py
in iridium-utils to obtain packet_id.json
, and run proto2json.py
to obtain packet_serialization.json
. For the global version (OSREL), the file name private_key_4.pem
should be changed to private_key_5.pem
in the function rsa_decrypt in iridium-bruteforce.py
.