huge commit
This commit is contained in:
22
2026/cscg/pwn/canopysaurus/Makefile
Normal file
22
2026/cscg/pwn/canopysaurus/Makefile
Normal file
@@ -0,0 +1,22 @@
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wextra -g
|
||||
TARGET = ecu_sim
|
||||
|
||||
SECURITY_FLAGS = -no-pie -Wl,-z,relro -Wl,-z,lazy -fno-stack-protector -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
|
||||
|
||||
.PHONY: all clean
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): ecu_sim.c
|
||||
$(CC) $(CFLAGS) $(SECURITY_FLAGS) -o $@ $<
|
||||
@echo "=== Build complete ==="
|
||||
|
||||
clean:
|
||||
rm -f $(TARGET)
|
||||
|
||||
docker-build:
|
||||
docker build -t canopysaurus-challenge .
|
||||
|
||||
docker-run:
|
||||
docker run --rm -it --privileged canopysaurus-challenge
|
||||
Reference in New Issue
Block a user