LCKB
Connector externalIP changer - Printable Version

+- LCKB (https://lckb.dev/forum)
+-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109)
+--- Forum: Release Zone (https://lckb.dev/forum/forumdisplay.php?fid=190)
+---- Forum: Episode 1 Releases (https://lckb.dev/forum/forumdisplay.php?fid=191)
+----- Forum: Tools (https://lckb.dev/forum/forumdisplay.php?fid=163)
+----- Thread: Connector externalIP changer (/showthread.php?tid=829)

Pages: 1 2 3


- someone - 07-04-2012


Actually you can Encrypt and Decrypt using Engine.dll.

Here is something that I made:

//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 );