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

Open VAS connector with archerysec #622

Open
viduranga0006 opened this issue Oct 20, 2023 · 1 comment
Open

Open VAS connector with archerysec #622

viduranga0006 opened this issue Oct 20, 2023 · 1 comment

Comments

@viduranga0006
Copy link

When i am going to add Open VAS connector to archerysec i am getting this error.

image

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'

@not-batmanor
Copy link

not-batmanor commented 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)

echo << EOF >> /etc/sysctl.conf
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
EOF
 sysctl -p

I used the docker-compose install, which worked, alongside this openvas docker

cd /opt
git pull https://github.com/archerysec/archerysec.git
cd archerysec
nano docker-compose.yml

Patch with this:

master...not-batmanor:archerysec:patch-1

Bring it up

docker-compose up -d

Under 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

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

2 participants