Last active
October 31, 2021 17:40
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
OUTFILE=timeline.csv | |
echo "date,path,user,size" > "${OUTFILE}" | |
find . -printf '%TY-%Tm-%Td,"%p","%u",%s\n' | sort >> "${OUTFILE}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also see Plaso log2timeline to create a super timeline, or TSK The Sleuth Kit or AnalyzeMFT (NTFS).
https://cugu.github.io/awesome-forensics/