Extracting Juicy info from an Image using Exif-Metadata

January 14, 2018 | Views: 3029

Begin Learning Cyber Security for FREE Now!

FREE REGISTRATIONAlready a Member Login Here

 

In this post i will show you how can you extract juicy information from an image like when it was created,modified ,what camera were used and lot of other info.This method could be useful for starting a Image forensic even it would not enough for some forensic research but at least it can give a good start.This can also be useful if you want to review your picture like what was the shutter speed , It’s copyright information, Camera Model this information can be very useful for photographer if they want to find out what camera or settings were used for some particular photos.

 

What is Metadata

Metadata provide information about other data. Its is simply description of data . Metadata contain some elements describe below :

  1. Who created it and when
  2. Who last modified it and when
  3. Tags and its categories
  4. Who can access and update

What is Exif Metadata

Image Source

Exif (Exchangable Image file format) data shows what camera model ,camera settings, ISO,exposure were used for taking a picture. Exif can also store on what date that picture was taken and it can also contain GPS location in it.Most camera has these settings by default which lead to store some personal info that was never meant to expose.So these information store in it called Exif Metadata 

 

Steps for retrieving Exif Metadata 

  •  Open your terminal and install Perl exiftool by typing apt-get install libimage exiftool-perl 

 

 

  •  Now to run it type exiftool then your image location which you want to inspect, for example my image is stored on desktop so i will type exiftool /root/Desktop/sample.jpg and press return.

 

 

  • And we got the data 

 

 

  • You can also export the output as php array for this just add -php after the command for example exiftool /root/Desktop/sample.jpg -php

 

 

  • Now you will get output like php array

 

 There are lot of output format which you can use as per your need.You can also get output metadata in binary format by using -b options after the command.For all available options and output format you can see this official application documentation 

Share with Friends
FacebookTwitterGoogle+LinkedInEmail
Use Cybytes and
Tip the Author!
Join
Share with Friends
FacebookTwitterGoogle+LinkedInEmail
Ready to share your knowledge and expertise?
3 Comments
  1. Hi,

    I don’t see the GPS coordinates

  2. EXIF metadata has been around for years! There are programs that can output the entire data if need be.

    People should note if they upload an image to Facebook, ALL EXIF-metadata is erased, and your image is now the copyright of Facebook. If you ever read the terms you will see this is true, and you wonder how you are worth money on Facebook.

Comment on This

You must be logged in to post a comment.

Our Revolution

We believe Cyber Security training should be free, for everyone, FOREVER. Everyone, everywhere, deserves the OPPORTUNITY to learn, begin and grow a career in this fascinating field. Therefore, Cybrary is a free community where people, companies and training come together to give everyone the ability to collaborate in an open source way that is revolutionizing the cyber security educational experience.

Cybrary On The Go

Get the Cybrary app for Android for online and offline viewing of our lessons.

Get it on Google Play
 

Support Cybrary

Donate Here to Get This Month's Donor Badge

 
Skip to toolbar

We recommend always using caution when following any link

Are you sure you want to continue?

Continue
Cancel