From 237280cbeab77154c65104df31e2802cfa843d48 Mon Sep 17 00:00:00 2001 From: thurask Date: Thu, 7 Sep 2017 12:54:17 -0400 Subject: [PATCH] add OS version to header name --- .gitignore | 2 +- tclcheck.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 6b67384..db84f99 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ /__pycache__/ /.nvimlog -/header.bin \ No newline at end of file +/header*.bin diff --git a/tclcheck.py b/tclcheck.py index aaf80b8..115d950 100644 --- a/tclcheck.py +++ b/tclcheck.py @@ -39,8 +39,8 @@ for s in slaves: if fc.mode == fc.MODE_FULL: header = fc.do_encrypt_header(random.choice(encslaves), fileurl) if len(header) == 4194320: - print("Header length check passed. Writing to header.bin.") - with open("header.bin", "wb") as f: + print("Header length check passed. Writing to header_{}.bin.".format(tv)) + with open("header_{}.bin".format(tv), "wb") as f: f.write(header) else: print("Header length invalid ({}).".format(len(header)))