Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/modules/auxiliary/scanner/misc/rocketmq_version.rb
Views: 11784
### This module requires Metasploit: https://metasploit.com/download1# Current source: https://github.com/rapid7/metasploit-framework2##34class MetasploitModule < Msf::Auxiliary5include Msf::Exploit::Remote::Tcp6include Msf::Auxiliary::Scanner7include Msf::Auxiliary::Report8include Msf::Auxiliary::Rocketmq910def initialize(info = {})11super(12update_info(13info,14'Name' => 'Apache RocketMQ Version Scanner',15'Description' => %q{16Version scanner for the Apache RocketMQ product.17},18'Author' => [19'h00die',20'Malayke' # CVE-2023-33246 code21],22'References' => [23['URL', 'https://github.com/Malayke/CVE-2023-33246_RocketMQ_RCE_EXPLOIT/blob/main/check.py'],24['URL', 'https://github.com/apache/rocketmq']25],26'License' => MSF_LICENSE,27'Notes' => {28'Stability' => [],29'Reliability' => [],30'SideEffects' => []31}32)33)34end3536def run_host(_ip)37res = send_version_request3839if res.nil?40print_error('Invalid or no response received')41return42end4344parsed_data = parse_rocketmq_data(res)45# grab some data that we need/want out of the response46output = "RocketMQ version #{parsed_data['version']}"47output += " found with brokers: #{parsed_data['brokerDatas']}" if parsed_data['brokerDatas']48print_good(output)49end50end515253