![]() |
|
[Help]Please help - Printable Version +- LCKB (https://lckb.dev/forum) +-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109) +--- Forum: Programmers Gateway (https://lckb.dev/forum/forumdisplay.php?fid=196) +---- Forum: Coders Talk (https://lckb.dev/forum/forumdisplay.php?fid=192) +---- Thread: [Help]Please help (/showthread.php?tid=984) |
- =Anonymous= - 08-05-2012 Here is code by someone: //this function returns the stream size(output buffer size) typedef int (*pEncryptfunc)(char* input_buffer, int size, char* key, char* output_buffer, char* output_buffer_unpacked); //... HANDLE dllHandle = LoadLibraryA("Engine.dll"); if(dllHandle == NULL){ printf("could not load Dll file"); system("pause"); return 1; } pEncryptfunc Encrypt, Decrypt; Encrypt = (pEncryptfunc)0x10443DA0; Decrypt=(pEncryptfunc)0x104440C0; char Message[] ="my message"; //initializing the Key char PrivateKey [] ={0x53, 0x34, 0x65, 0x53, 0x96, 0x62, 0x47, 0x51}; char* key =new char[9*16]; memset(key, 0, 9*16); memcpy(key+(8*16), PrivateKey, 8); //initializing the output buffers msg_size = strlen(Message); char* out_bp = new char [msg_size + 2 +4];//2 for the last 2 bytes in the packet, and 4 for the encrypted msg char* out_b = new char[msg_size + 2 +4]; //encryption int size = Encrypt(Message, msg_size, key,out_bp, out_b ); //decryption Char* Msg = new char[size]; Char* Msg_unpacked = new char[size]; int size2 = size = Decrypt(out_bp, size, key,Msg, Msg_unpacked ); So, who can compile this and upload? Thanks - HateMe - 08-23-2012 not only that the "privatekey" changes always but for making a loginserver this is enough - holylastchaos - 08-25-2012 Anonymous and Warmonger are the same people with multiacc xD - =Anonymous= - 09-01-2012 No no no, im not from epvp. Im from Russia - =Anonymous= - 09-01-2012 I don't know english language so perfectly like Warmonger, as you can see. |