Skip to content

Commit

Permalink
Windows: remove size from filescan output as it is not the file size …
Browse files Browse the repository at this point in the history
…but the object size
  • Loading branch information
eve-mem committed Jul 12, 2024
1 parent 1d4a27e commit c3cf319
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions volatility3/framework/plugins/windows/filescan.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
class FileScan(interfaces.plugins.PluginInterface):
"""Scans for file objects present in a particular windows memory image."""

_required_framework_version = (2, 0, 0)
_required_framework_version = (2, 0, 1)

@classmethod
def get_requirements(cls):
Expand Down Expand Up @@ -67,10 +67,10 @@ def _generator(self):
except exceptions.InvalidAddressException:
continue

yield (0, (format_hints.Hex(fileobj.vol.offset), file_name, fileobj.Size))
yield (0, (format_hints.Hex(fileobj.vol.offset), file_name))

def run(self):
return renderers.TreeGrid(
[("Offset", format_hints.Hex), ("Name", str), ("Size", int)],
[("Offset", format_hints.Hex), ("Name", str)],
self._generator(),
)

0 comments on commit c3cf319

Please sign in to comment.