-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
57 lines (40 loc) · 1.12 KB
/
Makefile
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
NAME = arpmess
CC = gcc
CFLAGS = -Wall -Wextra -Werror -I$(HEAD_DIR) -lpthread -lm
HEAD_DIR = ./head/
SRCS = $(addprefix $(DIR_SRCS), $(SRCSFILE))
DIR_SRCS = ./srcs/
SRCSFILE = \
main.c \
argparse.c \
interactive.c \
network.c \
utils.c \
attack.c
OBJ = $(SRCS:.c=.o)
all: $(NAME)
$(NAME): $(OBJ)
$(CC) $(OBJ) $(CFLAGS) -o $(NAME)
clean:
rm -f $(OBJ)
fclean: clean
rm -f $(NAME)
re: fclean $(NAME)
vendor:
curl https://www.wireshark.org/download/automated/data/manuf --output manuf || wget https://www.wireshark.org/download/automated/data/manuf
copy:
docker cp arpmess workctn:/root/arpmess
container:
docker build -t arpmessimg .
docker run --name workctn -dit --cap-add=NET_ADMIN --cap-add=NET_RAW arpmessimg
docker run --name victctn -dit --cap-add=NET_ADMIN arpmessimg
docker run --name victctn2 -dit --cap-add=NET_ADMIN arpmessimg
docker run --name victctn3 -dit --cap-add=NET_ADMIN arpmessimg
start:
docker start workctn victctn victctn2 victctn3
delete:
docker rm -f workctn victctn victctn2 victctn3
shell:
docker exec -ti -w /root/arpmess workctn /bin/bash
v_shell:
docker exec -ti victctn /bin/bash