forked from osirislab/Shellcode
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmakefile
More file actions
30 lines (22 loc) · 635 Bytes
/
Copy pathmakefile
File metadata and controls
30 lines (22 loc) · 635 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#Evan Jensen
#Make template for testing shellcode
shellcode = mapper_payload.s
NFLAGS = elf
CFLAGS = -m32
STAGE_LOC=../stage/
all: stage mapper_payload test_shellcode
assemble:
nasm -f $(NFLAGS) $(shellcode) -o linkme.o
nasm $(shellcode) -o shellcode
link:
gcc linkme.o -o testShellcode $(CFLAGS)
mapper_payload: mapper_payload.s
nasm mapper_payload.s -o shellcode
nasm mapper_payload.s -o mapper_payload_test
nasm mapper_payload.s -o mapper_payload_test_raw
test_shellcode: test_shellcode.c
gcc -m32 test_shellcode.c -o test_shellcode
stage:
cd $(STAGE_LOC) && $(MAKE)
clean:
rm -f linkme.o testShellcode shellcode