Path: blob/master/modules/auxiliary/scanner/emc/alphastor_librarymanager.rb
19567 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 Library Manager Service',13'Description' => 'This module queries the remote host for the EMC Alphastor Library Management Service.',14'Author' => 'MC',15'License' => MSF_LICENSE16)1718register_options([Opt::RPORT(3500),])19end2021def run_host(ip)22connect2324pkt = "\x51" + "\x00" * 5292526sock.put(pkt)2728select(nil, nil, nil, 1)2930data = sock.get_once3132if (data and data =~ /robotd~robotd~CLIENT/)33print_good("Host #{ip} is running the EMC AlphaStor Library Manager.")34report_service(:host => rhost, :port => rport, :name => "emc-library", :info => data)35else36print_error("Host #{ip} is not running the service...")37end3839disconnect40end41end424344