Files
beef/modules/exploits/local_host/activex_command_execution/module.rb
2023-12-26 22:32:31 -05:00

17 lines
518 B
Ruby
Executable File

#
# Copyright (c) 2006-2024 Wade Alcorn - wade@bindshell.net
# Browser Exploitation Framework (BeEF) - http://beefproject.com
# See the file 'doc/COPYING' for copying permission
#
class Activex_command_execution < BeEF::Core::Command
def self.options
[
{ 'name' => 'cmd', 'ui_label' => 'Command', 'type' => 'textarea', 'value' => 'cmd.exe /c "echo Hello from BeEF! & pause"', 'width' => '400px', 'height' => '50px' }
]
end
def post_execute
save({ 'result' => @datastore['result'] })
end
end