2008-10-10 15:28:01 +00:00
|
|
|
##
|
|
|
|
# This file is part of the Metasploit Framework and may be subject to
|
|
|
|
# redistribution and commercial restrictions. Please see the Metasploit
|
|
|
|
# Framework web site for more information on licensing and terms of use.
|
2009-04-13 14:33:26 +00:00
|
|
|
# http://metasploit.com/framework/
|
2008-10-10 15:28:01 +00:00
|
|
|
##
|
|
|
|
|
|
|
|
|
|
|
|
require 'msf/core'
|
|
|
|
|
|
|
|
|
|
|
|
class Metasploit3 < Msf::Auxiliary
|
|
|
|
|
|
|
|
include Msf::Exploit::Remote::Tcp
|
|
|
|
include Msf::Auxiliary::Scanner
|
|
|
|
|
|
|
|
def initialize
|
|
|
|
super(
|
|
|
|
'Name' => 'EMC AlphaStor Library Manager Service.',
|
|
|
|
'Version' => '$Revision$',
|
|
|
|
'Description' => 'This module querys the remote host for the EMC Alphastor Library Management Service.',
|
|
|
|
'Author' => 'MC',
|
|
|
|
'License' => MSF_LICENSE
|
|
|
|
)
|
|
|
|
|
|
|
|
register_options([Opt::RPORT(3500),], self.class)
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def run_host(ip)
|
|
|
|
|
|
|
|
connect
|
|
|
|
|
|
|
|
pkt = "\x51" + "\x00" * 529
|
|
|
|
|
|
|
|
sock.put(pkt)
|
|
|
|
|
|
|
|
sleep(1)
|
|
|
|
|
|
|
|
data = sock.get_once
|
|
|
|
|
|
|
|
if ( data and data =~ /robotd~robotd~CLIENT/ )
|
|
|
|
print_status("Host #{ip} is running the EMC AlphaStor Library Manager.")
|
|
|
|
else
|
|
|
|
print_error("Host #{ip} is not running the service...")
|
|
|
|
end
|
|
|
|
|
|
|
|
disconnect
|
|
|
|
|
|
|
|
end
|
2008-10-19 21:03:39 +00:00
|
|
|
end
|