mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-08 02:37:39 +02:00
Linux: Support None to turn off remote banner locations
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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"""
|
||||
|
||||
Reference in New Issue
Block a user