-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathswarm.conf
87 lines (63 loc) · 2.3 KB
/
swarm.conf
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
# Configuration file for swarm
[Target]
# Target URL, IP address or network segment,
# separated by blank (eg: baidu.com 127.0.0.0/24 192.168.1.5)
# target=
target=
# File that contains target list, one target per line.
# Either relative path or absolute path can be used.
target_file=
[Swarm]
# Slave hosts which runs swarm-s to complete target task.
# They should listen on target port to be waken up by giving a shell when request comes.
# if so, set this option with both address and port, separated by blank.
# (eg: 192.168.1.2:13110 192.168.1.3:13111)
# If you don't need to waken slave hosts to run swarm-s,
# set it without port just like the target and set waken_cmd option to null at the same time.
swarm=192.168.7.254:9191
# File that contains slave list, one host per line.
# Either relative path or absolute path can be used.
swarm_file=
# Command to waken up slave hosts, make sure "ARGS" will be argument pass to swarm-s.
# null if swarm-s on slave host need not to be waken up
waken_cmd=swarm-s ARGS
# Master address which should be reachable by all slave hosts.
m_addr=192.168.7.26
# Listen port on master host to distribute task.
m_port=13110
# Listen port on slave host to receive command from master.
s_port=9090
# Auth key between master and slave hosts.
authkey=auth
# Synchronize data like dictionary and vulnerability database etc.
# This option has to be provided if data in local has been updated,
# or slave host may fail to complete tasks.
# TODO
sync_data=False
# Seconds to wait before connection to swarm getting response.
timeout=30
[Output]
# Record log into target file.
logfile=/var/log/swarm.log
# Output more verbose.
verbose=False
# Disable colorful log output.
disable_col=False
# Output format
# result_format=1
[Database]
# Address of MongoDB server
db_addr=localhost
# Listening port of MongoDB server
db_port=27017
[Common]
# Number of process running on slave host.
# Use 0 to use number of cpu cores as process num.
# Task will be decomposed into subtasks and One process will do one subtask at one time.
process_num=0
# Number of threads running on slave host.
# Multiple threads are used when swarm try to run subtask.
thread_num=30
# Granularity of subtasks from 1 to 3. When this number increase one, granularity of subtask
# will increase by ten times.
task_granularity=2