From 39c6dc76875fff4e50f7de0355c34db145659dfa Mon Sep 17 00:00:00 2001 From: Arnim Rupp <46819580+ruppde@users.noreply.github.com> Date: Thu, 26 Jan 2023 23:01:21 +0100 Subject: [PATCH] Update munin.py Small bugfix to avoid cached results falsely shown as having samples available on malshare and anyrun. (in the vt-hash-db.json is a mix of filling boolean negative fields with "false" and "-" and the minus evaluates to True. not easy fixable in my understanding) --- munin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/munin.py b/munin.py index 0c4d0b8..18b8f3f 100755 --- a/munin.py +++ b/munin.py @@ -969,7 +969,7 @@ def platformChecks(info): try: # Malware Share availability if 'malshare_available' in info: - if info['malshare_available']: + if info['malshare_available'] and not info['malshare_available'] == '-': printHighlighted("[!] Sample is available on malshare.com URL: {0}{1}".format( MAL_SHARE_LINK, info['md5'])) except KeyError as e: @@ -1024,7 +1024,7 @@ def platformChecks(info): try: # AnyRun availability if 'anyrun_available' in info: - if info['anyrun_available']: + if info['anyrun_available'] and not info['anyrun_available'] == '-': printHighlighted("[!] Sample on ANY.RUN URL: %s" % (URL_ANYRUN % info['sha256'])) except KeyError as e: if args.debug: