C into shell code

Viewed 35

I'm trying to get a shellcode using C. I cannot just take .obj file due to the large amount of nulls. I've also tried "Shellcode Compiler", but it hasn't helped me.

Are there any other projects which can help me, or any ways to create a useable shell code from C? My simple C code:

#include <Windows.h>

int main()
{
    WinExec("SomeFile", 0);
}
1 Answers

Seeing that c is a compiled language and not interpreted. I am sure you will get better results from converting the binary to shellcode.

Check out GitHub vulnwarex/bin2sc.

Related