The program is a note editor running inside a x86 64-bit unicorn engine instance.
The start script is provided (see start.py)
#include <asm/unistd.h> | |
#include <linux/perf_event.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/types.h> | |
#include <unistd.h> | |
static long perf_event_open(struct perf_event_attr *hw_event, pid_t pid, | |
int cpu, int group_fd, unsigned long flags) { | |
int ret; |
#include <stdio.h> | |
typedef struct { | |
short short1; | |
short short2; | |
} some_struct; | |
int main() { | |
// In memory: 48 65 6c 6c 6f 00 48 69 00 | |
char *bytes = "\x48\x65\x6c\x6c\x6f\x00\x48\x69\x00"; |