Concatenation in C void* char* 10-28-2017, 02:03 AM
#1
Hello guys
I got this code :
How can I get the value of lpvaddr in hex (ex:\x00\x22\x33\x44) and append it to <all> variable ?
thanks
I got this code :
Code:
LPVOID lpvAddr;
lpvAddr = VirtualAlloc(NULL, strlen(jmp_esp), 0x3000, 0x40);
char *x = "\x41\x42\x43";
char *all;
strcat(all , x);
strcat(all , lpvAddr); // here I got error because can't concate char * with lpvAddr
How can I get the value of lpvaddr in hex (ex:\x00\x22\x33\x44) and append it to <all> variable ?
thanks