File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -4222,7 +4222,10 @@ def import_retina_xml(args={}, &block)
4222
4222
parser = Rex ::Parser ::RetinaXMLStreamParser . new
4223
4223
parser . on_found_host = Proc . new do |host |
4224
4224
hobj = nil
4225
- data = { :workspace => wspace }
4225
+ data = {
4226
+ :workspace => wspace ,
4227
+ :task => args [ :task ]
4228
+ }
4226
4229
addr = host [ 'address' ]
4227
4230
next if not addr
4228
4231
Original file line number Diff line number Diff line change @@ -204,6 +204,7 @@ def import_msf_xml(args={}, &block)
204
204
205
205
doc . elements . each ( "/#{ btag } /hosts/host" ) do |host |
206
206
host_data = { }
207
+ host_data [ :task ] = args [ :task ]
207
208
host_data [ :workspace ] = wspace
208
209
host_data [ :host ] = nils_for_nulls ( host . elements [ "address" ] . text . to_s . strip )
209
210
if bl . include? host_data [ :host ]
@@ -247,6 +248,7 @@ def import_msf_xml(args={}, &block)
247
248
248
249
host . elements . each ( 'services/service' ) do |service |
249
250
service_data = { }
251
+ service_data [ :task ] = args [ :task ]
250
252
service_data [ :workspace ] = wspace
251
253
service_data [ :host ] = hobj
252
254
service_data [ :port ] = nils_for_nulls ( service . elements [ "port" ] . text . to_s . strip ) . to_i
You can’t perform that action at this time.
0 commit comments