metasploit-framework/modules/auxiliary/scanner/motorola/timbuktu_udp.rb

57 lines
1.4 KiB
Ruby
Raw Normal View History

##
# This module requires Metasploit: http://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
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)
])
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
ensure
2013-08-30 21:28:54 +00:00
disconnect_udp
end
end
end