2009-09-26 00:04:00 +00:00
|
|
|
##
|
|
|
|
# This file is part of the Metasploit Framework and may be subject to
|
|
|
|
# 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/
|
2009-09-26 00:04:00 +00:00
|
|
|
##
|
|
|
|
|
|
|
|
require 'msf/core'
|
|
|
|
|
|
|
|
class Metasploit3 < Msf::Auxiliary
|
|
|
|
|
|
|
|
include Msf::Auxiliary::Report
|
|
|
|
include Msf::Auxiliary::Scanner
|
|
|
|
include Msf::Exploit::Remote::Udp
|
|
|
|
|
|
|
|
def initialize(info = {})
|
|
|
|
super(update_info(info,
|
2010-11-24 19:35:38 +00:00
|
|
|
'Name' => 'Motorola Timbuktu Service Detection',
|
2009-09-26 00:04:00 +00:00
|
|
|
'Description' => %q{
|
|
|
|
This module simply sends a packet to the Motorola Timbuktu service for detection.
|
|
|
|
},
|
|
|
|
'Author' => ['MC'],
|
|
|
|
'License' => MSF_LICENSE,
|
2010-09-20 08:06:27 +00:00
|
|
|
'DisclosureDate' => 'Sep 25 2009'
|
|
|
|
))
|
2009-09-26 00:04:00 +00:00
|
|
|
|
2010-09-20 08:06:27 +00:00
|
|
|
register_options(
|
|
|
|
[
|
|
|
|
Opt::RPORT(407)
|
|
|
|
], self.class)
|
2009-09-26 00:04:00 +00:00
|
|
|
|
2010-09-20 08:06:27 +00:00
|
|
|
deregister_options('RHOST')
|
2009-09-26 00:04:00 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def run_host(ip)
|
|
|
|
begin
|
|
|
|
connect_udp
|
|
|
|
|
|
|
|
ping = "\x00\x25\x00\x22\xFF\x01\x00\x64\x03\x07\x00\x05\x00\x01\x00\x00"
|
|
|
|
|
|
|
|
udp_sock.write(ping)
|
2010-04-30 08:40:19 +00:00
|
|
|
|
2009-09-26 00:04:00 +00:00
|
|
|
res = udp_sock.read(256)
|
2010-04-30 08:40:19 +00:00
|
|
|
|
2009-09-26 00:04:00 +00:00
|
|
|
if ( res =~ /\x00\x25\xD0\xB9/ )
|
|
|
|
report_note(
|
|
|
|
:host => ip,
|
|
|
|
:proto => 'udp',
|
|
|
|
:port => datastore['RPORT'],
|
|
|
|
:type => 'SERVICE',
|
|
|
|
:data => 'Motorola Timbuktu Service Detection'
|
|
|
|
)
|
|
|
|
print_status("Motorola Timbuktu Detected on host #{ip}.")
|
|
|
|
else
|
|
|
|
print_error("Unable to determine info for #{ip}...")
|
|
|
|
end
|
|
|
|
disconnect_udp
|
2010-04-30 08:40:19 +00:00
|
|
|
rescue ::Errno::EPIPE, ::Rex::HostUnreachable, ::Rex::ConnectionTimeout, ::Rex::ConnectionRefused
|
2009-09-26 00:04:00 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|