-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (59 loc) · 2.48 KB
/
kali-tools-top10-wf.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: "kali-tools-top10 with zmap CI workflow"
on:
push:
branches: [ main ]
schedule:
- cron: '0 0 1 * *' ##execution of a task in the first minute of the month
jobs:
zmap-ubuntu-latest-job:
name: "build kali-tools-top10 with zmap on ubuntu latest"
runs-on: ubuntu-latest
env:
distribution: "kalilinux" #https://hub.docker.com/r/kalilinux/kali-rolling
version: "latest"
name: "kali/kali-tools-top10"
dockerfiledir: "dockerfiles"
dockerfilename: "Dockerfile.kalilinux.kali-tools-top10"
steps:
- uses: actions/checkout@v2
- name: "os fingerprinting"
run: |
hostnamectl status
lsb_release -a
lsb_release -d
cat /etc/lsb-release
cat /etc/issue
cat /etc/os-release
sudo apt-get install -y neofetch && neofetch
- name: "build kali-tools-top10 with zmap"
run: |
# destroyed afterwards (use --rm )
# all subsequent Dockerfile commands generate new images and the cache is not used whoami
echo ${USER}
#Add current logged in user to the docker group.
sudo usermod -aG docker ${USER}
id ${USER}
docker build --no-cache --rm -t ${name}:${version} . --file ${dockerfiledir}/${dockerfilename}
docker image ls
docker image history ${name}:${version}
docker system df -v
docker image inspect ${name}:${version}
docker container ls -a
docker run ${name}:${version} zmap -h
# List available probe modules
# IPv6 support
docker run --rm --net=host ${name}:${version} zmap --list-probe-modules
# docker run --rm --net=host ${name}:${version} zmap --probe-module=icmp6_echoscan
# docker run --name toolkali ${name}:${version} sh -c "hping3 --traceroute -v -1 www.wisetut.com"
- name: "docker forensics"
run: |
# destroyed afterwards (use --rm )
# all subsequent Dockerfile commands generate new images and the cache is not used
docker build --no-cache --rm -t ${name}:${version} . --file ${dockerfiledir}/${dockerfilename}
docker image ls
docker image history ${name}:${version}
docker system df -v
docker image inspect ${name}:${version}
docker container ls -a
docker run --detach --name toolkali ${name}:${version}
docker container ls -a