-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (43 loc) · 1.23 KB
/
docker-compose.yml
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
version: "3"
services:
Victim:
image: ubuntu:20.04
container_name: victim
privileged: true
tty: true
cap_add:
- ALL
# sysctls:
# - net.ipv4.ip_forward=1
# networks:
# net-10.9.0.0:
# ipv4_address: 10.9.0.5
command: bash -c "
echo 0 > /proc/sys/kernel/randomize_va_space &&
export LD_LIBRARY_PATH=/home/code &&
tail -f /dev/null"
volumes:
- code:/home/code
Attacker:
image: ubuntu:20.04
container_name: attacker
privileged: true
tty: true
# cap_add:
# - ALL
# networks:
# net-192.168.60.0:
# ipv4_address: 192.168.60.5
command: bash -c "
echo 0 > /proc/sys/kernel/randomize_va_space &&
export LD_LIBRARY_PATH=/home/code &&
tail -f /dev/null"
volumes:
- code:/home/code
volumes:
code:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: '/home/server/Documents/FinalProject/FlushReload'