mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-23 06:37:15 +00:00
chg: [exif] add debug
This commit is contained in:
parent
38a918e485
commit
304afd00aa
1 changed files with 4 additions and 0 deletions
|
@ -42,13 +42,17 @@ class Exif(AbstractModule):
|
||||||
img_exif = img.getexif()
|
img_exif = img.getexif()
|
||||||
print(img_exif)
|
print(img_exif)
|
||||||
if img_exif:
|
if img_exif:
|
||||||
|
self.logger.critical(f'Exif: {self.get_obj().id}')
|
||||||
gps = img_exif.get(34853)
|
gps = img_exif.get(34853)
|
||||||
print(gps)
|
print(gps)
|
||||||
|
self.logger.critical(f'gps: {gps}')
|
||||||
for key, val in img_exif.items():
|
for key, val in img_exif.items():
|
||||||
if key in ExifTags.TAGS:
|
if key in ExifTags.TAGS:
|
||||||
print(f'{ExifTags.TAGS[key]}:{val}')
|
print(f'{ExifTags.TAGS[key]}:{val}')
|
||||||
|
self.logger.critical(f'{ExifTags.TAGS[key]}:{val}')
|
||||||
else:
|
else:
|
||||||
print(f'{key}:{val}')
|
print(f'{key}:{val}')
|
||||||
|
self.logger.critical(f'{key}:{val}')
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
# tag = 'infoleak:automatic-detection="cve"'
|
# tag = 'infoleak:automatic-detection="cve"'
|
||||||
|
|
Loading…
Reference in a new issue