Jump to content
metin2dev
Metin2International
  • 0
Sign in to follow this  
RSman

lzo/xtea?

Question

Someone know how to change lzo and xtea(?) in source of binary?
In hex editor this looks like this:
B99EB0026F69810563989B2879181A00
22B8B40464B26E1FAEEA1800A6F6FB1C

Share this post


Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Lzo is a data compression algorithm. It compress data and there are no "lzo keys".

On the other hand, XTEA is a block cipher which uses a 8 byte key to encrypt/decrypt data.

static DWORD s_adwEterPackKey[] =
{
	45129401,
	92367215,
	681285731,
	1710201,
};

static DWORD s_adwEterPackSecurityKey[] =
{
	78952482,
	527348324,
	1632942,
	486274726,
};

I've made a converter in python: (as requested by someone via PM)

>>> from struct import pack as spack
>>> a1=spack("LLLL", 45129401,92367215,681285731,1710201)
>>> a1.encode('hex')
'b99eb0026f69810563989b2879181a00'
>>>
>>> a2 = 'b99eb0026f69810563989b2879181a00'
>>> a3=a2.decode('hex')
>>> from struct import unpack as sunpack
>>> sunpack("LLLL", a3)
(45129401L, 92367215L, 681285731L, 1710201L)
>>>
  • Like 13

Share this post


Link to post
Share on other sites
  • 0

I have this:

static DWORD s_adwEterPackKey[] =
{
    56219512,
    93478326,
    792396842,
    2821312,
};

static DWORD s_adwEterPackSecurityKey[] =
{
    67841371,
    416237213,
    2521831,
    375163615,
};

How can I know HEX? I dont know how to use your script :(

  • Like 1

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, AlCapone said:

I have this:

static DWORD s_adwEterPackKey[] =
{
    56219512,
    93478326,
    792396842,
    2821312,
};

static DWORD s_adwEterPackSecurityKey[] =
{
    67841371,
    416237213,
    2521831,
    375163615,
};

How can I know HEX? I dont know how to use your script :(

i do not understand how it works..

we help anyone?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×