I have followed https://pypi.python.org/pypi/openvas.omplib#installing-openvas-omplib with no luck. Below is the code they suggest (I used):
from openvas.omplib import *
manager = openvas.omplib.OMPClient(host = sensor)
manager.open(USER,PASSWORD)
I get the following error:
Traceback (most recent call last):
File "test.py", line 5, in <module>
manager = openvas.omplib.OMPClient(host=sensor)
NameError: name = 'openvas' is not defined
It seems the library is not installing correctly or all the way. To install, I ran:
easy_install openvas.omplib
Any ideas?
I have also tried Openvas_lib 1.0 (another form). This one also runs into errors. (yes I have the variables set to something)
from openvas_lib import VulnscanManager, VulnscanException
scan = VulnscanManager("localhost",USER,PASSWORD,9392)
scan.launch_scan(target,profile="empty")