convert _ to .

This commit is contained in:
h00die 2023-06-16 16:13:36 -04:00
parent 4f661ff230
commit 67225650de
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ module Msf
# Errors will result in "UNKNOWN_VERSION_ID_<id>" and may be caused by needing to update the version table
# from https://github.com/apache/rocketmq/blob/develop/common/src/4d82b307ef50f5cba5717d0ebafeb3cabf336873/java/org/apache/rocketmq/common/MQVersion.java
version_list = JSON.parse(File.read(::File.join(Msf::Config.data_directory, 'rocketmq_versions_list.json'), mode: 'rb'))
version_list.fetch(id, "UNKNOWN_VERSION_ID_#{id})")
version_list.fetch(id, "UNKNOWN_VERSION_ID_#{id})").gsub('_', '.')
end
end
end

View File

@ -45,7 +45,7 @@ class MetasploitModule < Msf::Auxiliary
parsed_data = {}
# grab some data that we need/want out of the response
res.each do |j|
parsed_data['version'] = get_rocketmq_version(j['version']).gsub('_', '.') if j['version']
parsed_data['version'] = get_rocketmq_version(j['version']) if j['version']
parsed_data['brokerDatas'] = j['brokerDatas'] if j['brokerDatas']
end