File: config.py

package info (click to toggle)
weevely 4.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,336 kB
  • sloc: python: 7,732; php: 1,035; sh: 53; makefile: 2
file content (51 lines) | stat: -rw-r--r-- 1,325 bytes parent folder | download | duplicates (3)
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
# Base path for log files and sessions
base_path = '~/.weevely/'

# History path
history_path = '~/.weevely/history'

# Session path
sessions_path = '~/.weevely/sessions/'
sessions_ext = '.session'

# Supported Channels
channels = [
    # Obfuscated channel inside POST requests introduced 
    # in Weevely 3.6
    'ObfPost',
]

# Append random GET parameters to every request to
# make sure the page is not cache by proxies.
add_random_param_nocache = False

# Add additional headers to be sent at every request e.g.
# additional_headers = [
#   ( 'Authentication', 'Basic QWxhZGRpbjpvcGVuIHNlc2FtBl==' )
# ]
additional_headers = []

# Agents and obfuscators used by generator.py
agent_templates_folder_path = 'bd/agents/'
obfuscators_templates_folder_path = 'bd/obfuscators/'





#######################################
# Resolve given paths - DO NOT CHANGE #
#######################################
import os, sys
base_path = os.path.expanduser(base_path)
history_path = os.path.expanduser(history_path)
sessions_path = os.path.expanduser(sessions_path)
weevely_path = os.path.dirname(os.path.realpath(sys.argv[0]))
agent_templates_folder_path = os.path.join(
    weevely_path,
    agent_templates_folder_path
)
obfuscators_templates_folder_path = os.path.join(
    weevely_path,
    obfuscators_templates_folder_path
)