Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 30 lines 1.2 kB view raw
1diff --git a/telfhash/grouping.py b/telfhash/grouping.py 2index c62f8d9..4ee9f0b 100644 3--- a/telfhash/grouping.py 4+++ b/telfhash/grouping.py 5@@ -32,10 +32,10 @@ import tlsh 6 def get_combination(telfhash_data): 7 8 # 9- # TLSH hash is 70 characters long. if the telfhash is not 70 10+ # The new TLSH hash is 72 characters long. if the telfhash is not 72 11 # characters in length, exclude from the list 12 # 13- files_list = [x for x in list(telfhash_data.keys()) if telfhash_data[x]["telfhash"] is not None and len(telfhash_data[x]["telfhash"]) == 70] 14+ files_list = [x for x in list(telfhash_data.keys()) if telfhash_data[x]["telfhash"] is not None and len(telfhash_data[x]["telfhash"]) == 72] 15 16 # 17 # get the combination of all the possible pairs of filenames 18diff --git a/telfhash/telfhash.py b/telfhash/telfhash.py 19index f2bbd25..c6e346c 100755 20--- a/telfhash/telfhash.py 21+++ b/telfhash/telfhash.py 22@@ -132,7 +132,7 @@ def get_hash(symbols_list): 23 symbol_string = ",".join(symbols_list) 24 encoded_symbol_string = symbol_string.encode("ascii") 25 26- return tlsh.forcehash(encoded_symbol_string).lower() 27+ return tlsh.forcehash(encoded_symbol_string) 28 29 30 def elf_get_imagebase(elf):