mirror of
https://github.com/raphaeIl/Novaria.git
synced 2025-12-13 23:14:53 +01:00
pcap path "not hardcoded" anymore
This commit is contained in:
BIN
Novaria.SDKServer/Character
Normal file
BIN
Novaria.SDKServer/Character
Normal file
Binary file not shown.
@@ -102,6 +102,8 @@ namespace Novaria.GameServer.Controllers.Api
|
||||
Request.Body.CopyTo(memoryStream); // Copy request body to MemoryStream
|
||||
byte[] rawPayload = memoryStream.ToArray(); // Get raw bytes from MemoryStream
|
||||
|
||||
Utils.PrintByteArray(rawPayload);
|
||||
|
||||
IKEReq ikeRequest = HttpNetworkManager.Instance.ParseIkeRequest(rawPayload);
|
||||
|
||||
Log.Information("Decoded Packet: " + JsonSerializer.Serialize(ikeRequest));
|
||||
|
||||
@@ -11,6 +11,7 @@ using System.Numerics;
|
||||
using Microsoft.AspNetCore.DataProtection;
|
||||
using System.Text;
|
||||
using System.Text.Json;
|
||||
using Nova.Client;
|
||||
|
||||
namespace Novaria.GameServer
|
||||
{
|
||||
@@ -18,13 +19,16 @@ 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[] 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);
|
||||
//byte[] res = DiffieHellman.Instance.CalculateKey(spub, cpriv);
|
||||
|
||||
Utils.PrintByteArray(res);
|
||||
Log.Information("Starting SDK Server...");
|
||||
//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...");
|
||||
try
|
||||
{
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
Reference in New Issue
Block a user