Thanks for your answer.
I wrote this code:
from gvm.connections import UnixSocketConnection
from gvm.protocols.latest import Osp
from gvm.transforms import EtreeCheckCommandTransform
path = ‘/var/run/openvasmd.sock’
connection = UnixSocketConnection(path=path)
transform = EtreeCheckCommandTransform()
osp = Osp(connection=connection, transform=transform)
targets = [{‘hosts’: ‘localhost’, ‘ports’: ‘80,43’}]
r = osp.start_scan(targets=targets)
print®
When I run my code, I get this Error:
raise GvmError(‘Error in response. {0}’.format(status_text), root)
gvm.errors.GvmError: (‘Error in response. First command must be AUTHENTICATE, COMMANDS or GET_VERSION’, <Element omp_response at 0x7f469b313c08>)
Cloud you please help me?
Thanks