-
Notifications
You must be signed in to change notification settings - Fork 58
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
Add missing scanner params #293
Add missing scanner params #293
Conversation
Codecov Report
@@ Coverage Diff @@
## ospd-openvas-20.08 #293 +/- ##
======================================================
- Coverage 82.71% 81.86% -0.85%
======================================================
Files 9 9
Lines 1481 1511 +30
======================================================
+ Hits 1225 1237 +12
- Misses 256 274 +18
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally there seems to be an inconsistency between using spaces in front of the next lines, using spaces at the line and and no spaces at all.
In addition OpenVAS
is used once where openvas
is used in other parts.
Both should be made consistent.
CHANGELOG.md
Outdated
@@ -22,6 +22,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). | |||
managing the version information in ospd-openvas [#238](https://github.com/greenbone/ospd-openvas/pull/238) | |||
- Pass store directory to OSPDaemon init [#266](https://github.com/greenbone/ospd-openvas/pull/266) | |||
- Add URI field to results for file path or webservice URL [#271](https://github.com/greenbone/ospd-openvas/pull/271) | |||
- Add elemtn to OSPD_PARAMS entries to indicate visiblitiy for client. [#293](https://github.com/greenbone/ospd-openvas/pull/293) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Add elemtn to OSPD_PARAMS entries to indicate visiblitiy for client. [#293](https://github.com/greenbone/ospd-openvas/pull/293) | |
- Add an element to OSPD_PARAMS entries to indicate visibility for client. [#293](https://github.com/greenbone/ospd-openvas/pull/293) |
ospd_openvas/daemon.py
Outdated
'mandatory': 0, | ||
'visible_for_client': 0, | ||
'description': ( | ||
'Is maximum number of hosts to test at the same time which' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'Is maximum number of hosts to test at the same time which' | |
'The maximum number of hosts to test at the same time which' |
ospd_openvas/daemon.py
Outdated
'description': ( | ||
'Is maximum number of hosts to test at the same time which' | ||
+ 'should be given to the client (which can override it).' | ||
+ 'This value must be computed given your bandwidth,' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+ 'This value must be computed given your bandwidth,' | |
+ 'This value must be computed given your bandwidth,' |
ospd_openvas/daemon.py
Outdated
+ 'should be given to the client (which can override it).' | ||
+ 'This value must be computed given your bandwidth,' | ||
+ 'the number of hosts you want to test, your amount of' | ||
+ 'memory and the horsepower of your processor(s).' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+ 'memory and the horsepower of your processor(s).' | |
+ ' memory and the performance of your processor(s).' |
ospd_openvas/daemon.py
Outdated
'Is maximum number of hosts to test at the same time which' | ||
+ 'should be given to the client (which can override it).' | ||
+ 'This value must be computed given your bandwidth,' | ||
+ 'the number of hosts you want to test, your amount of' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+ 'the number of hosts you want to test, your amount of' | |
+ ' the number of hosts you want to test, your amount of' |
ospd_openvas/daemon.py
Outdated
'visible_for_client': 0, | ||
'description': ( | ||
'Is maximum number of hosts to test at the same time which' | ||
+ 'should be given to the client (which can override it).' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+ 'should be given to the client (which can override it).' | |
+ ' should be given to the client (which can override it).' |
ospd_openvas/daemon.py
Outdated
'description': ( | ||
'Is maximum number of hosts to test at the same time which' | ||
+ 'should be given to the client (which can override it).' | ||
+ 'This value must be computed given your bandwidth,' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+ 'This value must be computed given your bandwidth,' | |
+ ' This value must be computed given your bandwidth,' |
ospd_openvas/daemon.py
Outdated
'mandatory': 0, | ||
'visible_for_client': 0, | ||
'description': ( | ||
'is the number of plugins that will run against each host being' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'is the number of plugins that will run against each host being' | |
'The number of plugins that will run against each host being' |
ospd_openvas/daemon.py
Outdated
'visible_for_client': 0, | ||
'description': ( | ||
'Name of the network interface that will be used as the source ' | ||
+ 'of connections established by OpenVAS. The scan won\'t be ' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+ 'of connections established by OpenVAS. The scan won\'t be ' | |
+ 'of connections established by openvas. The scan won\'t be ' |
As an alternative update the other occurrences of openvas
to use OpenVAS
e5b72aa
to
6e5eb50
Compare
drop_privileges preference should only be settable via openvas config file.
Support all openvas settings which are not strict openvas only settings.
We may run into problems on openvas side otherwise. For example adding the empty string for the ifaces_allow option would basically mean that we do not allow any iface.
0701433
to
306fcd2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This requires still a fix to avoid sending all the preferences in the dictionary. Only the preferences received in the xml object as options + preferences return by openvas -s
must be sent. This fix will be done with further PR.
Improve logger.
openvas
scanner parameters which are notopenvas
only parameters.drop_privileges
from params dict.Related PR:
greenbone/ospd#301