Files
beef/modules/social_engineering/hta_powershell/module.rb
2024-12-25 11:40:55 +10:00

21 lines
681 B
Ruby
Executable File

#
# Copyright (c) 2006-2025 Wade Alcorn - wade@bindshell.net
# Browser Exploitation Framework (BeEF) - https://beefproject.com
# See the file 'doc/COPYING' for copying permission
#
class Hta_powershell < BeEF::Core::Command
def self.options
@config = BeEF::Core::Configuration.instance
ps_url = @config.get('beef.extension.social_engineering.powershell.powershell_handler_url')
[
{ 'name' => 'domain', 'ui_label' => 'Serving Domain (BeEF server)', 'value' => @config.beef_url_str },
{ 'name' => 'ps_url', 'ui_label' => 'Powershell/HTA handler', 'value' => ps_url }
]
end
def post_execute
save({ 'result' => @datastore['result'] })
end
end