-
Notifications
You must be signed in to change notification settings - Fork 0
190 lines (180 loc) · 7.54 KB
/
ubuntu-wf.yml
File metadata and controls
190 lines (180 loc) · 7.54 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
name: "zmap with ubuntu CI workflow"
on:
push:
branches: [ main ]
schedule:
- cron: '0 0 1 * *' ##execution of a task in the first minute of the month
jobs:
zmap-1604-ubuntu-latest-job:
name: "build zmap with ubuntu 16.04 on ubuntu latest"
runs-on: ubuntu-latest
env:
distribution: "kalilinux" #https://hub.docker.com/r/ubuntu
version: "latest"
name: "ubuntu/zmap"
dockerfiledir: "dockerfiles"
dockerfilename: "Dockerfile.ubuntu.16.04.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 ubuntu 16.04 "
run: |
# destroyed afterwards (use --rm )
# all subsequent Dockerfile commands generate new images and the cache is not usedi
set -xe
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}
# the input device is not a TTY
# docker run -it --rm --net=host ${name}:${version} -h
# docker run ${name}:${version} zmap -h
docker run --rm --net=host ${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
zmap-1804-ubuntu-latest-job:
name: "build zmap with ubuntu 18.04 on ubuntu latest"
runs-on: ubuntu-latest
env:
distribution: "kalilinux" #https://hub.docker.com/r/ubuntu
version: "latest"
name: "ubuntu/zmap"
dockerfiledir: "dockerfiles"
dockerfilename: "Dockerfile.ubuntu.18.04.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 ubuntu 18.04 "
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}
# the input device is not a TTY
# docker run -it --rm --net=host ${name}:${version} -h
# docker run ${name}:${version} zmap -h
docker run --rm --net=host ${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
# zmap-2004-ubuntu-latest-job:
# name: "build zmap with ubuntu 20.04 on ubuntu latest"
# runs-on: ubuntu-latest
# env:
# distribution: "kalilinux" #https://hub.docker.com/r/ubuntu
# version: "latest"
# name: "ubuntu/zmap"
# dockerfiledir: "dockerfiles"
# dockerfilename: "Dockerfile.ubuntu.20.04.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 ubuntu 20.04 "
# 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}
# # the input device is not a TTY
# # docker run -it --rm --net=host ${name}:${version} -h
# # docker run ${name}:${version} zmap -h
# docker run --rm --net=host ${name}:${version} zmap -h
# # docker run ${name}:${version} zmap -p 80 172.217.0.0/24 -o IPresults.csv # not OK
# zmap-2204-ubuntu-latest-job:
# name: "build zmap with ubuntu 22.04 on ubuntu latest"
# runs-on: ubuntu-latest
# env:
# distribution: "kalilinux" #https://hub.docker.com/r/ubuntu
# version: "latest"
# name: "ubuntu/zmap"
# dockerfiledir: "dockerfiles"
# dockerfilename: "Dockerfile.ubuntu.22.04.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 ubuntu 22.04"
# 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}
# # the input device is not a TTY
# # docker run -it --rm --net=host ${name}:${version} -h
# # docker run ${name}:${version} zmap -h
# docker run --rm --net=host ${name}:${version} zmap -h
# # docker run ${name}:${version} zmap -p 80 172.217.0.0/24 -o IPresults.csv # not OK