Go Back   GamerzPlanet - For All Your Online Gaming Needs!! > gPotato Games > Luna Online

Luna Online Discuss anything related to Luna Online. Luna Online hacks


unpackung bin files

Luna Online


 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 06-24-2009, 04:56 PM   #1
MaxOff
Lurker
 
Last Online: 08-26-2009 04:02 AM
Join Date: May 2006
Posts: 9
Rep Power: 0
Rep Points: 10
MaxOff is on a distinguished road
Feedback: (0)
Points: 2,805.07
Bank: 0.00
Total Points: 2,805.07
unpacking bin files

Hey,

because i had to modify some of the bin files i had to first unpack and then repack them.

and because im such a nice guy im releasing the unpack part in pseudo code.
For the lasy guys who dont want it look up themself.

Note: All operations and fields are signed, unless stated otherwise.
Code:
binFile
{
	dword	Date;		//Formated in decimal
	dword	Crypt;
	dword	Length;
	byte	CheckSum1;
	byte	Data[Length];
	byte	CheckSum2
}

Decryption in pseudo code
if (CheckSum1 != CheckSum2)
	FAIL
checkSum3= Crypt;
for (counter= 0; counter > Length; counter++)
{
	checkSum3+= Data[counter];
	Data[counter]-= counter;
	if (counter % Crypt == 0) //unsigned
		Data[counter]-= Crypt;
}
if (checkSum3 != CheckSum1)
	FAIL
SUCCESS

Last edited by MaxOff; 06-24-2009 at 05:56 PM.
MaxOff is offline   Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump

All times are GMT -7. The time now is 11:02 AM.

 

Copyright ©2009, GamerzPlanet.Net
Visits: