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

19 lines
624 B
Ruby

#
# 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 Inter_protocol_imap < BeEF::Core::Command
def self.options
[
{ 'name' => 'server', 'ui_label' => 'IMAP Server', 'value' => '127.0.0.1' },
{ 'name' => 'port', 'ui_label' => 'Port', 'value' => '220' },
{ 'name' => 'commands', 'ui_label' => 'Commands', 'type' => 'textarea', 'value' => 'a01 login root password\na002 logout' }
]
end
def post_execute
save({ 'result' => @datastore['result'] })
end
end