Skip to content

Commit

Permalink
chg: [exif] add debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Feb 7, 2024
1 parent 38a918e commit 304afd0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/modules/Exif.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,17 @@ def compute(self, message):
img_exif = img.getexif()
print(img_exif)
if img_exif:
self.logger.critical(f'Exif: {self.get_obj().id}')
gps = img_exif.get(34853)
print(gps)
self.logger.critical(f'gps: {gps}')
for key, val in img_exif.items():
if key in ExifTags.TAGS:
print(f'{ExifTags.TAGS[key]}:{val}')
self.logger.critical(f'{ExifTags.TAGS[key]}:{val}')
else:
print(f'{key}:{val}')
self.logger.critical(f'{key}:{val}')
sys.exit(0)

# tag = 'infoleak:automatic-detection="cve"'
Expand Down

0 comments on commit 304afd0

Please sign in to comment.