golismero / openvas_lib

OpenVAS connector for versions 6, 7, 8 and 9
BSD 3-Clause "New" or "Revised" License
80 stars 100 forks source link

AttributeError: 'ElementTree' object has no attribute 'get' #47

Closed zty1304368100 closed 4 years ago

zty1304368100 commented 4 years ago

I want to run openvas code,but prompt this error: status = response.get('status', None) AttributeError: 'ElementTree' object has no attribute 'get'

This is my code: manager = VulnscanManager("127.0.0.1", "admin", "admin", port=4000) print(manager)

Does anyone know this problem? Please tell me,Thanks!

Anon-Exploiter commented 4 years ago

Came across the same error. Try changing the connection port to 9390 instead of 4000.

manager = VulnscanManager("127.0.0.1", "admin", "admin", port=9390)
print(manager)
zty1304368100 commented 4 years ago

Came across the same error. Try changing the connection port to 9390 instead of 4000.

manager = VulnscanManager("127.0.0.1", "admin", "admin", port=9390)
print(manager)

After I changed to port 9390, the program threw an exception: openvas_lib.VulnscanServerError: Error while connecting to the server: [Errno 10061]

Came across the same error. Try changing the connection port to 9390 instead of 4000.

manager = VulnscanManager("127.0.0.1", "admin", "admin", port=9390)
print(manager)

ok. thanks ! The problems have now been sorte !

Anon-Exploiter commented 4 years ago

Awesome! :)

Please close the issue, if it's fixed.

Edwardhgj commented 2 years ago

I want to run openvas code,but prompt this error: status = response.get('status', None) AttributeError: 'ElementTree' object has no attribute 'get'

This is my code: manager = VulnscanManager("127.0.0.1", "admin", "admin", port=4000) print(manager)

Does anyone know this problem? Please tell me,Thanks!

can you tell me how to resolve this problem?Thanks!