Exemplo n.º 1
0
        private static void Main(string[] pArgs)
        {
            RegisterFileAssociation(".msb", "MapleShark", "MapleShark Binary File", Assembly.GetExecutingAssembly().Location, string.Empty, 0);

            CraftNetTools.AppUpdates.Check();
            GMSKeys.Initialize();

            RuntimeHost.Initialize();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainForm(pArgs));
        }
Exemplo n.º 2
0
 internal MapleAES(ushort pBuild, byte pLocale, byte[] pIV)
 {
     mBuild = pBuild;
     if ((short)pBuild < 0)   // Second one
     {
         pBuild = (ushort)(0xFFFF - pBuild);
     }
     if (pLocale == 8 && pBuild >= 118) // GMS uses random keys since 118!
     {
         mAES.Key = GMSKeys.GetKeyForVersion(pBuild);
     }
     else
     {
         mAES.Key = sSecretKey;
     }
     mAES.Mode    = CipherMode.ECB;
     mAES.Padding = PaddingMode.PKCS7;
     mTransformer = mAES.CreateEncryptor();
     mIV          = pIV;
 }