Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/extensions/admin_ui/controllers/panel/panel.rb
1154 views
1
#
2
# Copyright (c) 2006-2025 Wade Alcorn - [email protected]
3
# Browser Exploitation Framework (BeEF) - https://beefproject.com
4
# See the file 'doc/COPYING' for copying permission
5
#
6
module BeEF
7
module Extension
8
module AdminUI
9
module Controllers
10
class Panel < BeEF::Extension::AdminUI::HttpController
11
def initialize
12
super({
13
'paths' => {
14
'/' => method(:index)
15
}
16
})
17
end
18
19
# default index page
20
def index
21
@headers['X-Frame-Options'] = 'sameorigin'
22
end
23
end
24
end
25
end
26
end
27
end
28
29