From 2c485c8bb3535688e1d16e733910ce0b21726c3f Mon Sep 17 00:00:00 2001 From: Mohamed Elyousfi <144013278+elyousfi5@users.noreply.github.com> Date: Wed, 24 Jul 2024 14:50:32 +0100 Subject: [PATCH 1/3] Release 0.11.3 --- ostorlab.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ostorlab.yaml b/ostorlab.yaml index 9dac4183..5c5ecc37 100755 --- a/ostorlab.yaml +++ b/ostorlab.yaml @@ -1,6 +1,6 @@ kind: Agent name: nmap -version: 0.11.2 +version: 0.11.3 image: images/logo.png description: | This repository is an implementation of [Ostorlab Agent](https://pypi.org/project/ostorlab/) for the [Nmap Scanner](https://github.com/projectdiscovery/nmap) by Project Discovery. From 1d19b0684bf706ce28b7e5a2c755d9d3ac90562e Mon Sep 17 00:00:00 2001 From: elyousfi Date: Wed, 24 Jul 2024 14:58:25 +0100 Subject: [PATCH 2/3] Fix unit tests --- ostorlab.yaml | 2 +- tests/conftest.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ostorlab.yaml b/ostorlab.yaml index 5c5ecc37..9a7fcd4a 100755 --- a/ostorlab.yaml +++ b/ostorlab.yaml @@ -104,7 +104,7 @@ args: description: "Template of timing settings (T0, T1, ... T5)." value: "T3" - name: "script_default" - type: "bool" + type: "boolean" description: "Script scan, equivalent to --script=default" value: true - name: "scripts" diff --git a/tests/conftest.py b/tests/conftest.py index e3ed6be6..108a99cf 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -333,7 +333,7 @@ def nmap_agent_top_ports( ), utils_definitions.Arg( name="top_ports", - type="int", + type="number", value=json.dumps("420").encode(), ), ], From 1d33b2b07defbf467072b63e491f81733ee1f37f Mon Sep 17 00:00:00 2001 From: elyousfi Date: Wed, 24 Jul 2024 14:59:29 +0100 Subject: [PATCH 3/3] Fix unit tests --- tests/nmap_agent_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/nmap_agent_test.py b/tests/nmap_agent_test.py index f260b440..951e3a5f 100644 --- a/tests/nmap_agent_test.py +++ b/tests/nmap_agent_test.py @@ -412,7 +412,7 @@ def testAgentNmapOptions_withMaxNetworkMask_scansEachSubnet( nmap_test_agent.settings.args = [ utils_definitions.Arg( name="max_network_mask_ipv4", - type="int", + type="number", value=json.dumps("32").encode(), ) ]