Skip to content
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

Handle addition of ID to NVT preferences. #413

Merged
merged 7 commits into from
Mar 19, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 35 additions & 6 deletions src/schema_formats/XML/GMP.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -8360,6 +8360,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
<e>nvt</e>
<e>hr_name</e>
<e>name</e>
<e>id</e>
mattmundell marked this conversation as resolved.
Show resolved Hide resolved
<e>type</e>
<e>value</e>
<e>default</e>
Expand Down Expand Up @@ -8392,9 +8393,14 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
<summary>The compact name of the preference as used by the scanner</summary>
<pattern><t>name</t></pattern>
</ele>
<ele>
<name>id</name>
<summary>The ID of the preference</summary>
<pattern>text</pattern>
</ele>
<ele>
<name>type</name>
<summary>The type of preference</summary>
<summary>The type of the preference</summary>
<pattern>text</pattern>
</ele>
<ele>
Expand Down Expand Up @@ -8642,6 +8648,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
<nvt oid="1.3.6.1.4.1.25623.1.0.10330">
<name>Services</name>
</nvt>
<id>1</id>
<name>Network connection timeout :</name>
<type>entry</type>
<value>5</value>
Expand Down Expand Up @@ -14016,6 +14023,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
<nvt oid="1.3.6.1.4.1.25623.1.0.10330">
<name>Services</name>
</nvt>
<id>1</id>
<name>Network connection timeout :</name>
<type>entry</type>
<value>5</value>
Expand Down Expand Up @@ -15474,6 +15482,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
<pattern>
<e>nvt</e>
<e>name</e>
<e>id</e>
<e>type</e>
<e>value</e>
<any><e>alt</e></any>
Expand Down Expand Up @@ -15501,9 +15510,14 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
<summary>The name of the preference</summary>
<pattern><t>name</t></pattern>
</ele>
<ele>
<name>id</name>
<summary>The ID of the preference</summary>
<pattern>text</pattern>
</ele>
<ele>
<name>type</name>
<summary>The type of preference</summary>
<summary>The type of the preference</summary>
<pattern>text</pattern>
</ele>
<ele>
Expand Down Expand Up @@ -15531,7 +15545,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
<response>
<get_preferences_response status="200" status_text="OK">
<preference>
<name>1.3.6.1.4.1.25623.1.0.10330:entry:Network connection timeout :</name>
<name>1.3.6.1.4.1.25623.1.0.10330:1:entry:Network connection timeout :</name>
<value>5</value>
</preference>
<truncated>...</truncated>
Expand All @@ -15547,7 +15561,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
<response>
<get_preferences_response status="200" status_text="OK">
<preference>
<name>1.3.6.1.4.1.25623.1.0.10330:entry:Network connection timeout :</name>
<name>1.3.6.1.4.1.25623.1.0.10330:1:entry:Network connection timeout :</name>
<value>5</value>
<default>5</default>
</preference>
Expand All @@ -15567,6 +15581,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
<nvt oid="1.3.6.1.4.1.25623.1.0.10330">
<name>Services</name>
</nvt>
<id>1</id>
<name>Network connection timeout :</name>
<type>entry</type>
<value>5</value>
Expand All @@ -15588,6 +15603,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
<nvt oid="1.3.6.1.4.1.25623.1.0.10330">
<name>Services</name>
</nvt>
<id>1</id>
<name>Network connection timeout :</name>
<type>entry</type>
<value>5</value>
Expand Down Expand Up @@ -23773,7 +23789,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
<modify_config config_id="254cd3ef-bbe1-4d58-859d-21b8d0c046c6">
<preference>
<nvt oid="1.3.6.1.4.1.25623.1.0.14259"></nvt>
<name>1.3.6.1.4.1.25623.1.0.14259:checkbox:UDP port scan</name>
<name>1.3.6.1.4.1.25623.1.0.14259:1:checkbox:UDP port scan</name>
<value>eWVz</value>
</preference>
</modify_config>
Expand All @@ -23788,7 +23804,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
<request>
<modify_config config_id="254cd3ef-bbe1-4d58-859d-21b8d0c046c6">
<preference>
<name>scanner:scanner:vhosts</name>
<name>scanner:scanner:scanner:vhosts</name>
<value>ZXhhbXBsZQ==</value>
</preference>
</modify_config>
Expand Down Expand Up @@ -26299,6 +26315,19 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.

<!-- Compatibility changes between versions. -->

<change>
<command>GET_PREFERENCES, GET_CONFIGS</command>
<summary>Add NVT Preferences ID</summary>
<description>
<p>
The PREFERENCE element in GET_PREFERENCES and GET_CONFIGS responses
contains an ID subelement. The ID should help in identifying
preferences within the same nvt instead of using the preference name
which may be changed.
</p>
</description>
<version>9.0</version>
</change>
<change>
<command>CREATE_FILTER, CREATE_TARGET</command>
<summary>NAME MAKE_UNIQUE removed</summary>
Expand Down