Skip to content

Commit 4895af4

Browse files
committed
Linux: Boottime timeliner: Rollback timeliner event type changes and use the created time for the boot time plugin
1 parent 1651ecb commit 4895af4

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

volatility3/framework/plugins/linux/boottime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def generate_timeline(self):
8888
):
8989
description = f"System boot time for time namespace {time_namespace_id}"
9090

91-
yield description, timeliner.TimeLinerType.BOOTTIME, boottime
91+
yield description, timeliner.TimeLinerType.CREATED, boottime
9292

9393
def run(self):
9494
columns = [

volatility3/framework/plugins/timeliner.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ class TimeLinerType(enum.IntEnum):
2323
MODIFIED = 2
2424
ACCESSED = 3
2525
CHANGED = 4
26-
BOOTTIME = 5
2726

2827

2928
class TimeLinerInterface(metaclass=abc.ABCMeta):
@@ -172,22 +171,18 @@ def _generator(
172171
TimeLinerType.CHANGED,
173172
renderers.NotApplicableValue(),
174173
),
175-
times.get(
176-
TimeLinerType.BOOTTIME,
177-
renderers.NotApplicableValue(),
178-
),
179174
],
180175
)
181176
)
182177

183178
# Write each entry because the body file doesn't need to be sorted
184179
if fp:
185180
times = self.timeline[(plugin_name, item)]
186-
# Body format is: MD5|name|inode|mode_as_string|UID|GID|size|atime|mtime|ctime|crtime|boottime
181+
# Body format is: MD5|name|inode|mode_as_string|UID|GID|size|atime|mtime|ctime|crtime
187182

188183
if self._any_time_present(times):
189184
fp.write(
190-
"|{} - {}|0|0|0|0|0|{}|{}|{}|{}|{}\n".format(
185+
"|{} - {}|0|0|0|0|0|{}|{}|{}|{}\n".format(
191186
plugin_name,
192187
self._sanitize_body_format(item),
193188
self._text_format(
@@ -202,9 +197,6 @@ def _generator(
202197
self._text_format(
203198
times.get(TimeLinerType.CREATED, "0")
204199
),
205-
self._text_format(
206-
times.get(TimeLinerType.BOOTTIME, "0")
207-
),
208200
)
209201
)
210202
except Exception as e:
@@ -328,7 +320,6 @@ def run(self):
328320
("Modified Date", datetime.datetime),
329321
("Accessed Date", datetime.datetime),
330322
("Changed Date", datetime.datetime),
331-
("Boot Date", datetime.datetime),
332323
],
333324
generator=self._generator(plugins_to_run),
334325
)

0 commit comments

Comments
 (0)