Created
January 6, 2019 17:00
-
-
Save AdityaChaudhary/d37361b4847de1640ad2923d277b936f to your computer and use it in GitHub Desktop.
C program to test the shellcode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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