Repository navigation
Description
When i am going to add Open VAS connector to archerysec i am getting this error.
Environment:
Request Method: POST
Request URL: http://127.0.0.1:8000/networkscanners/openvas_details/
Django Version: 3.2.15
Python Version: 3.10.12
Installed Applications:
['archerysecurity',
'rest_framework',
'webscanners',
'projects',
'archerysettings',
'archeryapi',
'networkscanners',
'staticscanners',
'cloudscanners',
'jiraticketing',
'cicd',
'tools',
'pentest',
'report_upload',
'django.contrib.admin',
'stronghold',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'rest_framework.authtoken',
'debug_toolbar',
'dashboard',
'background_task',
'sitetree',
'import_export',
'compliance',
'notifications',
'user_management',
'authentication',
'rest_framework_simplejwt.token_blacklist']
Installed Middleware:
['debug_toolbar.middleware.DebugToolbarMiddleware',
'django.middleware.security.SecurityMiddleware',
'stronghold.middleware.LoginRequiredMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware']
Traceback (most recent call last):
File "/home/viduranga/archerysec/venv/lib/python3.10/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/home/viduranga/archerysec/venv/lib/python3.10/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/viduranga/archerysec/venv/lib/python3.10/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "/home/viduranga/archerysec/venv/lib/python3.10/site-packages/django/views/generic/base.py", line 70, in view
return self.dispatch(request, *args, **kwargs)
File "/home/viduranga/archerysec/venv/lib/python3.10/site-packages/rest_framework/views.py", line 509, in dispatch
response = self.handle_exception(exc)
File "/home/viduranga/archerysec/venv/lib/python3.10/site-packages/rest_framework/views.py", line 469, in handle_exception
self.raise_uncaught_exception(exc)
File "/home/viduranga/archerysec/venv/lib/python3.10/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
raise exc
File "/home/viduranga/archerysec/venv/lib/python3.10/site-packages/rest_framework/views.py", line 506, in dispatch
response = handler(request, *args, **kwargs)
File "/home/viduranga/archerysec/networkscanners/views.py", line 303, in post
openvas = OpenVAS_Plugin(
Exception Type: TypeError at /networkscanners/openvas_details/
Exception Value: OpenVAS_Plugin.init() missing 1 required positional argument: 'request'

Activity
willema-terse commentedon Dec 3, 2023
You need to add a working openvas instance, else the openvas connector will not work.
I disabled IPv6 (not sure if it helped)
I used the docker-compose install, which worked, alongside this openvas docker
Patch with this:
master...not-batmanor:archerysec:patch-1
Bring it up
docker-compose up -dUnder the settings -> connector, add the local IP address of the machine (ie. 192.168.100.10) dont use localhost or 127.0.0.1
username/password: admin and admin