-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (49 loc) · 2 KB
/
kalilinux-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
name: "zmap with kalilinux/kali-rolling 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 zmap with kalilinux/kali-rolling on ubuntu latest"
runs-on: ubuntu-latest
env:
distribution: "kalilinux" #https://hub.docker.com/r/kalilinux/kali-rolling
version: "latest"
name: "kali/zmap"
dockerfiledir: "dockerfiles"
dockerfilename: "Dockerfile.zmap"
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 zmap with kalilinux/kali-rolling "
run: |
# destroyed afterwards (use --rm )
# all subsequent Dockerfile commands generate new images and the cache is not usedi
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}
echo "################## ENTRYPOINT ##################"
docker inspect -f '{{.Config.Entrypoint}}' ${name}:${version}
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}:${version} zmap -p 80 172.217.0.0/24 -o IPresults.csv # not OK