[Assignment-5] setup task 3 (shellcode)
This commit is contained in:
parent
452ad7813d
commit
055c31519e
3 changed files with 36 additions and 0 deletions
12
Assignment 5 - Software Security - Teil 1/shellcode/Makefile
Normal file
12
Assignment 5 - Software Security - Teil 1/shellcode/Makefile
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
.DEFAULT_GOAL := all
|
||||
|
||||
shellcode: shellcode.asm
|
||||
nasm -felf32 shellcode.asm -o shellcode.o
|
||||
ld -m elf_i386 shellcode.o -o shellcode
|
||||
rm shellcode.o
|
||||
|
||||
test: test_shellcode.c
|
||||
gcc -o test_shellcode -m32 -fno-stack-protector -z execstack -fno-pie -O0 test_shellcode.c
|
||||
|
||||
|
||||
all: shellcode test
|
||||
Loading…
Add table
Add a link
Reference in a new issue