Exif-Gps-Tracer – A Python Script Which Allows You To Parse GeoLocation Data From Your Image Files Stored In A dataset

A python script which allows you to parse GeoLocation data from your Image files stored in a dataset.It also produces output in CSV file and also in HTML Google Maps
Prerequisite

To run this script fluently , (1) You should have Google Maps API (2) You should enable Map JavaScript API in Console

To get an API key,See this documentation…  https://developers.google.com/maps/documentation/javascript/get-api-key
Installation

git clone https://github.com/monishmonish/exif-gps-tracer/
cd exif-gps-tracer/
pip3 install --r requirements.txt
python3 plotmap.py

Enter the path of the Dataset folder which contains Images to parse the exif GeoLocation data

Automatically it will store the Lattitude & Longitude coordinates with their respective time stamp in a CSV file excluding “None” values of Lat,Lon in GeoLocationhttps://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-4429384950262667&output=html&h=280&adk=2127281610&adf=252534413&pi=t.aa~a.1271756766~i.21~rp.4&w=1118&fwrn=4&fwrnh=100&lmt=1639052891&num_ads=1&rafmt=1&armr=3&sem=mc&pwprc=6189846884&psa=1&ad_type=text_image&format=1118×280&url=https%3A%2F%2Fwww.cybeseclabs.com%2F2021%2F01%2F08%2Fexif-gps-tracer-a-python-script-which-allows-you-to-parse-geolocation-data-from-your-image-files-stored-in-a-dataset%2F&flash=32.0.0&fwr=0&pra=3&rh=200&rw=1118&rpe=1&resp_fmts=3&wgl=1&fa=27&dt=1639052891074&bpp=4&bdt=2757&idt=-M&shv=r20211207&mjsv=m202112010101&ptt=9&saldr=aa&abxe=1&cookie=ID%3D4fa67b6c530d21ab-22acc6c865cf00a6%3AT%3D1639049799%3ART%3D1639049799%3AS%3DALNI_MaKeTTNrMFRAO70E8WwVoatjzsxUg&prev_fmts=0x0%2C728x90%2C728x90&nras=2&correlator=5300847036379&frm=20&pv=1&ga_vid=1304172163.1639052890&ga_sid=1639052890&ga_hid=1816503466&ga_fc=0&u_tz=330&u_his=11&u_h=900&u_w=1440&u_ah=810&u_aw=1440&u_cd=24&u_sd=1&adx=226&ady=2034&biw=1440&bih=742&scr_x=0&scr_y=0&eid=31063752%2C44750773%2C31062422&oid=2&pvsid=2310644242784219&pem=263&tmod=762&ref=https%3A%2F%2Fwww.cybeseclabs.com%2Fpage%2F74%2F&eae=0&fc=1408&brdim=0%2C23%2C0%2C23%2C1440%2C23%2C1440%2C805%2C1440%2C742&vis=1&rsz=%7C%7Cs%7C&abl=NS&fu=128&bc=31&ifi=4&uci=a!4&btvi=2&fsb=1&xpc=UbIey3sv69&p=https%3A//www.cybeseclabs.com&dtd=199

If GeoTags are not available in an image,It skips them by printing its filenamehttps://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-4429384950262667&output=html&h=280&adk=2127281610&adf=4248954445&pi=t.aa~a.1271756766~i.23~rp.4&w=1118&fwrn=4&fwrnh=100&lmt=1639052891&num_ads=1&rafmt=1&armr=3&sem=mc&pwprc=6189846884&psa=1&ad_type=text_image&format=1118×280&url=https%3A%2F%2Fwww.cybeseclabs.com%2F2021%2F01%2F08%2Fexif-gps-tracer-a-python-script-which-allows-you-to-parse-geolocation-data-from-your-image-files-stored-in-a-dataset%2F&flash=32.0.0&fwr=0&pra=3&rh=200&rw=1118&rpe=1&resp_fmts=3&wgl=1&fa=27&dt=1639052891074&bpp=4&bdt=2757&idt=-M&shv=r20211207&mjsv=m202112010101&ptt=9&saldr=aa&abxe=1&cookie=ID%3D4fa67b6c530d21ab-22acc6c865cf00a6%3AT%3D1639049799%3ART%3D1639049799%3AS%3DALNI_MaKeTTNrMFRAO70E8WwVoatjzsxUg&prev_fmts=0x0%2C728x90%2C728x90%2C1118x280&nras=3&correlator=5300847036379&frm=20&pv=1&ga_vid=1304172163.1639052890&ga_sid=1639052890&ga_hid=1816503466&ga_fc=0&u_tz=330&u_his=11&u_h=900&u_w=1440&u_ah=810&u_aw=1440&u_cd=24&u_sd=1&adx=226&ady=2356&biw=1440&bih=742&scr_x=0&scr_y=0&eid=31063752%2C44750773%2C31062422&oid=2&pvsid=2310644242784219&pem=263&tmod=762&ref=https%3A%2F%2Fwww.cybeseclabs.com%2Fpage%2F74%2F&eae=0&fc=1408&brdim=0%2C23%2C0%2C23%2C1440%2C23%2C1440%2C805%2C1440%2C742&vis=1&rsz=%7C%7Cs%7C&abl=NS&fu=128&bc=31&ifi=5&uci=a!5&btvi=3&fsb=1&xpc=4Q0aT1d83D&p=https%3A//www.cybeseclabs.com&dtd=229

An HTML file will be generated by running this script,by opening the HTML file,

You can see the scattered plots of the Lattitude & Longitude coordinates in Google Map
Tips

The more scattered region has the highest probability of the victim/target to be in that area.

This plot is purely based on the exif metadata of the Image dataset.
To-Do

Add a circular heat zone showing the probability of target’s existence in that region

Download Exif-Gps-Tracer

3 thoughts on “Exif-Gps-Tracer – A Python Script Which Allows You To Parse GeoLocation Data From Your Image Files Stored In A dataset

  1. Pingback: Hack-Tools v0.3.0 – The All-In-One Red Team Extension For Web Pentester - Pentester Club

  2. Pingback: maskphish-give-a-mask-to-phishing-url - Pentester Club

  3. Pingback: ApkLeaks – Scanning APK File For URIs, Endpoints And Secrets - Pentester Club

Leave a Reply

Your email address will not be published. Required fields are marked *