You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pwndbg/tests/binaries/host/telescope_binary.native.c

23 lines
364 B
C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct A {
void* func_ptr;
void* stack_ptr;
void* heap_ptr;
char buf[16];
char gap[128];
};
void break_here() {}
int main() {
struct A a = {};
a.func_ptr = (void*)main;
a.stack_ptr = (void*) &a;
a.heap_ptr = malloc(10);
strcpy(a.buf, "aaa");
break_here();
}