From c08943e531edcfd0e1e40f12d338e4aded2f073d Mon Sep 17 00:00:00 2001 From: Ashish chudasama Date: Tue, 23 Apr 2024 11:45:19 +0100 Subject: [PATCH] Update th_vuln_export.py Fixed the number of counts with UI. Explore --> findings shows all findings including Licensed and unLicensed whereas under the hood query hit the only Licensed asset which cases discrepancies in report count. --- navi/plugins/th_vuln_export.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/navi/plugins/th_vuln_export.py b/navi/plugins/th_vuln_export.py index 50d51b1..a4c4399 100644 --- a/navi/plugins/th_vuln_export.py +++ b/navi/plugins/th_vuln_export.py @@ -286,12 +286,12 @@ def vuln_export(days, ex_uuid, threads, category, value, state, severity): day_limit = time.time() - new_limit if category is None: - pay_load = {"num_assets": 50, "filters": {'last_found': int(day_limit), "state": state, "severity": severity}} + pay_load = {"include_unlicensed": True,"num_assets": 50, "filters": {'last_found': int(day_limit), "state": state, "severity": severity}} else: if value is None: - pay_load = {"num_assets": 50, "filters": {'last_found': int(day_limit), "state": state, "severity": severity}} + pay_load = {"include_unlicensed": True,"num_assets": 50, "filters": {'last_found': int(day_limit), "state": state, "severity": severity}} else: - pay_load = {"num_assets": 50, "filters": {'last_found': int(day_limit), "state": state, "severity": severity, + pay_load = {"include_unlicensed": True,"num_assets": 50, "filters": {'last_found': int(day_limit), "state": state, "severity": severity, "tag.{}".format(category): "{}".format(value)}} try: