Metadata

- MediaInfo - File Metadata

This is an utility for displaying hidden metadata within a file.

To install it:

sudo apt install -y mediainfo-gui

Now we can launch it from the apps menu.

Remember that this type of data is usually not available from videos downloaded from the internet. The ideal scenario is that you possess a video file sent directly from a device.

- Exiftool - Image Metadata

Image metadata, also called Exif data, it can include the make, model and serial number of a camera or location data of the capture.

To install it:

sudo apt install -y libimage-exiftool-perl

To export the metadata from multiple images into a spreadsheet:

exiftool * -csv > ~/Desktop/Report.csv

- mat2 - Remove Metadata

To install it:

sudo apt install -y mat2

To remove metadata from an image:

mat2 dirty.jpg

- xeuledoc - Google Documents Metadata

To install it:

mkdir ~/Downloads/Programs/xeuledoc

cd ~/Downloads/Programs/xeuledoc

python3 -m venv xeuledocEnvironment

source xeuledocEnvironment/bin/activate

sudo pip install -U xeuledoc

deactivate

To extract metadata from a google document:

xeuledoc https://docs.google.com/spreadsheet/d/14151513415414

- Sherloq - Identify Modified Areas of Photographs

To install it:

cd ~/Downloads/Programs

sudo apt install subversion -y

git clone https://github.com/GuidoBartoli/sherloq.git

cd sherloq/gui

python3 -m venv sherloqEnvironment

source sherloqEnvironment/bin/activate

sudo pip install -r requirements.txt

deactivate

To launch the GUI:

python3 ~/Downloads/Programs/sherloq/gui/sherloq.py

- Custom metadata.sh script

#!/usr/bin/env bash
opt1="Extract Metadata"
opt2="Clean Metadata"
opt3="Google Document Metadata"
opt4="Launch Sherloq"
opt5="Launch MediaInfo"
exifdata=$(zenity  --list  --title "Metadata Utilities" --radiolist  --column "" --column "" TRUE "$opt1" FALSE "$opt2" FALSE "$opt3" FALSE "$opt4" FALSE "$opt5" --height=400 --width=300)
case $exifdata in
$opt1 )
zenity --info --text "The next window will prompt for a target folder of media" --title "Exiftool"
sleep 1
exiftool_folder=$(zenity --file-selection --directory --title "Exiftool")
exiftool /$exiftool_folder/* -csv > /$exiftool_folder/MetadataReport.csv
open $exiftool_folder
zenity --info --text="Report saved in your Documents folder." --title="Metadata Cleaning"
exit;;
$opt2 )
zenity --info --text="Select a file to clean" --width=200 --title="Metadata Cleaning"
sleep 1
data_file=$(zenity --file-selection --title "Metadata Cleaning")
mat2 "$data_file"
open $data_file
zenity --info --text "A clean copy has been saved next to the original." --title="Metadata Cleaning"
exit;;
$opt3 )
url=$(zenity --entry --title "Google Document" --text "Enter target URL")
xeuledoc "$url" > ~/Documents/"GMetadata.txt" | zenity --progress --pulsate --no-cancel --auto-close --title="Google Documents Metadata" --text="Data being saved to ~/Documents/"
open ~/Documents/GMetadata.txt
exit;;
$opt4 )
cd ~/Downloads/Programs/sherloq/gui/
python3 sherloq.py
exit;;
$opt5 )
mediainfo-gui
exit;;
esac

To create a desktop shortcut for this script:

[Desktop Entry]
Type=Application
Name=Metadata Tool     
Categories=Application;OSINT
Exec=/home/osint/Documents/scripts/metadata.sh
Icon=/home/osint/Documents/icons/metadata.png
Terminal=true

Last updated