Skip to content

Instantly share code, notes, and snippets.

@andre-st
Last active October 31, 2021 17:40
Show Gist options
  • Save andre-st/21ba898e8ef2876dd9ebffb4757270e9 to your computer and use it in GitHub Desktop.
Save andre-st/21ba898e8ef2876dd9ebffb4757270e9 to your computer and use it in GitHub Desktop.
Poor man's file system forensic analysis: Creating and viewing a timeline
#!/usr/bin/env bash
OUTFILE=timeline.csv
echo "date,path,user,size" > "${OUTFILE}"
find . -printf '%TY-%Tm-%Td,"%p","%u",%s\n' | sort >> "${OUTFILE}"
setwd( "/home/a/work/app/timeline" )
df <- read.csv( "timeline.csv", header = TRUE )
# df <- df[ order( df$date, df$path ), ]
df$date2 <- as.Date( as.character( df$date ), format = "%Y-%m-%d" )
x <- subset( df, date2 > as.Date( "2021-06-31" ))
x
# hist( x$date2, 'months' )
hist( x$date, 'months' )
@andre-st
Copy link
Author

andre-st commented Oct 31, 2021

Also see Plaso log2timeline to create a super timeline, or TSK The Sleuth Kit or AnalyzeMFT (NTFS).
https://cugu.github.io/awesome-forensics/

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