parent
0418027c90
commit
eff95221da
|
@ -1,16 +1,6 @@
|
|||
require 'rex/parser/openvas_nokogiri'
|
||||
|
||||
module Msf::DBManager::Import::OpenVAS
|
||||
#
|
||||
# Of course they had to change the nessus format.
|
||||
#
|
||||
def import_openvas_xml(args={}, &block)
|
||||
filename = args[:filename]
|
||||
wspace = args[:wspace] || workspace
|
||||
|
||||
raise DBImportError.new("No OpenVAS XML support. Please submit a patch to msfdev[at]metasploit.com")
|
||||
end
|
||||
|
||||
def import_openvas_new_xml(args={}, &block)
|
||||
if block
|
||||
doc = Rex::Parser::OpenVASDocument.new(args,framework.db) {|type, data| yield type,data }
|
||||
|
@ -31,4 +21,14 @@ module Msf::DBManager::Import::OpenVAS
|
|||
end
|
||||
import_wapiti_xml(args.merge(:data => data))
|
||||
end
|
||||
|
||||
#
|
||||
# Of course they had to change the nessus format.
|
||||
#
|
||||
def import_openvas_xml(args={}, &block)
|
||||
filename = args[:filename]
|
||||
wspace = args[:wspace] || workspace
|
||||
|
||||
raise DBImportError.new("No OpenVAS XML support. Please submit a patch to msfdev[at]metasploit.com")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue