Hey,

I am writing some shellcode to exploit a service running on my machine. My goal is to spawn a shell, with system privlieges, and start a telnet service via commandline.

I have the C++/ASM code to acomplish this, my question is how to take the pertianit ASM code and convert it into a char array in C++.

IE:
0e 05 0a ff....blah blah blah

into:
Code:
char payload[] = "\x0e\x05\x0a\xff";
My ASM code comes from MSVC++'s debugger...

Thanks for any input