forked from s-newman/ists17-bluemangroup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenerateMachines.sh
executable file
·103 lines (101 loc) · 2.54 KB
/
generateMachines.sh
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
echo "machines:"
for i in $(seq 0 13); do echo -e "
alexander.team$i.ists.io:
hostname: \"alexander\"
team_id: \"$i\"
ip: \"10.2.$i.1\"
network: \"10.2.$i.0\"
netmask: \"255.255.255.0\"
gateway: \"10.2.$i.254\"
broadcast: \"10.2.$i.255\"
julius.team$i.ists.io:
hostname: \"julius\"
team_id: \"$i\"
ip: \"10.2.$i.2\"
network: \"10.2.$i.0\"
netmask: \"255.255.255.0\"
gateway: \"10.2.$i.254\"
broadcast: \"10.2.$i.255\"
churchill.team$i.ists.io:
hostname: \"churchill\"
team_id: \"$i\"
ip: \"10.2.$i.3\"
network: \"10.2.$i.0\"
netmask: \"255.255.255.0\"
gateway: \"10.2.$i.254\"
broadcast: \"10.2.$i.255\"
leonidas.team$i.ists.io:
hostname: \"leonidas\"
team_id: \"$i\"
ip: \"10.2.$i.4\"
network: \"10.2.$i.0\"
netmask: \"255.255.255.0\"
gateway: \"10.2.$i.254\"
broadcast: \"10.2.$i.255\"
attila.team$i.ists.io:
hostname: \"attila\"
team_id: \"$i\"
ip: \"10.2.$i.5\"
network: \"10.2.$i.0\"
netmask: \"255.255.255.0\"
gateway: \"10.2.$i.254\"
broadcast: \"10.2.$i.255\"
xerxes.team$i.ists.io:
hostname: \"xerxes\"
team_id: \"$i\"
ip: \"10.2.$i.6\"
network: \"10.2.$i.0\"
netmask: \"255.255.255.0\"
gateway: \"10.2.$i.254\"
broadcast: \"10.2.$i.255\"
ashoka.team$i.ists.io:
hostname: \"ashoka\"
team_id: \"$i\"
ip: \"10.2.$i.7\"
network: \"10.2.$i.0\"
netmask: \"255.255.255.0\"
gateway: \"10.2.$i.254\"
broadcast: \"10.2.$i.255\"
washington.team$i.ists.io:
hostname: \"washington\"
team_id: \"$i\"
ip: \"10.2.$i.254\"
network: \"10.2.$i.0\"
netmask: \"255.255.255.0\"
gateway: \"10.2.$i.254\"
broadcast: \"10.2.$i.255\"
gandhi.team$i.cybertigers.club:
hostname: \"gandhi\"
team_id: \"$i\"
ip: \"10.3.$i.1\"
network: \"10.3.$i.0\"
netmask: \"255.255.255.0\"
gateway: \"10.3.$i.254\"
broadcast: \"10.3.$i.255\"
bonaparte.team$i.cybertigers.club:
hostname: \"bonaparte\"
team_id: \"$i\"
ip: \"10.3.$i.2\"
network: \"10.3.$i.0\"
netmask: \"255.255.255.0\"
gateway: \"10.3.$i.254\"
broadcast: \"10.3.$i.255\"
ataturk.team$i.cybertigers.club:
hostname: \"ataturk\"
team_id: \"$i\"
ip: \"10.3.$i.3\"
network: \"10.3.$i.0\"
netmask: \"255.255.255.0\"
gateway: \"10.3.$i.254\"
broadcast: \"10.3.$i.255\"
\n"; done
echo -e "
hostnames:
mail: xerxes
web: attila
graylog: leonidas
ad: alexander
ftp: julius
docker: churchill
vpn: ashoka
router: washington\n"