Last active
August 29, 2015 14:28
-
-
Save SafeEval/bb11ca212d9371d259db to your computer and use it in GitHub Desktop.
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
// exit_x86-linux.c - exit() x86 linux shellcode. | |
char sc[] = "\x31\xc0\x31\xdb\xb3\x2a\xb0\x01\xcd\x80"; | |
int main() | |
{ | |
int (*func)(); | |
func = (int (*)()) sc; | |
(int)(*func)(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment