exiftool '-Make=shooter' file.png
exiftool '-Software=shooter' file.png
exiftool -Model='Kodak Hawkeye Instamatic' file.jpg
exiftool -a -u -g1 file.png
exiftool -n -gpslatitude -gpslongitude file.png
exiftool -filename -gpslatitude -gpslongitude -T file.png
设定个 alias
alias gps="exiftool -gpslatitude -gpslongitude -gpsaltitude -Make -filename -n -T"
查询
locat file.jpg
22.81 107.54 -37.95 HUAWEI #显示的分别是 纬度 经度 海拔 相机制造商
Exiftool 同样能检索视频
locat file.mp4
22.81 107.54 56.23 Apple
ffprobe 能得到更为丰富的信息
ffprobe -show_streams -i file.mp4
删除gps信息
exiftool -gps:all= file.png
删除照片所有的gps信息
exiftool "-gps*=" file.png
删除照片一部分gps信息
删除时间信息
exiftool -alldates= -gpsdatestamp= -gpstimestamp= file.jpg
exiftool -a -s -G1 -time:all file.jpg
参考:
https://zhuanlan.zhihu.com/p/71915158
https://exif.tuchong.com
https://exifinfo.org/
https://www.jianshu.com/p/d76457799de1
https://liangxu.wang/1687
http://blog.knownsec.com/2015/02/a-real-case-study-of-xss-through-exif-headers