gvm-tools 25.4.0__tar.gz → 25.4.1__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-25.4.0 → gvm_tools-25.4.1}/PKG-INFO +4 -2
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/gvmtools/__version__.py +1 -1
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/pyproject.toml +1 -1
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/export-xml-report.gmp.py +6 -11
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/LICENSE +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/README.md +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/gvmtools/__init__.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/gvmtools/cli.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/gvmtools/config.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/gvmtools/helper.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/gvmtools/parser.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/gvmtools/pyshell.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/gvmtools/script.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/.pylintrc +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/README.md +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/application-detection.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/bulk-modify-schedules.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/certbund-report.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/cfg-gen-for-certs.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/check-gmp-gos22.04.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/check-gmp-gos24.10.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/clean-sensor.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/combine-reports.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/create-alerts-from-csv.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/create-consolidated-report.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/create-credentials-from-csv.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/create-cve-report-from-json.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/create-dummy-data.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/create-filters-from-csv.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/create-report-format-from-csv.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/create-schedules-from-csv.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/create-tags-from-csv.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/create-targets-from-csv.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/create-targets-from-host-list.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/create-tasks-from-csv.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/default_report_data.json +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/delete-overrides-by-filter.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/empty-trash.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/export-certificates.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/export-csv-report.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/export-hosts-csv.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/export-operatingsystems-csv.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/export-pdf-report.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/generate-random-reports.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/generate-random-targets.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/list-alerts.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/list-credentials.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/list-feeds.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/list-filters.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/list-groups.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/list-hosts.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/list-policies.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/list-portlists.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/list-report-formats.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/list-reports.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/list-roles.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/list-scan-configs.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/list-scanners.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/list-schedules.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/list-tags.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/list-targets.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/list-tasks.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/list-tickets.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/list-users.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/monthly-report-gos24.10.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/monthly-report-gos3.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/monthly-report-gos4.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/nvt-scan.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/requirements.txt +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/ruff.toml +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/scan-new-system.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/send-delta-emails.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/send-schedules.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/send-targets.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/send-tasks.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/ssv_csv.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/start-alert-scan.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/start-multiple-alerts-scan.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/start-nvt-scan.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/start-scans-from-csv.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/stop-all-scans.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/stop-scans-from-csv.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/sync-hosts.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/update-task-target.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/scripts/verify-scanners.gmp.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/tests/__init__.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/tests/root_help.3.10.snap +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/tests/root_help.snap +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/tests/scripts/__init__.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/tests/scripts/example_schedules.xml +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/tests/scripts/example_target.xml +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/tests/scripts/example_task.xml +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/tests/scripts/get_alerts.xml +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/tests/scripts/get_scan_configs.xml +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/tests/scripts/invalid_xml.xml +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/tests/scripts/test_combine_reports.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/tests/scripts/test_create_consolidated_report.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/tests/scripts/test_list_tasks.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/tests/scripts/test_send_schedules.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/tests/scripts/test_send_targets.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/tests/scripts/test_send_tasks.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/tests/scripts/test_start_alert_scan.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/tests/socket_help.3.10.snap +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/tests/socket_help.snap +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/tests/ssh_help.3.10.snap +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/tests/ssh_help.snap +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/tests/test.cfg +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/tests/test_auth.cfg +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/tests/test_config.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/tests/test_helper.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/tests/test_parser.py +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/tests/tls_help.3.10.snap +0 -0
- {gvm_tools-25.4.0 → gvm_tools-25.4.1}/tests/tls_help.snap +0 -0
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: gvm-tools
|
|
3
|
-
Version: 25.4.
|
|
3
|
+
Version: 25.4.1
|
|
4
4
|
Summary: Tools to control a GSM/GVM over GMP or OSP
|
|
5
5
|
License: GPL-3.0-or-later
|
|
6
|
+
License-File: LICENSE
|
|
6
7
|
Author: Greenbone AG
|
|
7
8
|
Author-email: info@greenbone.net
|
|
8
9
|
Requires-Python: >=3.9.2,<4.0.0
|
|
@@ -18,6 +19,7 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
18
19
|
Classifier: Programming Language :: Python :: 3.11
|
|
19
20
|
Classifier: Programming Language :: Python :: 3.12
|
|
20
21
|
Classifier: Programming Language :: Python :: 3.13
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
21
23
|
Classifier: Programming Language :: Python :: 3.9
|
|
22
24
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
23
25
|
Requires-Dist: python-gvm (>=26.0.0)
|
|
@@ -4,11 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
import sys
|
|
6
6
|
from argparse import Namespace
|
|
7
|
-
from base64 import b64decode
|
|
8
7
|
from pathlib import Path
|
|
9
8
|
|
|
10
9
|
from gvm.protocols.gmp import Gmp
|
|
11
|
-
from
|
|
10
|
+
from lxml import etree
|
|
12
11
|
|
|
13
12
|
|
|
14
13
|
def check_args(args):
|
|
@@ -51,9 +50,8 @@ def main(gmp: Gmp, args: Namespace) -> None:
|
|
|
51
50
|
)
|
|
52
51
|
|
|
53
52
|
report_element = response.find("report")
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
content = report_element.find("report_format").tail
|
|
53
|
+
# get the full content of the report element as bytestring
|
|
54
|
+
content = etree.tostring(report_element.find("report"))
|
|
57
55
|
|
|
58
56
|
if not content:
|
|
59
57
|
print(
|
|
@@ -64,16 +62,13 @@ def main(gmp: Gmp, args: Namespace) -> None:
|
|
|
64
62
|
)
|
|
65
63
|
sys.exit(1)
|
|
66
64
|
|
|
67
|
-
#
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
# decode base64
|
|
71
|
-
binary_xml = b64decode(binary_base64_encoded_xml)
|
|
65
|
+
# decode content
|
|
66
|
+
dcontent = content.decode("utf-8")
|
|
72
67
|
|
|
73
68
|
# write to file and support ~ in filename path
|
|
74
69
|
xml_path = Path(xml_filename).expanduser()
|
|
75
70
|
|
|
76
|
-
xml_path.
|
|
71
|
+
xml_path.write_text(dcontent)
|
|
77
72
|
|
|
78
73
|
print("Done. xml created: " + str(xml_path))
|
|
79
74
|
|
|
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
|
|
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
|
|
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
|