Skip to content

Instantly share code, notes, and snippets.

@mcnutty26
Last active February 15, 2017 15:21
Show Gist options
  • Save mcnutty26/bbc0ae0db5c4ccf47c9f26e8d0ad6019 to your computer and use it in GitHub Desktop.
Save mcnutty26/bbc0ae0db5c4ccf47c9f26e8d0ad6019 to your computer and use it in GitHub Desktop.
#! /bin/env bash
gcc -o runner -fno-stack-protector -z execstack runner.c
#char code[] = "\x31\xc0\xb0\x01\x31\xdb\xcd\x80";
#int main(int argc, char **argv)
#{
# int (*func)();
# func = (int (*)()) code;
# (int)(*func)();
#}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment