2010-04-30 08:40:19 +00:00
|
|
|
##
|
|
|
|
# This file is part of the Metasploit Framework and may be subject to
|
2008-10-10 15:28:01 +00:00
|
|
|
# redistribution and commercial restrictions. Please see the Metasploit
|
2012-02-21 01:40:50 +00:00
|
|
|
# web site for more information on licensing and terms of use.
|
|
|
|
# http://metasploit.com/
|
2008-10-10 15:28:01 +00:00
|
|
|
##
|
|
|
|
|
|
|
|
|
|
|
|
require 'msf/core'
|
|
|
|
|
|
|
|
|
|
|
|
class Metasploit3 < Msf::Auxiliary
|
2010-04-30 08:40:19 +00:00
|
|
|
|
2008-10-10 15:28:01 +00:00
|
|
|
include Msf::Exploit::Remote::Tcp
|
|
|
|
include Msf::Auxiliary::Scanner
|
2010-06-17 14:03:53 +00:00
|
|
|
include Msf::Auxiliary::Report
|
2010-04-30 08:40:19 +00:00
|
|
|
|
2008-10-10 15:28:01 +00:00
|
|
|
def initialize
|
|
|
|
super(
|
2010-11-24 19:35:38 +00:00
|
|
|
'Name' => 'EMC AlphaStor Library Manager Service',
|
2012-02-22 05:57:55 +00:00
|
|
|
'Description' => 'This module queries the remote host for the EMC Alphastor Library Management Service.',
|
2008-10-10 15:28:01 +00:00
|
|
|
'Author' => 'MC',
|
|
|
|
'License' => MSF_LICENSE
|
|
|
|
)
|
2010-04-30 08:40:19 +00:00
|
|
|
|
2008-10-10 15:28:01 +00:00
|
|
|
register_options([Opt::RPORT(3500),], self.class)
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def run_host(ip)
|
|
|
|
|
|
|
|
connect
|
|
|
|
|
|
|
|
pkt = "\x51" + "\x00" * 529
|
2010-04-30 08:40:19 +00:00
|
|
|
|
2008-10-10 15:28:01 +00:00
|
|
|
sock.put(pkt)
|
|
|
|
|
2010-06-22 18:58:38 +00:00
|
|
|
select(nil,nil,nil,1)
|
2008-10-10 15:28:01 +00:00
|
|
|
|
|
|
|
data = sock.get_once
|
|
|
|
|
|
|
|
if ( data and data =~ /robotd~robotd~CLIENT/ )
|
|
|
|
print_status("Host #{ip} is running the EMC AlphaStor Library Manager.")
|
2012-02-22 05:57:55 +00:00
|
|
|
report_service(:host => rhost, :port => rport, :name => "emc-library", :info => data)
|
2008-10-10 15:28:01 +00:00
|
|
|
else
|
|
|
|
print_error("Host #{ip} is not running the service...")
|
2010-04-30 08:40:19 +00:00
|
|
|
end
|
2008-10-10 15:28:01 +00:00
|
|
|
|
|
|
|
disconnect
|
|
|
|
|
|
|
|
end
|
2010-06-22 18:58:38 +00:00
|
|
|
end
|