Write the decoy seed

main
Bob Mottram 2021-05-10 12:34:50 +01:00
parent 41887db1ce
commit 69fe94208e
1 changed files with 6 additions and 1 deletions

View File

@ -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')