mirror of
https://github.com/raphaeIl/Novaria.git
synced 2025-12-14 15:34:37 +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()
|
||||
|
||||
@@ -19,16 +19,7 @@ namespace Novaria.GameServer
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
//byte[] spub = new byte[] { 0, 219, 176, 103, 73, 245, 239, 125, 227, 240, 79, 51, 62, 250, 113, 143, 251, 155, 158, 45, 101, 1, 6, 185, 140, 153, 221, 163, 200, 112, 161, 11, 138, 163, 7, 71, 182, 127, 144, 192, 147, 169, 124, 54, 220, 208, 253, 121, 80, 41, 4, 97, 51, 129, 32, 228, 40, 227, 89, 226, 152, 51, 24, 105, 233, 140, 153, 114, 142, 244, 105, 13, 201, 150, 39, 192, 101, 50, 39, 57, 59, 110, 88, 201, 150, 221, 251, 248, 247, 250, 33, 114, 125, 200, 182, 163, 176 };
|
||||
//byte[] cpriv = new byte[] { 10,128,76,30};
|
||||
|
||||
//byte[] res = DiffieHellman.Instance.CalculateKey(spub, cpriv);
|
||||
|
||||
//Utils.PrintByteArray(res);
|
||||
|
||||
//table_Character table_Character = table_Character.Parser.ParseFrom(File.ReadAllBytes("E:\\documents\\Decompiling\\Extracted\\NOVA\\Novaria\\Novaria.SDKServer\\Character"));
|
||||
|
||||
//Log.Information("Starting SDK Server...");
|
||||
Log.Information("Starting SDK Server...");
|
||||
try
|
||||
{
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
Reference in New Issue
Block a user