Skip to content

Instantly share code, notes, and snippets.

@JasonTurley
Created December 12, 2021 16:38
Show Gist options
  • Save JasonTurley/9556bf2f293ae9b74461a6333a6533c5 to your computer and use it in GitHub Desktop.
Save JasonTurley/9556bf2f293ae9b74461a6333a6533c5 to your computer and use it in GitHub Desktop.
SANS Holiday Hack Challenge 2021 - Document Analysis
#!/bin/bash
# Run exiftool on each docx file, print the file that was last modified by Jack Frost
for i in $(ls -l ~/*.docx | awk '{ print $9 }'); do
exiftool $i | grep "Last Modified By" | grep "Jack Frost"
if [[ $? == 0 ]]; then
echo $i && exit
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment