msftidy cleanup (whitespace after EOL)
This commit is contained in:
+7
-7
@@ -436,7 +436,7 @@ class Plugin::Nexpose < Msf::Plugin
|
||||
end
|
||||
|
||||
opt_ranges = opt_ranges.join(' ')
|
||||
|
||||
|
||||
if(opt_ranges.strip.empty?)
|
||||
print_line("Usage: nexpose_scan [options] <Target IP Ranges>")
|
||||
print_line(opts.usage)
|
||||
@@ -602,12 +602,12 @@ class Plugin::Nexpose < Msf::Plugin
|
||||
#
|
||||
def nexpose_vuln_lookup(doc, vid, refs, host, serv=nil)
|
||||
doc.elements.each("/NexposeReport/VulnerabilityDefinitions/vulnerability[@id = '#{vid}']]") do |vulndef|
|
||||
|
||||
|
||||
title = vulndef.attributes['title']
|
||||
pciSeverity = vulndef.attributes['pciSeverity']
|
||||
cvss_score = vulndef.attributes['cvssScore']
|
||||
cvss_vector = vulndef.attributes['cvssVector']
|
||||
|
||||
|
||||
vulndef.elements['references'].elements.each('reference') do |ref|
|
||||
if ref.attributes['source'] == 'BID'
|
||||
refs[ 'BID-' + ref.text ] = true
|
||||
@@ -618,20 +618,20 @@ class Plugin::Nexpose < Msf::Plugin
|
||||
refs[ 'MSB-MS-' + ref.text ] = true
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
refs[ 'NEXPOSE-' + vid.downcase ] = true
|
||||
|
||||
|
||||
vuln = framework.db.find_or_create_vuln(
|
||||
:host => host,
|
||||
:service => serv,
|
||||
:name => 'NEXPOSE-' + vid.downcase,
|
||||
:data => title)
|
||||
|
||||
|
||||
rids = []
|
||||
refs.keys.each do |r|
|
||||
rids << framework.db.find_or_create_ref(:name => r)
|
||||
end
|
||||
|
||||
|
||||
vuln.refs << (rids - vuln.refs)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user