need help: mapleshark incorrect packets

Results 1 to 7 of 7
  1. #1
    Registered wubinlzx is online now
    MemberRank
    Oct 2012 Join Date
    16Posts

    sad need help: mapleshark incorrect packets


    RaGEZONE Recommends

    RaGEZONE Recommends

    login no problem->image1
    Click image for larger version. 

Name:	1.png 
Views:	22 
Size:	32.3 KB 
ID:	161766


    selection characters ->image2
    start game
    Click image for larger version. 

Name:	2.png 
Views:	22 
Size:	28.1 KB 
ID:	161767
    this is cms 146
    what am I to do
    Last edited by wubinlzx; 4 Weeks Ago at 07:22 PM. Reason: info


  2. #2
    Registered wubinlzx is online now
    MemberRank
    Oct 2012 Join Date
    16Posts

    Re: need help: mapleshark incorrect packets

    please help me. thank you

  3. #3
    (O_o(o_O(O_O)o_O)O_o) Novak is offline
    Gold SubscriberRank
    Apr 2009 Join Date
    The NetherlandsLocation
    1,119Posts

    Re: need help: mapleshark incorrect packets

    From a PM i got a while back:

    I seem to receive this question a lot lol. Anyway, I never finished decrypting the opcode encryption on the outbound packets. However the inbound encryption is very simple:

    As soon as you enter the game with a character, you will receive a packet that's 32k~ish in length. As soon as you've received this packet (which contains the outbound opcode encryption information) the inbound traffic's encryption changes. This 32k packet itself, and any inbound traffic after receiving it is encrypted as follows

    (C# function for mapleshark, you can put this in MapleAES.cs)
    PHP Code:
    public void SimpleSubtractDecode(byte[] pData
            { 
             
                
    uint dwKey mIV == null : (uint)(mIV[0] | mIV[1] << mIV[2] << 16 mIV[3] << 24); 
                
    uint nRes dwKey
                 
                for (
    uint i 0pData.Length; ++i
                { 
                    
    pData[i] = (byte)(pData[i] - dwKey); 
                    
    nRes 1
                } 
            } 
    (Ignore the ugly name shit)

    Instead of decrypting using AES, you use this function instead. After this function, just like with the AES decrypts, you generate a new IV.
    ~ will reply to pm's ~
    ~ . ~

  4. #4
    Registered wubinlzx is online now
    MemberRank
    Oct 2012 Join Date
    16Posts

    Re: need help: mapleshark incorrect packets

    Quote Originally Posted by Novak View Post
    From a PM i got a while back:

    I seem to receive this question a lot lol. Anyway, I never finished decrypting the opcode encryption on the outbound packets. However the inbound encryption is very simple:

    As soon as you enter the game with a character, you will receive a packet that's 32k~ish in length. As soon as you've received this packet (which contains the outbound opcode encryption information) the inbound traffic's encryption changes. This 32k packet itself, and any inbound traffic after receiving it is encrypted as follows

    (C# function for mapleshark, you can put this in MapleAES.cs)
    PHP Code:
    public void SimpleSubtractDecode(byte[] pData
            { 
             
                
    uint dwKey mIV == null : (uint)(mIV[0] | mIV[1] << mIV[2] << 16 mIV[3] << 24); 
                
    uint nRes dwKey
                 
                for (
    uint i 0pData.Length; ++i
                { 
                    
    pData[i] = (byte)(pData[i] - dwKey); 
                    
    nRes 1
                } 
            } 
    (Ignore the ugly name shit)

    Instead of decrypting using AES, you use this function instead. After this function, just like with the AES decrypts, you generate a new IV.
    Thank you Reply
    How do I use it?
    mAES.SimpleSubtractDecode(pBuffer);?
    return nRes?

  5. #5
    I'm overrated. Fraysa is offline
    GammaRank
    Apr 2008 Join Date
    4,817Posts

    Re: need help: mapleshark incorrect packets

    Quote Originally Posted by wubinlzx View Post
    Thank you Reply
    How do I use it?
    mAES.SimpleSubtractDecode(pBuffer);?
    return nRes?
    Make a boolean that indicates if the 32k packet was received. Once you receive it, set it to true. If it's set, use the method @Novak posted instead of MapleAES's TransformAES.

    The method should be called from MapleStream. Place it here:

    Code:
    if ((pTransformLocale & TransformMethod.AES) != 0) mAES.TransformAES(pBuffer);

  6. #6
    (O_o(o_O(O_O)o_O)O_o) Novak is offline
    Gold SubscriberRank
    Apr 2009 Join Date
    The NetherlandsLocation
    1,119Posts

    Re: need help: mapleshark incorrect packets

    just make sure to also decrypt the 32k long one with the new method. It doesn't start after you receive it, it starts as you receive it.
    ~ will reply to pm's ~
    ~ . ~

  7. #7
    Registered wubinlzx is online now
    MemberRank
    Oct 2012 Join Date
    16Posts

    Re: need help: mapleshark incorrect packets

    Thank you for your help
    The problem has been solved @Novak @Fraysa




Advertisement