forked from PGR/ascnet
1
0
Fork 0
ascnet/AscNet/Program.cs

22 lines
28 KiB
C#
Raw Normal View History

using AscNet.Common.Util;
using AscNet.GameServer;
using MessagePack;
using Newtonsoft.Json;
2023-10-06 13:29:27 +00:00
namespace AscNet
{
internal class Program
{
static void Main(string[] args)
{
Logger.c.Log("Starting...");
byte[] test = Miscs.HexStringToByteArray("c9000036a163d20000d083f163930202c5d07d92ab4e6f746966794c6f67696ec5d06dde0019aa506c6179657244617461de001da24964ce00fd0cdca44e616d65a3726669a54c6576656c1ca45369676ea0ad446973706c6179436861724964ce000fbb5ba8426972746864617982a34d6f6e0ba344617908aa486f6e6f723900f02601a85365727665724964a435303030a54c696b657300aa437572725465616d496401b04368616c6c656e67654576656e74496400b21e00c048656164506f7274726169749400448ab3d1af1800904672616d65496400ab1100504d6564616c3600f11c417070656172616e636553686f775479706500b54461696c795265636569766547696674436f756e7400bb1700ff0d4163746976656e65737352657761726453746174757300bc5765656b1e0006f0b5a54d61726b73dc003505cd28a1cd2841cd05ddcd0578cd0579cd057acd057bcd057c0166cd01f7cd01f9cccccd0191cd28a2cd28a6cd03e9cd03eacd0708cd28a4cd28abcd28aacd28a3cd28a9cd28a8cd0641cd2776cd28a769cd0321cd0322cd025ace0001aa91cd07d1cd06a5cd0515ce0001aa92cd03ebcd0516cd2855cd0517cd1770cd28c3cd28c0cd27dccd070ace0001a9c9ce0001aa2dce0001aaf5ce0001ab59ce0001abbdcd28c2a9477569646544617461dc002bce000186a1ce000186a20a00f7bea3cdc350cdc3b5cdc3b6cdc3b7cdc419cdc41acdc41bcdc47dcdc4e1cdc545cdc5aacdc5abcdc60dcdc670cdc671cdc673cdc6d5ce00030d41cdc6f3cdc739cdc79dcdc801cdc865cdc8c9cdc92dcdc9f5cdcabdcdcb21cdcb3fcdcb85cdcc4dcdccb1cdcd15cdcd79cdc991cdcf0dcdce41cdcfd1ce000445cbcdcd7aae436f6d6d756e69636174696f6e73dc001d65666768016902036f6a04056b6c060708096d0a0b700c6e0e0f101913ae53686f774368617261637465727390ae536869656c6446756e634c69737490b5fa01f002657474696e67496e666f86a95469746c6508022501ad3e00010f0081ab46617368696f6e0d0078b1576561706f6e1300a1ad446f726d69746f7279220015ab0f00f109496400aa43726561746554696d65ce60fa7d32ad4c6173744f03011300b0651fee6aaa5265706f72741000b200ae4368616e67654e616d3300c06463353ea5466c61677300b72100f0004c696d69744374726c436f6e666967d000c2dc023983a2496417a9537461460090ce5cc6cb20a7456e64320050ce61558a642100171a21004563c8ea702100407242fce42100181b2100357211a021004063844050210017182100455d4b6600210040709c908021001719210036601bc54200042100171c210045651bbbf04200406f2804a042001f1d210005406524f634210017492100445f9f9250420010001d00184d1d0025e17d1d0041ce60333ac2001863210025bf362100013e00187b1d002afbdb1d0027cc871e0049603c74d0790028cc881e002b3dc63c0018891e002b4ee93c00188a1e003a6edb285a00178b1e004a615591a81e00188c1e002b962b3c00188d1e002bcd8a1e0018c91e002b0f6496001fca1e000a1fcb1e000a1fcc1e000a1fcd1e000a1fce1e000938cd012d1f002a8ca3690137cd01f41f00365f308ea30240655166c423023fcd01f52300054260e24b44230017f62300446330eb80740143ce633a25460018f72300271e7623002327b0230017f823003f651a088c00002703782300355f24f6830152ce600578408c0017fe23003665123bd80331654c3cb70337cd01ff23003663feb177033165e136560337cd0258230036651281fd030546002702bc23003a619155690238cd03211f000c6a0238cd03221f00259f5e8400015a0338cd03231f000e3e0018241f000e3e0018251f0025a8990401035d0017261f003c62651f7c0017271f003564ec457504033e0017281f00356295a08401021f002725e61f0035644f47710241ce645730540437cd284b2300355fca08800051ce600e5014c60127277523003664e41623003265123ac6012f27762300053164ed97fb043fcd277723000632f6d1b4690008520209690006460017794600356509461001078c00177a2300094600062300082e053664e5bc010332650aa6470328277c460009230022113d24032f277d2300060546001f7e230006054600187f23002ff8318c000118802300260aff810132643cd2c70128278123000faf0003188223000fc701031883230009460005d20018d923000f4600031fda2300040295022627db1f0007570423112f050216dc1f000a610000ff0202280218dd230007150352ce64f58070230018de230026f58034044264febaf0230018df230027feba4b022307f5460017e02300366507f5460005af0027283d23003764ed972300220552fa0228283e230027eee86900052300183f23002ff03a460001184023002ff18b460001184123002ff2dd46000117a1230035629843310442ce62a6c44b0227290523003764f6d16900220e8ca4012f290623000f1807230027f8238c00054600180823002ff974690001180923002ffac6460001186923000891023364f974af00186a23000f690003186b230008460006af001fcd2300053364fc1769001fd723000f18d8230026e5aed20006460009630326e6ff18010623000963032fe8514600010767034fce64e9a2460001096b032feaf44600010f6b030705f50018ded20008020306af00096b03080203062300086b03090203052300282a31690009a40104fc05292a3a2300165cf50005fc052f2a3b230005056
Crypto.HaruCrypt.Decrypt(test);
Console.WriteLine(JsonConvert.SerializeObject(MessagePackSerializer.Typeless.Deserialize(MessagePack.MessagePackSerializer.Deserialize<Packet>(test, MessagePackSerializerOptions.Standard.WithCompression(MessagePackCompression.Lz4Block)).Content)));
Task.Run(GameServer.Server.Instance.Start);
2023-10-06 13:29:27 +00:00
SDKServer.SDKServer.Main(args);
}
}
}