2009-09-26 00:04:00 +00:00
|
|
|
##
|
2014-10-17 16:47:33 +00:00
|
|
|
# This module requires Metasploit: http://metasploit.com/download
|
2013-10-15 18:50:46 +00:00
|
|
|
# Current source: https://github.com/rapid7/metasploit-framework
|
2009-09-26 00:04:00 +00:00
|
|
|
##
|
|
|
|
|
2016-03-08 13:02:44 +00:00
|
|
|
class MetasploitModule < Msf::Auxiliary
|
2013-08-30 21:28:54 +00:00
|
|
|
include Msf::Auxiliary::Report
|
|
|
|
include Msf::Auxiliary::Scanner
|
|
|
|
include Msf::Exploit::Remote::Udp
|
|
|
|
|
|
|
|
def initialize(info = {})
|
|
|
|
super(update_info(info,
|
|
|
|
'Name' => 'Motorola Timbuktu Service Detection',
|
|
|
|
'Description' => %q{
|
|
|
|
This module simply sends a packet to the Motorola Timbuktu service for detection.
|
|
|
|
},
|
|
|
|
'Author' => ['MC'],
|
|
|
|
'License' => MSF_LICENSE,
|
|
|
|
'DisclosureDate' => 'Sep 25 2009'
|
|
|
|
))
|
|
|
|
|
|
|
|
register_options(
|
|
|
|
[
|
|
|
|
Opt::RPORT(407)
|
2017-05-03 20:42:21 +00:00
|
|
|
])
|
2013-08-30 21:28:54 +00:00
|
|
|
|
|
|
|
deregister_options('RHOST')
|
|
|
|
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)
|
|
|
|
|
|
|
|
res = udp_sock.read(256)
|
|
|
|
|
|
|
|
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
|
2015-11-16 20:24:46 +00:00
|
|
|
ensure
|
2013-08-30 21:28:54 +00:00
|
|
|
disconnect_udp
|
|
|
|
end
|
|
|
|
end
|
2009-09-26 00:04:00 +00:00
|
|
|
end
|