Skip to content

Commit

Permalink
Change: Make the alive_test_ports scanner preference visible for the …
Browse files Browse the repository at this point in the history
…clients. (#787)

The option can be sent to ospd-openvas as scanner preference now.
  • Loading branch information
jjnicola authored Oct 11, 2022
1 parent c8d24c4 commit fbe06cb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ospd_openvas/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,15 @@
+ '"T:1-65535,U:1-1024".'
),
},
'alive_test_ports': {
'type': 'string',
'name': 'alive_test_ports',
'default': '21-23,25,53,80,110-111,135,139,143,443,445,'
+ '993,995,1723,3306,3389,5900,8080',
'mandatory': 0,
'visible_for_client': True,
'description': ('Port list used for host alive detection.'),
},
'test_alive_hosts_only': {
'type': 'boolean',
'name': 'test_alive_hosts_only',
Expand Down
9 changes: 9 additions & 0 deletions tests/test_daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,15 @@
+ '"T:1-65535,U:1-1024".'
),
},
'alive_test_ports': {
'type': 'string',
'name': 'alive_test_ports',
'default': '21-23,25,53,80,110-111,135,139,143,443,445,'
+ '993,995,1723,3306,3389,5900,8080',
'mandatory': 0,
'visible_for_client': True,
'description': ('Port list used for host alive detection.'),
},
'test_alive_hosts_only': {
'type': 'boolean',
'name': 'test_alive_hosts_only',
Expand Down

0 comments on commit fbe06cb

Please sign in to comment.