Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/ipec/inter_protocol_imap/module.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
class Inter_protocol_imap < BeEF::Core::Command
7
def self.options
8
[
9
{ 'name' => 'server', 'ui_label' => 'IMAP Server', 'value' => '127.0.0.1' },
10
{ 'name' => 'port', 'ui_label' => 'Port', 'value' => '220' },
11
{ 'name' => 'commands', 'ui_label' => 'Commands', 'type' => 'textarea', 'value' => 'a01 login root password\na002 logout' }
12
]
13
end
14
15
def post_execute
16
save({ 'result' => @datastore['result'] })
17
end
18
end
19
20