mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-08-22 22:32:22 +02:00
fix guid and pdb_name for #1026
This commit is contained in:
@@ -9,6 +9,7 @@ import lzma
|
||||
import os
|
||||
import re
|
||||
import struct
|
||||
from pathlib import PureWindowsPath
|
||||
from typing import Any, Dict, Generator, List, Optional, Tuple, Union
|
||||
from urllib import parse, request
|
||||
|
||||
@@ -226,13 +227,12 @@ class PDBUtility(interfaces.configuration.VersionableInterface):
|
||||
return None
|
||||
|
||||
pdb_name = debug_entry.PdbFileName.decode("utf-8").strip("\x00")
|
||||
|
||||
# Let pathlib do the filename extraction. This will likely always be a Windows path though.
|
||||
pdb_name = PureWindowsPath(pdb_name).name
|
||||
|
||||
age = debug_entry.Age
|
||||
guid = "{:08x}{:04x}{:04x}{}".format(
|
||||
debug_entry.Signature_Data1,
|
||||
debug_entry.Signature_Data2,
|
||||
debug_entry.Signature_Data3,
|
||||
binascii.hexlify(debug_entry.Signature_Data4).decode("utf-8"),
|
||||
)
|
||||
guid = debug_entry.Signature_String[:32] # Removes the Age from the GUID
|
||||
return guid, age, pdb_name
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user