Skip to content

Commit ac63965

Browse files
committed
Merge remote-tracking branch 'gerry/nbe_importing_fix' into rapid7
2 parents a74b576 + 724b32a commit ac63965

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/msf/core/db.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5163,11 +5163,11 @@ def import_nessus_nbe_file(args={})
51635163
# There is no place the NBE actually stores the plugin name used to
51645164
# scan. You get "Security Note" or "Security Warning," and that's it.
51655165
def import_nessus_nbe(args={}, &block)
5166-
data = args[:data]
5166+
nbe_data = args[:data]
51675167
wspace = args[:wspace] || workspace
51685168
bl = validate_ips(args[:blacklist]) ? args[:blacklist].split : []
51695169

5170-
nbe_copy = data.dup
5170+
nbe_copy = nbe_data.dup
51715171
# First pass, just to build the address map.
51725172
addr_map = {}
51735173

@@ -5183,7 +5183,7 @@ def import_nessus_nbe(args={}, &block)
51835183
addr_map[hname] = addr
51845184
end
51855185

5186-
data.each_line do |line|
5186+
nbe_data.each_line do |line|
51875187
r = line.split('|')
51885188
next if r[0] != 'results'
51895189
hname = r[2]

0 commit comments

Comments
 (0)