Linux: Support None to turn off remote banner locations

This commit is contained in:
Mike Auty
2021-08-11 21:24:39 +01:00
parent bb40a8a207
commit e7623baf45
2 changed files with 2 additions and 3 deletions
@@ -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)
+1 -1
View File
@@ -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"""