Skip to content

Commit e2130a1

Browse files
Change: Make the alive_test_ports scanner preference visible for the clients. (#787) (#789)
The option can be sent to ospd-openvas as scanner preference now. (cherry picked from commit fbe06cb) Co-authored-by: Juan José Nicola <juan.nicola@greenbone.net>
1 parent f45913f commit e2130a1

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

ospd_openvas/daemon.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,15 @@
295295
+ '"T:1-65535,U:1-1024".'
296296
),
297297
},
298+
'alive_test_ports': {
299+
'type': 'string',
300+
'name': 'alive_test_ports',
301+
'default': '21-23,25,53,80,110-111,135,139,143,443,445,'
302+
+ '993,995,1723,3306,3389,5900,8080',
303+
'mandatory': 0,
304+
'visible_for_client': True,
305+
'description': ('Port list used for host alive detection.'),
306+
},
298307
'test_alive_hosts_only': {
299308
'type': 'boolean',
300309
'name': 'test_alive_hosts_only',

tests/test_daemon.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,15 @@
249249
+ '"T:1-65535,U:1-1024".'
250250
),
251251
},
252+
'alive_test_ports': {
253+
'type': 'string',
254+
'name': 'alive_test_ports',
255+
'default': '21-23,25,53,80,110-111,135,139,143,443,445,'
256+
+ '993,995,1723,3306,3389,5900,8080',
257+
'mandatory': 0,
258+
'visible_for_client': True,
259+
'description': ('Port list used for host alive detection.'),
260+
},
252261
'test_alive_hosts_only': {
253262
'type': 'boolean',
254263
'name': 'test_alive_hosts_only',

0 commit comments

Comments
 (0)