Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using the script with OpenVAS XML report #4

Open
rbr101 opened this issue Nov 2, 2015 · 0 comments
Open

Error when using the script with OpenVAS XML report #4

rbr101 opened this issue Nov 2, 2015 · 0 comments

Comments

@rbr101
Copy link

rbr101 commented Nov 2, 2015

Hello,

When i use the script to import an OpenVAS XML report to elastic search i get the following error:

./VulntoES.py -i report.xml -e 127.0.0.1 -r openvas
report.xml
report.xml
Traceback (most recent call last):
File "./VulntoES.py", line 378, in
main()
File "./VulntoES.py", line 371, in main
np = OpenVasES(in_file,es_ip,index_name)
File "./VulntoES.py", line 228, in init
self.issueList = self.__createIssuesList()
File "./VulntoES.py", line 245, in __createIssuesList
for result in self.root.iter('result'):
AttributeError: _ElementInterface instance has no attribute 'iter'

./VulntoFile.py -i report.xml -r openvas
report.xml
report.xml
Traceback (most recent call last):
File "./VulntoFile.py", line 367, in
main()
File "./VulntoFile.py", line 360, in main
np = OpenVasES(in_file,output_file)
File "./VulntoFile.py", line 221, in init
self.issueList = self.__createIssuesList()
File "./VulntoFile.py", line 237, in __createIssuesList
for result in self.root.iter('result'):
AttributeError: _ElementInterface instance has no attribute 'iter'

What versions of openvas are supported ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant