We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a83401f + 5a448d9 commit 5397fdbCopy full SHA for 5397fdb
lib/msf/core/auxiliary/nmap.rb
@@ -241,7 +241,7 @@ def nmap_hosts(&block)
241
fh = self.nmap_log[0]
242
nmap_data = fh.read(fh.stat.size)
243
# fh.unlink
244
- if Rex::Parser.nokogiri_loaded
+ if Rex::Parser.nokogiri_loaded && framework.db.active
245
wspace = framework.db.find_workspace(datastore['WORKSPACE'])
246
wspace ||= framework.db.workspace
247
import_args = { :data => nmap_data, :wspace => wspace }
0 commit comments