-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.rb
117 lines (111 loc) · 3.18 KB
/
default.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
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
# -*- coding: utf-8 -*-
#
# Cookbook:: faraday
# Attributes:: default
#
default['faraday']['packages'] = %w(git libpq-dev)
default['faraday']['gtk_packages'] = %w(gir1.2-gtk-3.0 gir1.2-vte-2.91 python-pip python-gobject zsh curl)
default['faraday']['git_repository'] = 'https://github.com/infobyte/faraday'
default['faraday']['git_reference'] = 'v2.7.1'
default['faraday']['install_dir'] = '/opt/faraday'
default['faraday']['python_runtime'] = '2'
# Configuration
default['faraday']['user'] = 'root'
default['faraday']['home'] = node['faraday']['user'] == 'root' ? '/root' : "/home/#{node['faraday']['user']}"
default['faraday']['config'] = {
appname: 'Faraday - Penetration Test IDE',
version: '2.0.0',
debug_status: 0,
font: '-Misc-Fixed-medium-r-normal-*-12-100-100-100-c-70-iso8859-1',
home_path: '~/',
image_path: '~/.faraday/images/',
icons_path: '~/.faraday/images/icons/',
data_path: '~/.faraday/data/',
config_path: '~/.faraday/',
default_temp_path: '~/.faraday/temp/',
persistence_path: '~/.faraday/persistence/',
report_path: '~/.faraday/report/',
hstactions_path: '~/.faraday/hstactions.dat',
default_category: 'General',
auto_share_workspace: 1,
network_location: 'LAN',
perspective_view: 'Hosts',
log_console_toggle: '',
shell_maximized: 0,
host_tree_toggle: '',
api_con_info: 'None',
api_con_info_host: 'None',
api_con_info_port: 'None',
auth: 0,
repo_url: '',
repo_user: 'u',
repo_password: '',
couch_uri: '',
couch_is_replicated: '',
couch_replics: '',
updates_uri: 'https://www.faradaysec.com/scripts/updates.php',
tickets_uri: 'https://www.faradaysec.com/scripts/listener.php',
tickets_template: '{}',
tickets_api: '{}',
}
default['faraday']['config_attrs'] = {
repo_url: {
type: 'svn',
},
auth: {
encrypted: 'no',
algorithm: 'OTR',
},
}
# Continuous scanning
default['faraday']['cscan']['pip_packages'] = %w(python-owasp-zap-v2 w3af-api-client)
default['faraday']['cscan']['ips'] = ['127.0.0.1']
default['faraday']['cscan']['websites'] = ['http://127.0.0.1:80']
default['faraday']['cscan']['config'] = {
CS_NMAP: 'nmap',
CS_OPENVAS_USER: 'admin',
CS_OPENVAS_PASSWORD: 'openvas',
CS_OPENVAS_SCAN_CONFIG: 'Full and fast',
CS_OPENVAS_ALIVE_TEST: 'ICMP, TCP-ACK Service & ARP Ping',
CS_OPENVAS: 'omp',
CS_BURP: '/root/tools/burpsuite_pro_v1.6.26.jar',
CS_NIKTO: 'nikto',
CS_W3AF: '/root/tools/w3af/w3af_api',
CS_PROFILE: '/root/tools/w3af/profiles/fast_scan.pw3af',
CS_ZAP: '/root/tools/zap/ZAP_D-2015-08-24/zap.sh',
CS_NESSUS_URL: 'https://127.0.0.1:8834',
CS_NESSUS_USER: 'nessus',
CS_NESSUS_PASS: 'nessus',
CS_NESSUS_PROFILE: 'Basic Network Scan',
}
# Service
default['faraday']['service'] = {
RUN: true,
NAME: 'faraday-server',
USER: 'faraday',
INSTALL_DIR: node['faraday']['install_dir'],
}
# Server
default['faraday']['server']['www'] = {
lic_db: 'faraday_license',
ver: '',
}
default['faraday']['server']['config'] = {
faraday_server: {
port: 5985,
bind_address: 'localhost',
},
ssl: {
port: 6985,
certificate: '',
keyfile: '',
},
couchdb: {
host: 'localhost',
port: 5984,
ssl_port: 6984,
user: '',
password: '',
protocol: 'http',
},
}