Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > 12Sky2
You last visited: Today at 16:27

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Time Stamps Cracked..

Discussion on Time Stamps Cracked.. within the 12Sky2 forum part of the MMORPGs category.

Reply
 
Old   #1
 
tri407tiny's Avatar
 
elite*gold: 0
Join Date: Feb 2008
Posts: 620
Received Thanks: 272
Time Stamps Cracked..

So ive decided to look into the time stamp function and found a a few things. Time-stamps are actually two 4byte int that never go over the limitations of a 3 byte int. The 4th and 8th byte thus are always zero, so the game replaces the 8th byte with part of the packet id, then following that, the 9th byte, happens to be packet id.

The time stamp, or as i like to refer to as the "key" is made this way, though i see no use. As the key is based on this "magic number" though i cant seem to find out how thats made, ill figure it out later.
Code:
extern int __cdecl MagicNumberGenerator(int last magic number)
{
New magic number = last magic number
Imul New Magic Number, New Magic Number, 000343fd
New Magic Number += 00269ec3
Last magic number = new magic number
int Temp_Magic number = new magic number
Temp_Magic number >>= 16
Temp_Magic number += 00007fff
return Temp_Magic number 
}
Once you have the magic number you divide 10000 by the magic number and store the remainder, then you get another magic number, divide 10000 by it and store the reminder, then you multiply the remainder together and some two other things, take the final product and copy it into key slot 1 or the first time stamp int, do this all over again for the second key(time stamp).


Note: Yes , i know that that is not "usable" code , though keep in mind i did all of this in 7 hours. It may not be perfect though i will try my hardest, when i get ahold of my computer as once i find how the magic number is originally generated i will post here.

Note: Hay what is the true use of this function if we are taking the remainder ?? we cannot reverse the multiplication of two remainder, thus the server could never really use this, unless im wrong.
tri407tiny is offline  
Thanks
1 User
Old 07/02/2011, 18:59   #2

 
Mega Byte's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 1,777
Received Thanks: 1,003
server would do most of it in reverse

MagicNumber-0x00007FFF
MagicNumber <<= 16

etc im not too sure how to follow the rest of it as your names for things are confusing :P
Mega Byte is offline  
Old 07/02/2011, 19:41   #3
 
tri407tiny's Avatar
 
elite*gold: 0
Join Date: Feb 2008
Posts: 620
Received Thanks: 272
:P Yea ill fix that up in a bit, but we dont send the magic number only use it .
tri407tiny is offline  
Old 07/02/2011, 20:31   #4

 
Mega Byte's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 1,777
Received Thanks: 1,003
This may be a long shot and I have not fully looked at it but what if these magic bytes and **** just get reversed down to packet count for send or recv packets :P the servers continously sending a number too client as well... so i donno
It just seems like alot of stuff that dosnt need to be there to obfuscate something.
Mega Byte is offline  
Old 07/03/2011, 13:42   #5
 
Wazapoo's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 236
Received Thanks: 286
Nice work, i found a error in your code though.
Code:
Temp_Magic number += 00007fff
should be
Code:
Temp_Magic number &= 00007fff
The server doesnt check the magic numbers at all though, it only checks the 8th byte, so i didnt do anything with this when i worked with packets when i reversed the magic number generation myself.
Wazapoo is offline  
Old 07/03/2011, 17:43   #6

 
Mega Byte's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 1,777
Received Thanks: 1,003
Fair enough :P and good spotting on the error
Mega Byte is offline  
Old 07/03/2011, 18:41   #7
 
elite*gold: 0
Join Date: Jul 2010
Posts: 623
Received Thanks: 175
Wtf is a magic number?
iktov2 is offline  
Old 07/03/2011, 19:24   #8
 
Wazapoo's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 236
Received Thanks: 286
We are just calling the 8 first bytes in every packet magic numbers because they arent related to time (not sure though) so time stamp isnt a good name for them.
Wazapoo is offline  
Old 07/04/2011, 12:24   #9

 
Mega Byte's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 1,777
Received Thanks: 1,003
Agrees with Wazapoo :P
And i knew they wernt required for time stuff as i bp'ed send ages back and changed them to garbage and the packet still worked..
Mega Byte is offline  
Old 07/05/2011, 20:37   #10
 
tri407tiny's Avatar
 
elite*gold: 0
Join Date: Feb 2008
Posts: 620
Received Thanks: 272
Thanks for the correction, adding now. Yea, though i cannot see using this in the server, probably will add my own code cave to make a better "Magic Number"
tri407tiny is offline  
Reply


Similar Threads Similar Threads
League of Legends Stamps
02/15/2012 - League of Legends - 31 Replies
I made some stamps and trying to complete the list of champion stamps i can make. I will update and put up new stamps daily and i hope you enjoy it :D Examples below http://i.imgur.com/DLry5.png http://i.imgur.com/lZCLY.png http://i.imgur.com/RzwgE.png http://i.imgur.com/23sX5.png http://i.imgur.com/N8tpd.png http://i.imgur.com/ZDROW.png http://i.imgur.com/fRY98.png http://i.imgur.com/Ki8dY.png http://i.imgur.com/kjtId.png http://i.imgur.com/ln7J8.png Click for more - > League of...
[TUT] Packet encryption, and time-stamps.
06/18/2011 - 12Sky2 Hacks, Bots, Cheats & Exploits - 10 Replies
(NOTE): I sadly did not make this, the information provided below is an excerpt fromhere. This has helped me recently figure out 6 of the 8 bytes of which twelve-sky 2 based its time-stamp on. Packet Hacking (Reversing HASH 1 in Water Margin) Part 1 g3nuin3 & hunter Welcome to this hopefully not too long paper covering packet deciphering and emulating raw packets. This series is going to cover how I and hunter hacked water margin and worked on deciphering the packets, this...



All times are GMT +1. The time now is 16:27.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.