From 69fe94208ea79e0a739e2d95b960e38e3c1dad57 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 10 May 2021 12:34:50 +0100 Subject: [PATCH] Write the decoy seed --- media.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/media.py b/media.py index 3a39ef9f8..024855d97 100644 --- a/media.py +++ b/media.py @@ -206,7 +206,12 @@ def _spoofMetaData(baseDir: str, nickname: str, domain: str, with open(decoySeedFilename, 'r') as fp: decoySeed = int(fp.read()) else: - decoySeed = randint(10000, 10000000000000) + decoySeed = randint(10000, 10000000000000000) + try: + with open(decoySeedFilename, 'w+') as fp: + fp.write(str(decoySeed)) + except BaseException: + pass if os.path.isfile('/usr/bin/exiftool'): print('Spoofing metadata in ' + outputFilename + ' using exiftool')