I just tried the following code snippet for shellcode testing purposes:-
#include using namespace std; char sc[] = \"\"; #i\'ve removed the
To execute a shellcode in your C/C++ program with VS, the simplest way is embedding an Assembly code like this example below:
char* buffer="blah blah blah"; int main() { __asm{ lea eax, buffer call eax } }
Hope this help!