Path: blob/master/modules/auxiliary/scanner/emc/alphastor_devicemanager.rb
19593 views
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##45class MetasploitModule < Msf::Auxiliary6include Msf::Exploit::Remote::Tcp7include Msf::Auxiliary::Scanner8include Msf::Auxiliary::Report910def initialize11super(12'Name' => 'EMC AlphaStor Device Manager Service',13'Description' => 'This module queries the remote host for the EMC Alphastor Device Management Service.',14'Author' => 'MC',15'License' => MSF_LICENSE16)1718register_options([Opt::RPORT(3000),])19end2021def run_host(ip)22connect2324pkt = "\x68" + Rex::Text.rand_text_alphanumeric(5) + "\x00" * 5122526sock.put(pkt)2728select(nil, nil, nil, 0.25)2930data = sock.get_once3132if (data and data =~ /rrobotd:rrobotd/)33print_good("Host #{ip} is running the EMC AlphaStor Device Manager.")34report_service(:host => rhost, :port => rport, :name => "emc-manager", :info => data)35else36print_error("Host #{ip} is not running the service...")37end3839disconnect40end41end424344