From dfb909eae623f9656668c392db56ec3006053c8d Mon Sep 17 00:00:00 2001 From: fe7ch Date: Wed, 7 Jun 2017 11:13:43 +0300 Subject: [PATCH] Remove accidentally added sha1 hashing. (#535) --- cowrie/commands/scp.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cowrie/commands/scp.py b/cowrie/commands/scp.py index 87c5a80e..2931cf87 100644 --- a/cowrie/commands/scp.py +++ b/cowrie/commands/scp.py @@ -124,7 +124,6 @@ class command_scp(HoneyPotCommand): if os.path.exists(self.safeoutfile): with open(self.safeoutfile, 'rb') as f: shasum = hashlib.sha256(data).hexdigest() - sha1sum = hashlib.sha1(data).hexdigest() hash_path = os.path.join(self.download_path_uniq, shasum) # If we have content already, delete temp file @@ -139,8 +138,7 @@ class command_scp(HoneyPotCommand): filename=os.path.basename(fname), url=fname, outfile=shasum, - shasum=shasum, - sha1=sha1sum) + shasum=shasum) # Link friendly name to hash os.symlink(hash_path, self.safeoutfile)