File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -200,19 +200,20 @@ def setMultipleTarget():
200
200
201
201
if not conf .urlFile :
202
202
for pocname , pocInstance in kb .registeredPocs .items ():
203
+ target_urls = []
203
204
if conf .url .endswith ('/24' ):
204
205
try :
205
206
socket .inet_aton (conf .url .split ('/' )[0 ])
206
207
base_addr = conf .url [:conf .url .rfind ('.' ) + 1 ]
207
- conf . url = ['{}{}' .format (base_addr , i ) \
208
+ target_urls = ['{}{}' .format (base_addr , i ) \
208
209
for i in xrange (1 , 255 + 1 )]
209
210
except socket .error :
210
211
errMsg = 'only id address acceptable'
211
212
logger .log (CUSTOM_LOGGING .ERROR , errMsg )
212
213
else :
213
- conf . url = conf .url .split (',' )
214
+ target_urls = conf .url .split (',' )
214
215
215
- for url in conf . url :
216
+ for url in target_urls :
216
217
if url :
217
218
kb .targets .put ((url , pocInstance , pocname ))
218
219
You can’t perform that action at this time.
0 commit comments