Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

ACL file format

Status
Not open for further replies.
Newbie Spellweaver
Joined
Jan 26, 2012
Messages
75
Reaction score
73
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 - ACL file format - RaGEZONE Forums


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.
 

Attachments

You must be registered for see attachments list
Last edited:
Newbie Spellweaver
Joined
Dec 6, 2012
Messages
44
Reaction score
2
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???
 
Newbie Spellweaver
Joined
Dec 6, 2012
Messages
44
Reaction score
2
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???
 
Newbie Spellweaver
Joined
Jan 26, 2012
Messages
75
Reaction score
73
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.
 
Newbie Spellweaver
Joined
Dec 6, 2012
Messages
44
Reaction score
2
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 ???
 
Goodbye
Loyal Member
Joined
Oct 6, 2009
Messages
965
Reaction score
134
The released DLL can be used fine with the released VB ZA. Call the DLL functions from VB, modify packets and it's done.
 
Newbie Spellweaver
Joined
Dec 6, 2012
Messages
44
Reaction score
2
in vb 6 i have to add that asdecr.dll as related document??
coz asdecr.dll file is made in c++ 2010

Untitled - ACL file format - RaGEZONE Forums :?:
when i am adding asdecr.dll in vb 6 as reference

tell me how many references have to add???
 

Attachments

You must be registered for see attachments list
Last edited:
Newbie Spellweaver
Joined
Dec 6, 2012
Messages
44
Reaction score
2
chrissdegrece thxx for help

but have question

have to register that asdecr.dll??
by regsvr32.exe???
 
Last edited:
Newbie Spellweaver
Joined
Dec 6, 2012
Messages
44
Reaction score
2
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 - ACL file format - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Last edited:
Newbie Spellweaver
Joined
Dec 6, 2012
Messages
44
Reaction score
2
@ prologos
Code:
[COLOR="#008000"]How to solve this problem (choose one)
1. Debug and fix the AS.[/COLOR]

can u tell which address should have to edit in account server to log character properly??
 
Last edited:
Newbie Spellweaver
Joined
Dec 6, 2012
Messages
44
Reaction score
2
@ prologos
can u tell me how to fix acl in account server??
any address in hex??
 
Status
Not open for further replies.
Back
Top