gvm-tools 24.1.0__tar.gz → 24.6.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of gvm-tools might be problematic. Click here for more details.
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/PKG-INFO +2 -2
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/README.md +1 -1
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/gvmtools/__init__.py +1 -1
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/gvmtools/__version__.py +1 -1
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/gvmtools/cli.py +3 -3
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/gvmtools/config.py +1 -1
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/gvmtools/helper.py +1 -1
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/gvmtools/parser.py +1 -1
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/gvmtools/pyshell.py +1 -1
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/gvmtools/script.py +1 -1
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/pyproject.toml +14 -13
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/scripts/create-cve-report-from-json.gmp.py +6 -6
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/tests/__init__.py +1 -1
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/tests/scripts/__init__.py +1 -1
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/tests/scripts/example_schedules.xml +1 -1
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/tests/scripts/example_target.xml +1 -1
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/tests/scripts/example_task.xml +1 -1
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/tests/scripts/get_alerts.xml +1 -1
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/tests/scripts/get_scan_configs.xml +1 -1
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/tests/scripts/invalid_xml.xml +1 -1
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/tests/scripts/test_combine_reports.py +1 -1
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/tests/scripts/test_create_consolidated_report.py +1 -1
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/tests/scripts/test_send_schedules.py +1 -1
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/tests/scripts/test_send_targets.py +1 -1
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/tests/scripts/test_send_tasks.py +1 -1
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/tests/scripts/test_start_alert_scan.py +1 -1
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/tests/test_config.py +1 -1
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/tests/test_helper.py +1 -1
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/tests/test_parser.py +1 -1
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/LICENSE +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/scripts/.pylintrc +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/scripts/README.md +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/scripts/application-detection.gmp.py +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/scripts/bulk-modify-schedules.gmp.py +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/scripts/certbund-report.gmp.py +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/scripts/cfg-gen-for-certs.gmp.py +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/scripts/check-gmp.gmp.py +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/scripts/clean-sensor.gmp.py +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/scripts/combine-reports.gmp.py +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/scripts/create-consolidated-report.gmp.py +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/scripts/create-dummy-data.gmp.py +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/scripts/create-targets-from-host-list.gmp.py +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/scripts/default_report_data.json +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/scripts/delete-overrides-by-filter.gmp.py +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/scripts/export-pdf-report.gmp.py +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/scripts/generate-random-reports.gmp.py +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/scripts/generate-random-targets.gmp.py +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/scripts/list-tasks.gmp.py +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/scripts/monthly-report-gos4.gmp.py +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/scripts/monthly-report.gmp.py +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/scripts/nvt-scan.gmp.py +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/scripts/requirements.txt +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/scripts/ruff.toml +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/scripts/scan-new-system.gmp.py +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/scripts/send-delta-emails.gmp.py +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/scripts/send-schedules.gmp.py +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/scripts/send-targets.gmp.py +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/scripts/send-tasks.gmp.py +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/scripts/ssv_csv.py +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/scripts/start-alert-scan.gmp.py +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/scripts/start-multiple-alerts-scan.gmp.py +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/scripts/start-nvt-scan.gmp.py +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/scripts/sync-hosts.gmp.py +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/scripts/update-task-target.gmp.py +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/tests/root_help.3.10.snap +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/tests/root_help.snap +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/tests/socket_help.3.10.snap +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/tests/socket_help.snap +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/tests/ssh_help.3.10.snap +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/tests/ssh_help.snap +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/tests/test.cfg +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/tests/test_auth.cfg +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/tests/tls_help.3.10.snap +0 -0
- {gvm_tools-24.1.0 → gvm_tools-24.6.0}/tests/tls_help.snap +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: gvm-tools
|
|
3
|
-
Version: 24.
|
|
3
|
+
Version: 24.6.0
|
|
4
4
|
Summary: Tools to control a GSM/GVM over GMP or OSP
|
|
5
5
|
Home-page: https://github.com/greenbone/gvm-tools/
|
|
6
6
|
License: GPL-3.0-or-later
|
|
@@ -226,7 +226,7 @@ Afterwards active the git hooks for auto-formatting and linting via
|
|
|
226
226
|
|
|
227
227
|
## License
|
|
228
228
|
|
|
229
|
-
Copyright (C) 2017-
|
|
229
|
+
Copyright (C) 2017-2024 [Greenbone AG](https://www.greenbone.net/)
|
|
230
230
|
|
|
231
231
|
Licensed under the [GNU General Public License v3.0 or later](LICENSE).
|
|
232
232
|
|
|
@@ -199,6 +199,6 @@ Afterwards active the git hooks for auto-formatting and linting via
|
|
|
199
199
|
|
|
200
200
|
## License
|
|
201
201
|
|
|
202
|
-
Copyright (C) 2017-
|
|
202
|
+
Copyright (C) 2017-2024 [Greenbone AG](https://www.greenbone.net/)
|
|
203
203
|
|
|
204
204
|
Licensed under the [GNU General Public License v3.0 or later](LICENSE).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
#
|
|
2
|
+
# SPDX-FileCopyrightText: 2018-2024 Greenbone AG
|
|
3
3
|
#
|
|
4
4
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
5
5
|
#
|
|
@@ -24,7 +24,7 @@ from gvm.errors import GvmError
|
|
|
24
24
|
from gvm.protocols.gmp import Gmp
|
|
25
25
|
from gvm.protocols.latest import Osp
|
|
26
26
|
from gvm.transforms import CheckCommandTransform
|
|
27
|
-
from gvm.xml import
|
|
27
|
+
from gvm.xml import parse_xml, pretty_print
|
|
28
28
|
|
|
29
29
|
from gvmtools.helper import authenticate, do_not_run_as_root
|
|
30
30
|
from gvmtools.parser import (
|
|
@@ -104,7 +104,7 @@ def main():
|
|
|
104
104
|
xml = input()
|
|
105
105
|
|
|
106
106
|
try:
|
|
107
|
-
|
|
107
|
+
parse_xml(xml)
|
|
108
108
|
except GvmError as e:
|
|
109
109
|
print(e, file=sys.stderr)
|
|
110
110
|
sys.exit(1)
|
|
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
|
|
|
4
4
|
|
|
5
5
|
[tool.poetry]
|
|
6
6
|
name = "gvm-tools"
|
|
7
|
-
version = "24.
|
|
7
|
+
version = "24.6.0"
|
|
8
8
|
authors = ["Greenbone AG <info@greenbone.net>"]
|
|
9
9
|
description = "Tools to control a GSM/GVM over GMP or OSP"
|
|
10
10
|
license = "GPL-3.0-or-later"
|
|
@@ -22,6 +22,7 @@ classifiers = [
|
|
|
22
22
|
'Programming Language :: Python :: 3.9',
|
|
23
23
|
'Programming Language :: Python :: 3.10',
|
|
24
24
|
'Programming Language :: Python :: 3.11',
|
|
25
|
+
'Programming Language :: Python :: 3.12',
|
|
25
26
|
'Operating System :: OS Independent',
|
|
26
27
|
'Topic :: Software Development :: Libraries :: Python Modules',
|
|
27
28
|
]
|
|
@@ -40,11 +41,10 @@ gvm-script = "gvmtools.script:main"
|
|
|
40
41
|
python = "^3.9"
|
|
41
42
|
python-gvm = ">=23.4.2"
|
|
42
43
|
|
|
43
|
-
[tool.poetry.dev
|
|
44
|
+
[tool.poetry.group.dev.dependencies]
|
|
44
45
|
autohooks = ">=22.8.0"
|
|
45
46
|
autohooks-plugin-ruff = ">=23.6.1"
|
|
46
47
|
autohooks-plugin-black = ">=22.8.1"
|
|
47
|
-
autohooks-plugin-isort = ">=22.8.0"
|
|
48
48
|
pontos = ">=22.8.1"
|
|
49
49
|
sphinx = ">=5.3.0"
|
|
50
50
|
coverage = ">=7.2"
|
|
@@ -55,7 +55,7 @@ myst-parser = ">=2.0.0"
|
|
|
55
55
|
|
|
56
56
|
[tool.black]
|
|
57
57
|
line-length = 80
|
|
58
|
-
target-version = ['py39', 'py310', 'py311']
|
|
58
|
+
target-version = ['py39', 'py310', 'py311', 'py312']
|
|
59
59
|
exclude = '''
|
|
60
60
|
/(
|
|
61
61
|
\.git
|
|
@@ -69,17 +69,18 @@ exclude = '''
|
|
|
69
69
|
)/
|
|
70
70
|
'''
|
|
71
71
|
|
|
72
|
-
[tool.isort]
|
|
73
|
-
profile = "black"
|
|
74
|
-
line_length = 80
|
|
75
|
-
|
|
76
72
|
[tool.autohooks]
|
|
77
73
|
mode = "poetry"
|
|
78
|
-
pre-commit = [
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
74
|
+
pre-commit = ['autohooks.plugins.black', 'autohooks.plugins.ruff']
|
|
75
|
+
|
|
76
|
+
[tool.ruff]
|
|
77
|
+
line-length = 80
|
|
78
|
+
target-version = "py39"
|
|
79
|
+
extend-select = ["I", "PLE", "PLW"]
|
|
80
|
+
|
|
81
|
+
[tool.coverage.run]
|
|
82
|
+
omit = ["tests/*"]
|
|
83
|
+
source = ["gvmtools", "scripts"]
|
|
83
84
|
|
|
84
85
|
[tool.pontos.version]
|
|
85
86
|
version-module-file = "gvmtools/__version__.py"
|
|
@@ -274,9 +274,9 @@ class Report:
|
|
|
274
274
|
if source_type:
|
|
275
275
|
e.SubElement(source_elem, "type").text = source_type
|
|
276
276
|
if source_description:
|
|
277
|
-
e.SubElement(
|
|
278
|
-
|
|
279
|
-
)
|
|
277
|
+
e.SubElement(source_elem, "description").text = (
|
|
278
|
+
source_description
|
|
279
|
+
)
|
|
280
280
|
|
|
281
281
|
return host_detail_elem
|
|
282
282
|
|
|
@@ -321,9 +321,9 @@ class Report:
|
|
|
321
321
|
result_id = generate_uuid()
|
|
322
322
|
result = e.Element("result", {"id": result_id})
|
|
323
323
|
e.SubElement(result, "name").text = f"Result for host {ip}"
|
|
324
|
-
e.SubElement(
|
|
325
|
-
|
|
326
|
-
)
|
|
324
|
+
e.SubElement(result, "comment").text = (
|
|
325
|
+
"Imported with gvm-tools"
|
|
326
|
+
)
|
|
327
327
|
e.SubElement(result, "modification_time").text = date_time
|
|
328
328
|
e.SubElement(result, "creation_time").text = date_time
|
|
329
329
|
detect_elem = e.Element("detection")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|