From ef662c1145d38e08864db64ab17668185e80b033 Mon Sep 17 00:00:00 2001 From: Nex Date: Tue, 28 Jun 2022 15:03:52 +0200 Subject: [PATCH] Added new indicators update to mvt-android --- mvt/android/cli.py | 5 +++-- mvt/common/updates.py | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mvt/android/cli.py b/mvt/android/cli.py index 0795d84..74deeed 100644 --- a/mvt/android/cli.py +++ b/mvt/android/cli.py @@ -13,8 +13,8 @@ from mvt.common.cmd_check_iocs import CmdCheckIOCS from mvt.common.help import (HELP_MSG_FAST, HELP_MSG_IOC, HELP_MSG_LIST_MODULES, HELP_MSG_MODULE, HELP_MSG_OUTPUT, HELP_MSG_SERIAL) -from mvt.common.indicators import download_indicators_files from mvt.common.logo import logo +from mvt.common.updates import IndicatorsUpdates from .cmd_check_adb import CmdAndroidCheckADB from .cmd_check_backup import CmdAndroidCheckBackup @@ -215,4 +215,5 @@ def check_iocs(ctx, iocs, list_modules, module, folder): #============================================================================== @cli.command("download-iocs", help="Download public STIX2 indicators") def download_indicators(): - download_indicators_files(log) + ioc_updates = IndicatorsUpdates() + ioc_updates.update() diff --git a/mvt/common/updates.py b/mvt/common/updates.py index 506c8a4..f686d75 100644 --- a/mvt/common/updates.py +++ b/mvt/common/updates.py @@ -182,7 +182,6 @@ class IndicatorsUpdates: self.set_latest_check() latest_update = self.get_latest_update() - latest_commit_ts = self._get_remote_file_latest_commit(self.index_owner, self.index_repo, self.index_branch,