Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Add element "vts" to parameters for starting scans #19

Merged
merged 2 commits into from
Jun 18, 2018

Conversation

janowagner
Copy link
Member

The element "vts" is added to the base scanner parameters
and allows to send a list of vt's to be executed by the scanner.

The scanner needs to parse and handle the list on its own.

Since "vts" is a comma-separated list of vt_ids, to prevent
parsing/escaping problems, the syntax of a vt_id is now
limited to certain characters which are typically used for ids.

@janowagner janowagner requested review from a team and jjnicola June 14, 2018 18:43
@codecov
Copy link

codecov bot commented Jun 14, 2018

Codecov Report

Merging #19 into master will decrease coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #19      +/-   ##
==========================================
- Coverage   55.74%   55.72%   -0.03%     
==========================================
  Files           4        4              
  Lines        1044     1048       +4     
==========================================
+ Hits          582      584       +2     
- Misses        462      464       +2
Impacted Files Coverage Δ
ospd/ospd.py 61.71% <100%> (-0.09%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ea6093c...69bdf4e. Read the comment docs.

ospd/ospd.py Outdated
for name, param in BASE_SCANNER_PARAMS.items():
self.add_scanner_param(name, param)
self.vts = dict()
self.vt_id_pattern = re.compile("[0-9a-zA-Z_:.]{1,80}")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add the dash symbol - to the list of possible characters in the vt_id.

The element "vts" is added to the base scanner parameters
and allows to send a list of vt's to be executed by the scanner.

The scanner needs to parse and handle the list on its own.

Since "vts" is a comma-separated list of vt_ids, to prevent
parsing/escaping problems, the syntax of a vt_id is now
limited to certain characters which are typically used for ids.
@jjnicola jjnicola merged commit 92ebfa9 into greenbone:master Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants