fix(forensic): metadata task flag accept

This commit is contained in:
2025-04-08 20:22:57 +03:00
parent 4c349249eb
commit 1ce1b57b4b
4 changed files with 75 additions and 8 deletions
+2 -1
View File
@@ -2,6 +2,7 @@ import os
def task1_flag(flag_task1, id):
os.system('exiftool -all= static/imgs/task1.jpg')
os.system('mkdir /tmp/task1')
if not os.path.exists('/tmp/task1'):
os.mkdir('/tmp/task1')
os.system(f'cp static/imgs/task1.jpg /tmp/task1/{id}.jpg')
os.system(f"exiftool -Comment='{flag_task1}' /tmp/task1/{id}.jpg")