#NEWLINE# def _run( self , scanObject , result , depth , args ) : #NEWLINE# #INDENT# moduleResult = [ ] #NEWLINE# metaDict = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# metaDict [ 'md5' ] = hashlib . md5 ( scanObject . buffer ) . hexdigest ( ) #NEWLINE# metaDict [ 'SHA1' ] = hashlib . sha1 ( scanObject . buffer ) . hexdigest ( ) #NEWLINE# metaDict [ 'SHA256' ] = hashlib . sha256 ( scanObject . buffer ) . hexdigest ( ) #NEWLINE# metaDict [ 'SHA512' ] = hashlib . sha512 ( scanObject . buffer ) . hexdigest ( ) #NEWLINE# metaDict [ 'ssdeep' ] = ssdeep . hash ( scanObject . buffer ) #NEWLINE# scanObject . addMetadata ( metaDict . module_name , 'HASHES' , metaDict ) #NEWLINE# return moduleResult