Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/social_engineering/hta_powershell/module.rb
1155 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
class Hta_powershell < BeEF::Core::Command
7
def self.options
8
@config = BeEF::Core::Configuration.instance
9
ps_url = @config.get('beef.extension.social_engineering.powershell.powershell_handler_url')
10
11
[
12
{ 'name' => 'domain', 'ui_label' => 'Serving Domain (BeEF server)', 'value' => @config.beef_url_str },
13
{ 'name' => 'ps_url', 'ui_label' => 'Powershell/HTA handler', 'value' => ps_url }
14
]
15
end
16
17
def post_execute
18
save({ 'result' => @datastore['result'] })
19
end
20
end
21
22