ACL file format

Results 1 to 14 of 14
  1. #1
    Member prologos is offline
    MemberRank
    Jan 2012 Join Date
    South KoreaLocation
    75Posts

    ACL file format

    I'll try to speak only important part in understanding the structure of the file.
    acl files, 188 bytes is assigned to each character that total 940 bytes.
    Among the components of 188 bytes, the important part is the following.

    acl.gif


    When the server encrypts/decrypts the acl files are working off by 4 bytes.
    Encryption/Decryption key code is as follows.

    Code:
    CSimpleCrypt::CSimpleCrypt()
    {
    	m_ConstKey1 = 2366183;
    	m_ConstKey2 = 1432754;
    	m_DynamicKey = 79984829;
    }
    
    CSimpleCrypt::~CSimpleCrypt()
    {
    }
    
    void CSimpleCrypt::Encrypt32bit(const char * pSrc, char * pDest)
    {
    	int DynamicKey = m_DynamicKey;
    
    	for (int i = 0 ; i < 4 ; i++)
    	{
    		pDest[i] = (char)((BYTE)(pSrc[i]) ^ (DynamicKey >> 8));
    		DynamicKey = ((BYTE)(pDest[i]) + DynamicKey) * m_ConstKey1 + m_ConstKey2;
    	}
    }
    
    void CSimpleCrypt::Decrypt32bit(const char * pSrc, char * pDest)
    {
    	int DynamicKey = m_DynamicKey;
    
    	for (int i = 0 ; i < 4 ; i++)
    	{
    		pDest[i] = (char)((BYTE)(pSrc[i]) ^ (DynamicKey >> 8));
    		DynamicKey = ((BYTE)(pSrc[i]) + DynamicKey) * m_ConstKey1 + m_ConstKey2;
    	}
    }


    Example:
    acl original | Encryption(packet)
    ---------------------------
    00 00 00 00 <-> 78 9D 01 F5
    00 01 00 00 <-> 78 9C E6 49
    A5 00 00 00 <-> DD 3A F2 79
    00 FF 00 00 <-> 78 62 CE 12
    00 00 00 00 00 01 00 00 A5 00 00 00 <-> 78 9D 01 F5 78 9C E6 49 DD 3A F2 79



    Tips on 562 Client:
    Algorithm, encryption/decryption of the packet is also a 562 Client.
    The only changes are the part that represents the type of character.

    Initial value
    219 Client | 562 Client
    -------------------------
    00 FF 00 00 | 00 00 FF 00


    If there are any characters
    219 Client | 562 Client
    -------------------------
    00 CL TW 00 | 00 01 CL TW

    CL: Type of character (When you delete a character, FF)
    TW: Hometown


    How to solve this problem (choose one)
    1. Debug and fix the AS.
    2. Use to change the acl packet in 562 ZA.
    Last edited by prologos; 06-04-13 at 04:43 AM.


  2. #2
    Enthusiast Devil Warrior is offline
    MemberRank
    Dec 2012 Join Date
    GujaratLocation
    44Posts

    Re: ACL file format

    2nd option is easy...
    coz it will hard to debug account server... i think soo

    but how to use this code...??
    i am not getting it???
    in C++ and make .dll from it???

  3. #3
    Enthusiast Devil Warrior is offline
    MemberRank
    Dec 2012 Join Date
    GujaratLocation
    44Posts

    Re: ACL file format

    can u tell me how to do Encryption/Decryption???
    by application??
    like i have got that application
    what is the use of this Encryption/Decryption key code???
    how to use that???

  4. #4
    Member prologos is offline
    MemberRank
    Jan 2012 Join Date
    South KoreaLocation
    75Posts

    Re: ACL file format

    This is not a perfect code.
    It is shown that the encryption/decryption is done in formula or just a few.

    Does not have an application for Encryption/Decryption.
    It is by using the formula above, you will be taken care of.

  5. #5
    Enthusiast Devil Warrior is offline
    MemberRank
    Dec 2012 Join Date
    GujaratLocation
    44Posts

    Re: ACL file format

    i am asking that in which application i have to use this code...
    i know its not correct code... but tell me that which application run this code..???
    like (C#,C++,Java script) in which???
    and tell me the process of it ???

  6. #6
    Programmer cyberinferno is offline
    MemberRank
    Jun 2009 Join Date
    127.0.0.1Location
    707Posts

    Re: ACL file format

    Quote Originally Posted by Devil Warrior View Post
    i am asking that in which application i have to use this code...
    i know its not correct code... but tell me that which application run this code..???
    like (C#,C++,Java script) in which???
    and tell me the process of it ???
    Above code is in C++. I think you should make a DLL and call its function in your ZA.

  7. #7
    Goodbye chrissdegrece is offline
    MemberRank
    Oct 2009 Join Date
    GreeceLocation
    1,015Posts

    Re: ACL file format

    The released DLL can be used fine with the released VB ZA. Call the DLL functions from VB, modify packets and it's done.

  8. #8
    Enthusiast Devil Warrior is offline
    MemberRank
    Dec 2012 Join Date
    GujaratLocation
    44Posts

    Re: ACL file format

    in vb 6 i have to add that asdecr.dll as related document??
    coz asdecr.dll file is made in c++ 2010

    untitled.png
    when i am adding asdecr.dll in vb 6 as reference

    tell me how many references have to add???
    Last edited by Devil Warrior; 06-04-13 at 09:37 AM.

  9. #9
    Goodbye chrissdegrece is offline
    MemberRank
    Oct 2009 Join Date
    GreeceLocation
    1,015Posts

    Re: ACL file format


  10. #10
    Enthusiast Devil Warrior is offline
    MemberRank
    Dec 2012 Join Date
    GujaratLocation
    44Posts

    Re: ACL file format

    chrissdegrece thxx for help

    but have question

    have to register that asdecr.dll??
    by regsvr32.exe???
    Last edited by Devil Warrior; 08-04-13 at 08:26 AM.

  11. #11
    Enthusiast Devil Warrior is offline
    MemberRank
    Dec 2012 Join Date
    GujaratLocation
    44Posts

    Re: ACL file format

    Code:
    Private Declare Function decrypt_acl Lib "asdecr.dll" (ByVal acldata As String, ByVal size As Long) As Long
    is that correct??
    and i replaced all timegettime to decrypt_acl

    error coming @ here

    untitled.png
    Last edited by Devil Warrior; 09-04-13 at 12:12 PM.

  12. #12
    Enthusiast Devil Warrior is offline
    MemberRank
    Dec 2012 Join Date
    GujaratLocation
    44Posts

    Re: ACL file format

    @ prologos
    Code:
    How to solve this problem (choose one)
    1. Debug and fix the AS.
    can u tell which address should have to edit in account server to log character properly??
    Last edited by Devil Warrior; 12-05-13 at 08:26 PM.

  13. #13
    Member xqtronline is offline
    MemberRank
    Apr 2012 Join Date
    57Posts

    Re: ACL file format

    Devil Warrior you can make it

  14. #14
    Enthusiast Devil Warrior is offline
    MemberRank
    Dec 2012 Join Date
    GujaratLocation
    44Posts

    Re: ACL file format

    @ prologos
    can u tell me how to fix acl in account server??
    any address in hex??



Advertisement