From b56fe7fe5d2f3e44f77fe159b62a66bd613cc8cc Mon Sep 17 00:00:00 2001 From: Marco Antonio Blanco Date: Mon, 6 Jul 2020 23:23:26 +0200 Subject: [PATCH 1/2] Show error when downloading signatires instead of generic message --- loki-upgrader.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/loki-upgrader.py b/loki-upgrader.py index 5cc39879..a18704bc 100644 --- a/loki-upgrader.py +++ b/loki-upgrader.py @@ -65,8 +65,7 @@ def update_signatures(self, clean=False): except Exception as e: if self.debug: traceback.print_exc() - self.logger.log("ERROR", "Upgrader", "Error downloading the signature database - " - "check your Internet connection") + self.logger.log("ERROR", "Upgrader", "Error downloading the signature database - %s" % e) sys.exit(1) # Preparations From 5885a69fd10a97dd226783e46a82f07220305899 Mon Sep 17 00:00:00 2001 From: Marco Antonio Blanco Date: Mon, 6 Jul 2020 23:32:21 +0200 Subject: [PATCH 2/2] change master for develop branch from reversinglabs signatures' repo --- loki-upgrader.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/loki-upgrader.py b/loki-upgrader.py index a18704bc..efa4e938 100644 --- a/loki-upgrader.py +++ b/loki-upgrader.py @@ -45,7 +45,7 @@ class LOKIUpdater(object): UPDATE_URL_SIGS = [ "https://github.com/Neo23x0/signature-base/archive/master.zip", - "https://github.com/reversinglabs/reversinglabs-yara-rules/archive/master.zip" + "https://github.com/reversinglabs/reversinglabs-yara-rules/archive/develop.zip" ] UPDATE_URL_LOKI = "https://api.github.com/repos/Neo23x0/Loki/releases/latest" @@ -65,7 +65,8 @@ def update_signatures(self, clean=False): except Exception as e: if self.debug: traceback.print_exc() - self.logger.log("ERROR", "Upgrader", "Error downloading the signature database - %s" % e) + self.logger.log("ERROR", "Upgrader", "Error downloading the signature database - " + "check your Internet connection") sys.exit(1) # Preparations