Coder Social home page Coder Social logo

Comments (2)

lastbattle avatar lastbattle commented on August 16, 2024

I'll add EMS to that drop-down too!
I kinda suspect that both EMS and MSEA is really just a single development team and it make sense that it shares the same key.

1
1

There are many hints of that in the MSEA client, including a full-working EMS launcher that can be enabled by just changing an instruction during startup..


As for the detection of keys, I dont think it is feasible as it will take far too much time to load the latest version of MapleStory (v180++).

Here's why:
The AES keys are tied to the IV, user key (which is also used for packet encryption) and the MS version number.
Harepacker have no knowledge of the version number, aside from the IV and user key. It needs to be tested from 0~200 (whatever the latest ver is)..


        internal bool ParseMainWzDirectory(out string parseErrorMessage, bool lazyParse = false)
        {
            WzBinaryReader reader = new WzBinaryReader(File.Open(this.path, FileMode.Open, FileAccess.Read, FileShare.Read), WzIv);

            this.Header = new WzHeader();
            this.Header.Ident = reader.ReadString(4);
            this.Header.FSize = reader.ReadUInt64();
            this.Header.FStart = reader.ReadUInt32();
            this.Header.Copyright = reader.ReadNullTerminatedString();
            reader.ReadBytes((int)(Header.FStart - reader.BaseStream.Position));
            reader.Header = this.Header;
            this.version = reader.ReadInt16();

            if (mapleStoryPatchVersion == -1)
            {
                const short MAX_PATCH_VERSION = 10000; // wont be reached for the forseeable future.

                for (int j = 0; j < MAX_PATCH_VERSION; j++)
                {
                    this.mapleStoryPatchVersion = (short)j;
                    this.versionHash = GetVersionHash(version, mapleStoryPatchVersion);
                    if (this.versionHash == 0)
                    {
                        continue;
                    }

        public static WzMutableKey GenerateWzKey(byte[] WzIv)
        {
            return new WzMutableKey(WzIv, CryptoConstants.getTrimmedUserKey());
        }

from harepacker-resurrected.

gilmatok avatar gilmatok commented on August 16, 2024

Thanks for your input. I'm closing the issue. I sent you a message on Twitter regarding this project, please add me on Discord instead if you prefer: Fraysa#2832.

from harepacker-resurrected.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.