Skip to content

Instantly share code, notes, and snippets.

@AdityaChaudhary
Created January 6, 2019 17:00
Show Gist options
  • Save AdityaChaudhary/d37361b4847de1640ad2923d277b936f to your computer and use it in GitHub Desktop.
Save AdityaChaudhary/d37361b4847de1640ad2923d277b936f to your computer and use it in GitHub Desktop.
C program to test the shellcode
#include<stdio.h>
#include<string.h>
unsigned char code[] = \
"<shell_code_here>";
main()
{
printf("Shellcode Length: %d\n", strlen(code));
int (*ret)() = (int(*)())code;
ret();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment