Skip to content

Instantly share code, notes, and snippets.

@P1kachu
Created November 18, 2015 22:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save P1kachu/21aad13bfb17c26fae11 to your computer and use it in GitHub Desktop.
Save P1kachu/21aad13bfb17c26fae11 to your computer and use it in GitHub Desktop.
Test shellcode (C)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void)
{
const char shelly[] = ""; // Your shellcode
printf("Length: %lu\n", strlen(shelly));
int (*launch)();
launch = (int (*)()) shelly;
(int)(*launch)();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment