Remove accidentally added sha1 hashing. (#535)

This commit is contained in:
fe7ch 2017-06-07 11:13:43 +03:00 committed by Michel Oosterhof
parent 4efcc40e60
commit dfb909eae6
1 changed files with 1 additions and 3 deletions

View File

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