2024-11-07 15:22:04 +01:00
|
|
|
.PHONY: clean shellcode bufoverflow
|
2023-12-14 13:56:57 +01:00
|
|
|
|
2024-11-07 15:22:04 +01:00
|
|
|
all: bufoverflow shellcode
|
2023-12-14 13:56:57 +01:00
|
|
|
|
2024-11-07 15:22:04 +01:00
|
|
|
shellcode:
|
|
|
|
nasm shellcode.asm
|
2023-12-14 13:56:57 +01:00
|
|
|
|
|
|
|
clean:
|
2024-11-07 15:22:04 +01:00
|
|
|
rm -f shellcode bufoverflow
|
2023-12-14 13:56:57 +01:00
|
|
|
|
|
|
|
bufoverflow:
|
2024-11-07 15:22:04 +01:00
|
|
|
gcc bufoverflow.c -z execstack -o bufoverflow -O1 -fno-unroll-loops -fno-omit-frame-pointer -fno-dce -fno-dse
|