You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
565 B

OBJ = number_guesser.o
%.o: %.c $(DEPS)
$(CC) -c -o $@ $<
debug: $(OBJ)
$(CC) -o $@ $^ -g
guess: $(OBJ)
$(CC) -o $@ $^
evil: guess
$(CC) -shared -fPIC evil_random.c -o
LD_PRELOAD="$(PWD)/" ./guess
exploit: guess
gcc -ldl -o -fPIC -shared exploit_scanf.c
LD_PRELOAD=$(PWD)/ ./guess
shim: guess
gcc -ldl -o -shared -fPIC find_main_shim.c
LD_PRELOAD=$(PWD)/ ./guess
run: guess
rm -f *.o *.so guess