Skip to content

Instantly share code, notes, and snippets.

@sroettger
Created October 15, 2017 06:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sroettger/b6d5082acbc864699b8a64b5d9947184 to your computer and use it in GitHub Desktop.
Save sroettger/b6d5082acbc864699b8a64b5d9947184 to your computer and use it in GitHub Desktop.
Set Theory from Hack Dat Kiwi 2017 CTF.
#include <signal.h>
#include <unistd.h>
typedef void (*sighandler_t)(int);
sighandler_t signal(int signum, sighandler_t handler) {
void (*fn)() = (void (*)())0x404310;
fn();
_exit(0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment