Hello,
I'm trying to follow the document here on encoding a stealth meterpreter payload.
But I get stuck on page 23 where the shellcode is XOR'ed and generates new shellcode. I don't understand how to get it to generate the shellcode. When I run the program I just get gibberish printed out. The .pdf makes it look like I should be getting translated shellcode to use in the next step. What am I doing wrong?
Code:
char buf[]="shellcode here"
int main(int argc, char **argv)
{
int i;
for (i=0 ;i< sizeof buf; i++){
buf[i] = buf[i] ^ 0xcc ;
}
}