From e7623baf458a75e7ceccbdbad0317707247d1cf7 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Wed, 11 Aug 2021 21:24:39 +0100 Subject: [PATCH] Linux: Support None to turn off remote banner locations --- volatility3/framework/automagic/symbol_cache.py | 3 +-- volatility3/framework/constants/__init__.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/volatility3/framework/automagic/symbol_cache.py b/volatility3/framework/automagic/symbol_cache.py index 9af5b6def..8010364f8 100644 --- a/volatility3/framework/automagic/symbol_cache.py +++ b/volatility3/framework/automagic/symbol_cache.py @@ -10,7 +10,6 @@ import pickle import urllib import urllib.parse import urllib.request -import zipfile from typing import Dict, List, Optional from volatility3.framework import constants, exceptions, interfaces @@ -165,7 +164,7 @@ class SymbolBannerCache(interfaces.automagic.AutomagicInterface): if banner_location is None: banner_location = constants.REMOTE_ISF_URL - if not constants.OFFLINE: + if not constants.OFFLINE and banner_location is not None: try: rbf = RemoteBannerFormat(banner_location) rbf.process(banners, operating_system) diff --git a/volatility3/framework/constants/__init__.py b/volatility3/framework/constants/__init__.py index 9ec2fb88f..43193852a 100644 --- a/volatility3/framework/constants/__init__.py +++ b/volatility3/framework/constants/__init__.py @@ -98,5 +98,5 @@ ISF_MINIMUM_DEPRECATED = (3, 9, 9) OFFLINE = False """Whether to go online to retrieve missing/necessary JSON files""" -REMOTE_ISF_URL = 'http://localhost:8000/banners.json' +REMOTE_ISF_URL = None # 'http://localhost:8000/banners.json' """Remote URL to query for a list of ISF addresses"""