Skip to content

Instantly share code, notes, and snippets.

@iexpurgator
Last active April 11, 2023 03:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iexpurgator/c7c7b945d5b100522da6920219a7960f to your computer and use it in GitHub Desktop.
Save iexpurgator/c7c7b945d5b100522da6920219a7960f to your computer and use it in GitHub Desktop.
Create Super Timline On Linux
sudo apt install dotnet-sdk-6.0
sudo apt install python3 python3-pip python3-venv
sudo apt install libssl-dev
# create virtual environment
python -m venv venv
source venv/bin/activate
pip install plaso
deactivate
# <run with root>
source venv/bin/activate
# [install tutorial](https://command-not-found.com/virt-filesystems)
virt-filesystems --a kape_triage.vhdx
# [ouput] /dev/sda1
mkdir /mnt/kape-triage
guestmount --add kape_triage.vhdx -m /dev/sda1 --ro /mnt/kape-triage
# MFT body ([link download net6](https://ericzimmerman.github.io/#!index.md))
dotnet MFTECmd.dll -f '/mnt/kape-triage/C/$MFT' --body ./timeline --bodyf hostname.body --blf --bdl c
# parse to plaso
log2timeline.py --status_view window --parsers '!mft,!filestat' --storage_file timeline/hostname.plaso /mnt/kape-triage/C
guestunmount /mnt/kape-triage
# add MFT
log2timeline.py --status_view window --parsers "mactime" --storage_file timeline/hostname.plaso timeline/hostname.body
# export to CSV
psort.py -o L2tcsv timeline/hostname.plaso -w timeline/hostname.csv
# export to CSV with time
psort.py -o L2tcsv --slice "2020-10-24T00:00:00" --slice_size 100000 timeline/hostname.plaso -w timeline/hostname.csv
# exit virtual environment
deactivate
@MysticCoss
Copy link

If you want to use WSL instead of a real virtual machine (like VMWare), look at this article:
https://blog.codybunch.com/2020/10/16/WSL2-Mount-vhdx-to-WSL2/

@iexpurgator
Copy link
Author

@MysticCoss
Copy link

sudo apt-get install gcc libpq-dev -y
sudo apt-get install python-dev  python-pip -y
sudo apt-get install python3-dev python3-pip python3-venv python3-wheel -y
pip3 install wheel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment