-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
50 lines (30 loc) · 1.28 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
# Build and run the Kali Linux in Docker without systemd
build-run-plain:
docker run -p 127.0.0.1:88:8088 --network host --name kali -itd kalilinux/kali-rolling; docker attach kali
# Build the Kali image with systemd support
create-build-s:
cd kali/ && docker build -t kali -f Dockerfile_systemd .
# Run the Kali image in a container
image-run-s:
docker run -it -p 87:8087 --network host --rm --privileged --workdir /usr --name kali-systemd kali /bin/bash
# Scan for vuln. in Kali Linux Docker image
kali-scan:
trivy image kali
# Docker stats for Kali Linux Docker image
kali-stats:
docker stats -a kali_systemd
# Docker compose to build all services in docker-compose.yaml
docker-c-build:
docker compose up -d --build
# Docker compose run builed Kali Linux with systemd support from docker-compose.yaml
docker-c-build-systemd:
docker-compose up -d --build; docker compose run --rm kali_systemd_2 bash
# Docker prebuilt
docker-p-b:
docker run -p 87:8087 --network host --rm --privileged --workdir /usr --name kali_p -itd lostcauze7/kali-dockerized:latest; docker attach kali_p
# Creates Kind cluster (Kubernetes in Docker) with the config file in kali/deploy/config.yaml
cc:
kind create cluster --config=kali/deploy/config.yaml
# Deletes Kind cluster
dc:
kind delete cluster