Created
December 12, 2021 16:38
-
-
Save JasonTurley/9556bf2f293ae9b74461a6333a6533c5 to your computer and use it in GitHub Desktop.
SANS Holiday Hack Challenge 2021 - Document Analysis
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
#!/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