Using log2timeline in Windows (& Linux)

This post details the steps on using log2timeline.exe in Windows to log all timings for files/event logs/registry activity on an image.

Linux commands are similar. Just swap .EXE with .PY, and the drive name with the folder in Linux.

You will also need to mount the image in Linux. If you’re using SIFT, refer to https://benleeyr.wordpress.com/2020/05/24/mounting-e01-in-sift/

There are some prerequisites to get or install, see links at the bottom for download URLs:

  1. Python
  2. FTK Imager
  3. log2timeline.exe and psort.exe
  4. Timeline Explorer

1) Mount image using FTK imager, let’s say on M:

2) Launch cmd or powershell with admin rights

3) cd to folder containing log2timeline.exe and psort.exe

4) log2timeline.exe plaso.dump M:

  • plaso.dump is the output file
  • M: is the mounted image

5) psort.exe -z Singapore -o l2tcsv -w output.csv plaso.dump

  • -z to set the timezone
  • -o to output to csv
  • -w to set the output file
  • output.csv is the output file
  • plaso.dump is the input file

6) Load output.csv into Timeline Explorer

7) If your output.csv is too large for Timeline Explorer, you need to narrow down the time in psort.exe

8) psort.py -z Singapore -o l2tcsv -w output.csv plaso.dump “date > ‘YYYY-MM-DD 00:00:00’ AND date < ‘YYYY-MM-DD 23:59:59′”

  • -z to set the timezone
  • -o to output to csv
  • -w to set the output file
  • output.csv is the output file
  • plaso.dump is the input file
  • substitute YYYY-MM-DD with your preferred dates
  • You can change the timing too according to HH:MM:SS

Get Python here [download the 2.7.xx version]:

https://www.python.org/downloads/windows/

Get FTK Imager Lite here:

http://marketing.accessdata.com/e/46432/ftkimagerlite3-1-1-download/3w1gdf/1200589364

Get log2timeline.exe and psort.exe here [look for latest release, not pre-release]:

https://github.com/log2timeline/plaso/releases

Get Timeline Explorer here:

https://ericzimmerman.github.io/#!index.md

Information gathered from the following sites:

  1. https://digital-forensics.sans.org/blog/2011/12/07/digital-forensic-sifting-super-timeline-analysis-and-creation
  2. https://digital-forensics.sans.org/media/Plaso-Cheat-Sheet.pdf

Using FLS

This post details the steps on using FLS.exe and mactime.pl in Windows to get the MACB timings for files on an image.

There are some prerequisites to get or install, see links at the bottom for download URLs:

  1. Perl
  2. Python
  3. fls.exe and mactime.pl
  4. FTK Imager
  5. Timeline Explorer

 

1) Mount image using FTK Imager, let’s say in M:

2) Launch cmd or powershell with admin rights

3) cd to the folder location containing fls.exe and mactime.pl

4) fls.exe -r -m M: \\.\M: >outputbodyfile

  • -r for recursive
  • -m for mactime/bodyfile format
  • \\.\M: is the target drive

5) mactime.pl -z Singapore -d -b outputbodyfile > output.csv

  • -z to set timezone
  • -d for display time in CSV format
  • -b to specify location of body file

6) Load output.csv in Timeline Explorer

 

Get Perl here [download ActivePerl]:

http://www.perl.org/get.html#win32

Get Python here [download 2.7.xx version]:

https://www.python.org/downloads/windows/

Get fls.exe & mactime.pl here:

https://www.sleuthkit.org/sleuthkit/download.php

Get FTK Imager Lite here:

http://marketing.accessdata.com/e/46432/ftkimagerlite3-1-1-download/3w1gdf/1200589364

Get Timeline Explorer here:

https://ericzimmerman.github.io/#!index.md

 

Information gathered from the following sites:

  1. http://thedigitalstandard.blogspot.com/2010/03/creating-timeline-of-live-windows.html
  2. http://www.sleuthkit.org/sleuthkit/man/fls.html
  3. http://www.sleuthkit.org/sleuthkit/man/mactime.html
  4. https://www.thoughtco.com/how-to-install-and-run-perl-2641103