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!

Emu Dev Packet Encryption Problem

Joined
Jul 8, 2009
Messages
445
Reaction score
63
Hello guys i am developing Digimon Rpg KR Emulator , there a encryption when you deposit money in bank the value that's client send to server is a value encrypted look i kinda found the logical:

I found the logic pattern
can help me with algortim ?
1bits 1072693248 + 1048576 = 2bits 1073741824
2bis 1073741824 + 524288 = 3bits 1074266112
3bits 1074266112 + 524288 = 4bits 1074790400
4bits 1074790400 + 262144 = 5bits 1075052544
5bits 1075052544 + 262144 = 6bits 1075314688
6bits 1075314688 + 262144 = 7bits 1075576832
7bits 1075576832 + 262144 = 8bits 1075838976
8bits 1075838976 + 131072 = 9bits 1075970048
9bits 1075970048 + 131072 = 10bits 1076101120
10bits 1076101120 + 131072 = 11bits 1076232192
11bits 1076232192 + 131072 = 12bits 1076363264
12bits 1076363264 + 131072 = 13bits 1076494336
13bits 1076494336 + 131072 = 14bits 1076625408
14 bits 1076625408 + 131072 = 15bits 1076756480
15 bits 1076756480 + 131072 = 16bits 1076887552
16 bits 1076887552 + 65536 = 17bits 1076953088
 1048576 1x 524288 2x 262144 4x 131072 8x


The difference will always repeat the double of times that difference of the previous one and the new differente value will be always the division of the value of the previous difference.

I made a ugly algoritm to test and this work but for high value the code too slow:
Code:
// Example program
#include <iostream>
#include <string>
#include <cmath>
using namespace std;


int main()
{
 int z = 1;
 int a,b,y = 1048576;
 a = 1072693248;
 cout<<"type value of B : "<<endl;
 cin>>b;
 int  k =1,j;
 if(a!=b){
             do
             {
                  
                  

                  if(a != b ){
                            for(j = 1; j <= k; j++)
                            {
								if(a!=b){
                                
                                a = a + y ;
                                z = z + 1;


								}
								else{}
                            }
                  }

                k = k + k;
                y = y / 2;
                          
             }while(a!=b);
        }
        else{}
		if(a == b){
            cout<<" the value in Bits : "<<z<<endl;
		}

system("PAUSE");
return EXIT_SUCCESS;
}

Packet Storage 1 Bit :
Code:
35  192.168.25.4:62409  118.130.130.134:7000  40  Send  
0000  CC 88 00 00 28 00 00 00 01 00 00 00 00 00 00 00    ....(...........
0010  00 00 00 00 00 00 F0 3F 00 00 00 00 00 00 00 00    .......?........
0020  00 00 00 00 00 00 00 00                            ........
 
Last edited:
Back
Top