Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions lib/msf/core/db_manager/vuln.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,10 @@ def has_vuln?(name)
#
def report_vuln(opts)
return if not active
raise ArgumentError.new("Missing required option :host") if opts[:host].nil?
raise ArgumentError.new("Deprecated data column for vuln, use .info instead") if opts[:data]
name = opts[:name] || return
raise ArgumentError.new("report_vuln Missing required option :host") if opts[:host].nil?
raise ArgumentError.new("report_vuln Deprecated data column for vuln, use .info instead") if opts[:data]
raise ArgumentError.new("report_vuln Missing required option :name") if opts[:name].nil?
name = opts[:name]
info = opts[:info]

::ApplicationRecord.connection_pool.with_connection {
Expand Down Expand Up @@ -333,7 +334,7 @@ def update_vuln(opts)
# @param opts[:ids] [Array] Array containing Integers corresponding to the IDs of the Vuln entries to delete.
# @return [Array] Array containing the Mdm::Vuln objects that were successfully deleted.
def delete_vuln(opts)
raise ArgumentError.new("The following options are required: :ids") if opts[:ids].nil?
raise ArgumentError.new("delete_vuln The following options are required: :ids") if opts[:ids].nil?

::ApplicationRecord.connection_pool.with_connection {
deleted = []
Expand Down
3 changes: 2 additions & 1 deletion modules/auxiliary/scanner/dns/dns_amp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ def scanner_process(data, shost, sport)
report_vuln(
:host => shost,
:port => datastore['RPORT'],
:proto => 'udp', :name => "DNS",
:proto => 'udp',
:name => "DNS",
:info => "DNS amplification - #{data.length} bytes [#{amp.round(2)}x Amplification]",
:refs => self.references
)
Expand Down
Loading