-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_exiftool.sh
31 lines (31 loc) · 965 Bytes
/
install_exiftool.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
# Install ExifTool
DIRECTORY=/home/kali/Tools
if [ $(dpkg-query -W -f='${Status}' libimage-exiftool-perl 2>/dev/null | grep -c "ok installed") -eq 0 ];
then
if [[ -d "$DIRECTORY" ]]
then
# Code for if /home/kali/Tools exists
# echo "$DIRECTORY exists on your filesystem."
# sudo apt install libimage-exiftool-perl
cd $HOME'/Tools'
wget https://exiftool.org/Image-ExifTool-12.40.tar.gz
gzip -dc Image-ExifTool-12.40.tar.gz | tar -xf -
cd Image-ExifTool-12.40
perl Makefile.PL
make test
sudo make install
else
# Code for if /home/kali/Tools doesn't exist
cd $HOME
mkdir Tools
cd ./Tools
wget https://exiftool.org/Image-ExifTool-12.40.tar.gz
gzip -dc Image-ExifTool-12.40.tar.gz | tar -xf -
cd Image-ExifTool-12.40
perl Makefile.PL
make test
sudo make install
fi
fi
exiftool --help