Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/extensions/social_engineering/extension.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 RegisterSEngHandler
9
def self.mount_handler(server)
10
server.mount('/api/seng', BeEF::Extension::SocialEngineering::SEngRest.new)
11
12
ps_url = BeEF::Core::Configuration.instance.get('beef.extension.social_engineering.powershell.powershell_handler_url')
13
server.mount(ps_url.to_s, BeEF::Extension::SocialEngineering::Bind_powershell.new)
14
end
15
end
16
17
module SocialEngineering
18
extend BeEF::API::Extension
19
20
@short_name = 'social_engineering'
21
@full_name = 'Social Engineering'
22
@description = 'Web page cloner and other social engineering tools.'
23
24
BeEF::API::Registrar.instance.register(BeEF::Extension::RegisterSEngHandler, BeEF::API::Server, 'mount_handler')
25
end
26
end
27
end
28
29
# Handlers
30
require 'extensions/social_engineering/web_cloner/web_cloner'
31
require 'extensions/social_engineering/web_cloner/interceptor'
32
require 'extensions/social_engineering/powershell/bind_powershell'
33
34
# Models
35
require 'extensions/social_engineering/models/web_cloner'
36
require 'extensions/social_engineering/models/interceptor'
37
38
# RESTful api endpoints
39
require 'extensions/social_engineering/rest/socialengineering'
40
41