Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/config.yaml
1140 views
1
#
2
# Copyright (c) 2006-2024 Wade Alcorn - [email protected]
3
# Browser Exploitation Framework (BeEF) - https://beefproject.com
4
# See the file 'doc/COPYING' for copying permission
5
#
6
# BeEF Configuration file
7
8
beef:
9
version: '0.5.4.0'
10
# More verbose messages (server-side)
11
debug: false
12
# More verbose messages (client-side)
13
client_debug: false
14
# Used for generating secure tokens
15
crypto_default_value_length: 80
16
17
# Credentials to authenticate in BeEF.
18
# Used by both the RESTful API and the Admin interface
19
credentials:
20
user: "beef"
21
passwd: "beef"
22
23
# Interface / IP restrictions
24
restrictions:
25
# subnet of IP addresses that can hook to the framework
26
permitted_hooking_subnet: ["0.0.0.0/0", "::/0"]
27
# subnet of IP addresses that can connect to the admin UI
28
#permitted_ui_subnet: ["127.0.0.1/32", "::1/128"]
29
permitted_ui_subnet: ["0.0.0.0/0", "::/0"]
30
# subnet of IP addresses that cannot be hooked by the framework
31
excluded_hooking_subnet: []
32
# slow API calls to 1 every api_attempt_delay seconds
33
api_attempt_delay: "0.05"
34
35
# HTTP server
36
http:
37
debug: false #Thin::Logging.debug, very verbose. Prints also full exception stack trace.
38
host: "0.0.0.0"
39
port: "3000"
40
41
# Decrease this setting to 1,000 (ms) if you want more responsiveness
42
# when sending modules and retrieving results.
43
# NOTE: A poll timeout of less than 5,000 (ms) might impact performance
44
# when hooking lots of browsers (50+).
45
# Enabling WebSockets is generally better (beef.websocket.enable)
46
xhr_poll_timeout: 1000
47
48
# Public Domain Name / Reverse Proxy / Port Forwarding
49
#
50
# In order for the client-side BeEF JavaScript hook to be able to connect to BeEF,
51
# the hook JavaScript needs to be generated with the correct connect-back details.
52
#
53
# If you're using a public domain name, reverse proxy, or port forwarding you must
54
# configure the public-facing connection details here.
55
56
#public:
57
# host: "beef.local" # public hostname/IP address
58
# port: "443" # public port (443 if the public server is using HTTPS)
59
# https: false # true/false
60
61
# If using any reverse proxy you should also set allow_reverse_proxy to true below.
62
# Note that this causes the BeEF server to trust the X-Forwarded-For HTTP header.
63
# If the BeEF server is directly accessible, clients can spoof their connecting
64
# IP address using this header to bypass the IP address permissions/exclusions.
65
allow_reverse_proxy: false
66
67
# Hook
68
hook_file: "/hook.js"
69
hook_session_name: "BEEFHOOK"
70
71
# Allow one or multiple origins to access the RESTful API using CORS
72
# For multiple origins use: "http://browserhacker.com, http://domain2.com"
73
restful_api:
74
allow_cors: false
75
cors_allowed_domains: "http://browserhacker.com"
76
77
# Prefer WebSockets over XHR-polling when possible.
78
websocket:
79
enable: false
80
port: 61985 # WS: good success rate through proxies
81
# Use encrypted 'WebSocketSecure'
82
# NOTE: works only on HTTPS domains and with HTTPS support enabled in BeEF
83
secure: true
84
secure_port: 61986 # WSSecure
85
ws_poll_timeout: 5000 # poll BeEF every x second, this affects how often the browser can have a command execute on it
86
ws_connect_timeout: 500 # useful to help fingerprinting finish before establishing the WS channel
87
88
# Imitate a specified web server (default root page, 404 default error page, 'Server' HTTP response header)
89
web_server_imitation:
90
enable: true
91
type: "apache" # Supported: apache, iis, nginx
92
hook_404: false # inject BeEF hook in HTTP 404 responses
93
hook_root: false # inject BeEF hook in the server home page
94
# Experimental HTTPS support for the hook / admin / all other Thin managed web services
95
https:
96
enable: false
97
# In production environments, be sure to use a valid certificate signed for the value
98
# used in beef.http.public (the domain name of the server where you run BeEF)
99
key: "beef_key.pem"
100
cert: "beef_cert.pem"
101
102
database:
103
file: "beef.db"
104
105
# Autorun Rule Engine
106
autorun:
107
# this is used when rule chain_mode type is nested-forward, needed as command results are checked via setInterval
108
# to ensure that we can wait for async command results. The timeout is needed to prevent infinite loops or eventually
109
# continue execution regardless of results.
110
# If you're chaining multiple async modules, and you expect them to complete in more than 5 seconds, increase the timeout.
111
result_poll_interval: 300
112
result_poll_timeout: 5000
113
114
# If the modules doesn't return status/results and timeout exceeded, continue anyway with the chain.
115
# This is useful to call modules (nested-forward chain mode) that are not returning their status/results.
116
continue_after_timeout: true
117
118
# Enables DNS lookups on zombie IP addresses
119
dns_hostname_lookup: false
120
121
# IP Geolocation
122
geoip:
123
enable: true
124
# GeoLite2 City database created by MaxMind, available from https://www.maxmind.com
125
database: '/usr/share/GeoIP/GeoLite2-City.mmdb'
126
127
# You may override default extension configuration parameters here
128
# Note: additional experimental extensions are available in the 'extensions' directory
129
# and can be enabled via their respective 'config.yaml' file
130
extension:
131
admin_ui:
132
enable: true
133
base_path: "/ui"
134
demos:
135
enable: true
136
events:
137
enable: true
138
evasion:
139
enable: false
140
requester:
141
enable: true
142
proxy:
143
enable: true
144
network:
145
enable: true
146
metasploit:
147
enable: false
148
social_engineering:
149
enable: false
150
xssrays:
151
enable: true
152
153