Enforce proper protocol case where necessary
parent
b760815c86
commit
9955cb5b27
|
@ -20,7 +20,7 @@ module Msf
|
|||
report_service(
|
||||
host: rhost,
|
||||
port: rport,
|
||||
proto: proto,
|
||||
proto: proto.downcase,
|
||||
name: 'sip'
|
||||
)
|
||||
|
||||
|
@ -38,7 +38,7 @@ module Msf
|
|||
report_note(
|
||||
host: rhost,
|
||||
port: rport,
|
||||
proto: proto,
|
||||
proto: proto.downcase,
|
||||
type: "sip_#{k}",
|
||||
data: v
|
||||
)
|
||||
|
@ -57,7 +57,7 @@ module Msf
|
|||
src = "#{shost}:#{datastore['RPORT']}"
|
||||
|
||||
data = "OPTIONS sip:#{datastore['TO']}@#{ip} SIP/2.0\r\n"
|
||||
data << "Via: SIP/2.0/#{proto} #{src};branch=z9hG4bK.#{format('%.8x', rand(0x100000000))};rport;alias\r\n"
|
||||
data << "Via: SIP/2.0/#{proto.upcase} #{src};branch=z9hG4bK.#{format('%.8x', rand(0x100000000))};rport;alias\r\n"
|
||||
data << "From: sip:#{suser}@#{src};tag=70c00e8c\r\n"
|
||||
data << "To: sip:#{datastore['TO']}@#{ip}\r\n"
|
||||
data << "Call-ID: #{rand(0x100000000)}@#{shost}\r\n"
|
||||
|
|
|
@ -34,10 +34,10 @@ class Metasploit3 < Msf::Auxiliary
|
|||
end
|
||||
|
||||
def scan_host(ip)
|
||||
scanner_send(create_probe(ip, 'UDP'), ip, datastore['RPORT'])
|
||||
scanner_send(create_probe(ip, 'udp'), ip, datastore['RPORT'])
|
||||
end
|
||||
|
||||
def scanner_process(data, shost, _)
|
||||
parse_response(data, shost, 'UDP')
|
||||
parse_response(data, shost, 'udp')
|
||||
end
|
||||
end
|
||||
|
|
|
@ -32,7 +32,7 @@ class Metasploit3 < Msf::Auxiliary
|
|||
def run_host(ip)
|
||||
begin
|
||||
connect
|
||||
sock.put(create_probe(ip, 'TCP'))
|
||||
sock.put(create_probe(ip, 'tcp'))
|
||||
res = sock.get_once(-1, 5)
|
||||
parse_response(res, rhost, 'tcp') if res
|
||||
rescue ::Interrupt
|
||||
|
|
Loading…
Reference in New Issue