Files
metasploit-gs/modules/auxiliary/scanner/sip/options.rb
T
URI Assassin 35d3bbf74d Fix up comment splats with the correct URI
See the complaint on #4039. This doesn't fix that particular
issue (it's somewhat unrelated), but does solve around
a file parsing problem reported by @void-in
2014-10-17 11:47:33 -05:00

42 lines
1.0 KiB
Ruby

##
# This module requires Metasploit: http://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
require 'msf/core'
class Metasploit3 < Msf::Auxiliary
include Msf::Exploit::Remote::Udp
include Msf::Auxiliary::Report
include Msf::Auxiliary::UDPScanner
include Msf::Exploit::Remote::SIP
def initialize
super(
'Name' => 'SIP Endpoint Scanner (UDP)',
'Description' => 'Scan for SIP devices using OPTIONS requests',
'Author' => 'hdm',
'License' => MSF_LICENSE
)
register_options(
[
OptString.new('TO', [false, 'The destination username to probe at each host', 'nobody']),
Opt::RPORT(5060)
], self.class)
end
def scanner_prescan(batch)
print_status("Sending SIP UDP OPTIONS requests to #{batch[0]}->#{batch[-1]} (#{batch.length} hosts)")
@res = {}
end
def scan_host(ip)
scanner_send(create_probe(ip, 'udp'), ip, datastore['RPORT'])
end
def scanner_process(data, shost, _)
report_response(data, shost, 'udp')
end
end