-
Notifications
You must be signed in to change notification settings - Fork 86
/
Copy pathforbidden.rb
68 lines (58 loc) · 1.63 KB
/
forbidden.rb
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
# -*- coding: utf-8 -*-
machine 'forbidden' do
action [:ready, :converge]
add_machine_options bootstrap_options:
{ flavor_ref: 'c12b959c-2188-4711-984d-84f439d24d8c' # 4_vCPU_RAM_16G_HD_100G
}
files '/etc/chef/encrypted_data_bag_secret' => "#{ENV['PWD']}/.chef/encrypted_data_bag_secret"
converge false
complete true
recipe 'lab::teamserver_tmux_script'
role 'base'
recipe 'build-essential'
role 'elite-shell'
role 'ssh'
role 'ssh-server'
role 'openvpn-client'
role 'kali'
role 'sudo'
recipe 'lab::sudo_nmap'
recipe 'lab::sudo_tcpdump'
recipe 'lab::cron_chef_client'
recipe 'lab::libcurl'
recipe 'glances'
recipe 'pentester::mitmproxy'
recipe 'pentester::msf_pkg'
role 'metasploit'
role 'teamserver'
role 'faraday'
role 'docker'
recipe 'lab::docker_teamservers'
role 'beef-server'
recipe 'lab::python_venvs'
recipe 'lab::iptables_teamserver'
role 'ip-forward'
recipe 'kali::pwtools'
attributes 'pentester' => {
'msf' => {
'msfconsole.rc' => ['workspace default'],
},
},
'lab' => {
'teamserver_list' => {
'post' => {
'handlers_ports' => '9000-9009',
'rpc_port' => '51111',
'ts_port' => '61111',
},
},
},
'openvpn' => {
'config' => {
'extras' => [
'route-nopull',
'route 10.13.37.0 255.255.255.0',
],
},
}
end