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
#!/usr/bin/env python2 | |
# encoding: utf-8 | |
from pwn import * | |
import sys | |
import ctypes | |
from time import sleep | |
LOCAL = "remote" not in sys.argv | |
BINARY = "beg" |
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
diff -Naur qemu-2.7.0.orig/cpu-exec.c qemu-2.7.0/cpu-exec.c | |
--- qemu-2.7.0.orig/cpu-exec.c 2016-09-02 17:34:17.000000000 +0200 | |
+++ qemu-2.7.0/cpu-exec.c 2017-01-19 09:34:00.817088525 +0100 | |
@@ -33,6 +33,9 @@ | |
#include "hw/i386/apic.h" | |
#endif | |
#include "sysemu/replay.h" | |
+#include "syscall_defs.h" | |
+ | |
+extern int do_nx; |