Skip to content

Commit

Permalink
Merge pull request #847 from timopollmeier/remove-smb-nvt-9.0
Browse files Browse the repository at this point in the history
Remove 1.3.6.1.4.1.25623.1.0.90011 from Discovery config (9.0)
  • Loading branch information
mattmundell authored Nov 1, 2019
2 parents 6fe0511 + 5326a9d commit bd4777a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- MODIFY_USER saves comment when COMMENT is empty [#842](https://github.com/greenbone/gvmd/pull/842)

### Removed
- Remove 1.3.6.1.4.1.25623.1.0.90011 from Discovery config (9.0) [#847](https://github.com/greenbone/gvmd/pull/847)

[9.0.1]: https://github.com/greenbone/gvmd/compare/v9.0.0...gvmd-9.0

Expand Down
8 changes: 7 additions & 1 deletion src/manage_config_discovery.c
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,6 @@ make_config_discovery (char *const uuid, char *const selector_name)
NVT_SELECTOR (selector_name, "1.3.6.1.4.1.25623.1.0.80039", "Windows");
NVT_SELECTOR (selector_name, "1.3.6.1.4.1.25623.1.0.10394", "Windows");
NVT_SELECTOR (selector_name, "1.3.6.1.4.1.25623.1.0.10006", "Windows");
NVT_SELECTOR (selector_name, "1.3.6.1.4.1.25623.1.0.90011", "Windows");
NVT_SELECTOR (selector_name, "1.3.6.1.4.1.25623.1.0.900012", "Windows");
NVT_SELECTOR (selector_name, "1.3.6.1.4.1.25623.1.0.100062", "Windows");
NVT_SELECTOR (selector_name, "1.3.6.1.4.1.25623.1.0.10674", "Windows");
Expand Down Expand Up @@ -986,5 +985,12 @@ check_config_discovery (const char *uuid)
"yes",
TRUE);

sql ("DELETE FROM nvt_selectors"
" WHERE family_or_nvt = '1.3.6.1.4.1.25623.1.0.90011'"
" AND type = %d"
" AND name = (SELECT nvt_selector FROM configs WHERE uuid = '%s')",
NVT_SELECTOR_TYPE_NVT,
uuid);

return 0;
}

0 comments on commit bd4777a

Please sign in to comment.