Correct minor style issues
parent
63b75a0093
commit
79b05db409
|
@ -6,7 +6,6 @@
|
|||
require 'msf/core'
|
||||
|
||||
class Metasploit3 < Msf::Auxiliary
|
||||
|
||||
include Msf::Auxiliary::Report
|
||||
include Msf::Auxiliary::UDPScanner
|
||||
include Msf::Auxiliary::DRDoS
|
||||
|
@ -21,7 +20,7 @@ class Metasploit3 < Msf::Auxiliary
|
|||
|
||||
register_options([
|
||||
Opt::RPORT(1900),
|
||||
OptBool.new('SHORT', [ false, "Does a shorter request, for a higher amplifier, not compatible with all devices", false]),
|
||||
OptBool.new('SHORT', [ false, "Does a shorter request, for a higher amplifier, not compatible with all devices", false])
|
||||
], self.class)
|
||||
end
|
||||
|
||||
|
@ -57,10 +56,10 @@ class Metasploit3 < Msf::Auxiliary
|
|||
@results.keys.each do |k|
|
||||
response_map = { @msearch_probe => @results[k] }
|
||||
report_service(
|
||||
:host => k,
|
||||
:proto => 'udp',
|
||||
:port => datastore['RPORT'],
|
||||
:name => 'ssdp'
|
||||
host: k,
|
||||
proto: 'udp',
|
||||
port: datastore['RPORT'],
|
||||
name: 'ssdp'
|
||||
)
|
||||
|
||||
peer = "#{k}:#{datastore['RPORT']}"
|
||||
|
@ -68,13 +67,13 @@ class Metasploit3 < Msf::Auxiliary
|
|||
what = 'SSDP ssdp:all DRDoS'
|
||||
if vulnerable
|
||||
print_good("#{peer} - Vulnerable to #{what}: #{proof}")
|
||||
report_vuln({
|
||||
:host => k,
|
||||
:port => datastore['RPORT'],
|
||||
:proto => 'udp',
|
||||
:name => what,
|
||||
:refs => self.references
|
||||
})
|
||||
report_vuln(
|
||||
host: k,
|
||||
port: datastore['RPORT'],
|
||||
proto: 'udp',
|
||||
name: what,
|
||||
refs: self.references
|
||||
)
|
||||
else
|
||||
vprint_status("#{peer} - Not vulnerable to #{what}: #{proof}")
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue