nessus-file-analyzer icon indicating copy to clipboard operation
nessus-file-analyzer copied to clipboard

Error: child index out of range

Open satyendra22 opened this issue 4 years ago • 6 comments

While parsing its throwing below error [2021-01-13 16:45:01.099777] [action=info] [source_file_name=ERROR Parsing [1/1] nessus files] [2021-01-13 16:45:01.111838] [action=info] [source_file_name=child index out of range]

File "C:\Users\student\AppData\Roaming\Python\Python37\site-packages\nessus_file_reader\scan\scan.py", line 59, in server_preference_value for preference in root[0][1][0].findall("preference"): IndexError: child index out of range

satyendra22 avatar Jan 13 '21 16:01 satyendra22

Same issue. I am trying to analyse a Tenable.io generated nessus file.

kkenderesi avatar Feb 08 '21 13:02 kkenderesi

Sorry for late response! @satyendra22 what is the source of your *.nessus file? Does it Tenable.io as in @kkenderesi example?

damian-krawczyk avatar Mar 27 '21 15:03 damian-krawczyk

Having the same issue. Input is a .nessus file from Nessus Professional.

mplattner avatar Oct 22 '21 14:10 mplattner

The problem is probably the parsing of the preferences part of the nessus file, (see line 59 of scan.py) I had some success in changing 'root[0][1][0].findall("preference")' to 'root[0][2][0].findall("preference")'

hackstrip avatar May 12 '22 09:05 hackstrip

Hi @hackstrip, @mplattner, @satyendra22, @kkenderesi, Can you check it now? Make sure that you have below in pointed version:

  • nessus-file-analyzer 0.7.2
  • nessus-file-reader 0.4.1

damian-krawczyk avatar May 13 '22 14:05 damian-krawczyk

Yes, there are no errors with the .nessus files that did throw the error with the previous analyzer version 👍 Sorry for my late response.

mplattner avatar Sep 29 '22 17:09 mplattner