pcap path "not hardcoded" anymore

This commit is contained in:
raphaeIl
2025-01-14 08:00:26 -05:00
parent 2ac86f80b6
commit 7bd937dac5
7 changed files with 19119 additions and 18 deletions

View File

@@ -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);