mirror of
https://github.com/raphaeIl/Novaria.git
synced 2025-12-15 07:54:36 +01:00
server now fully supports PC client, implement AESGCM, (Aes256Gcm not supported on android),
This commit is contained in:
@@ -40,7 +40,7 @@ namespace Novaria.GameServer.Controllers.Api.ProtocolHandlers
|
||||
Id = 1,
|
||||
Hashtag = 4562,
|
||||
HeadIcon = 100101,
|
||||
NickName = "夏萝莉是小楠梁",
|
||||
NickName = "seggs",
|
||||
Gender = false,
|
||||
Signature = "",
|
||||
TitlePrefix = 1,
|
||||
@@ -54,9 +54,18 @@ namespace Novaria.GameServer.Controllers.Api.ProtocolHandlers
|
||||
|
||||
|
||||
byte[] real_key = AeadTool.key3;
|
||||
ClientType real_client_type = AeadTool.clientType;
|
||||
|
||||
// load from pcap
|
||||
AeadTool.clientType = ClientType.Mobile; // my pcap were from mobile so gotta switch it over
|
||||
AeadTool.InitAeadTool();
|
||||
|
||||
PcapParser.PcapParser.Instance.Parse("all_mainmenu_packets.json");
|
||||
|
||||
// after pcap parse switch it back, this should rlly be done inside PcapParser.Parse()
|
||||
AeadTool.clientType = real_client_type;
|
||||
AeadTool.InitAeadTool();
|
||||
|
||||
PlayerInfo pcapPlayerInfo = (PlayerInfo)PcapParser.PcapParser.Instance.GetPcapPacket(NetMsgId.player_data_succeed_ack);
|
||||
|
||||
PlayerInfo playerInfoResponse = new PlayerInfo()
|
||||
|
||||
Reference in New Issue
Block a user