Path: blob/master/modules/ipec/inter_protocol_redis/module.rb
1154 views
#1# Copyright (c) 2006-2025 Wade Alcorn - [email protected]2# Browser Exploitation Framework (BeEF) - https://beefproject.com3# See the file 'doc/COPYING' for copying permission4#5class Inter_protocol_redis < BeEF::Core::Command6def self.options7cmd = 'set server:name "BeEF says:\\\\nm00!"\\nquit\\n'8[9{ 'name' => 'rhost', 'ui_label' => 'Target Address', 'value' => '127.0.0.1' },10{ 'name' => 'rport', 'ui_label' => 'Target Port', 'value' => '6379' },11{ 'name' => 'timeout', 'ui_label' => 'Timeout (s)', 'value' => '15' },12{ 'name' => 'commands', 'ui_label' => 'Redis commands', 'description' => "Enter Redis commands to execute. Note: Use '\\n' to seperate Redis commands and '\\\\n' for new lines.",13'type' => 'textarea', 'value' => cmd, 'width' => '200px' }14]15end1617def post_execute18content = {}19content['result'] = @datastore['result'] unless @datastore['result'].nil?20content['fail'] = @datastore['fail'] unless @datastore['fail'].nil?21save content22end23end242526