Skip to content

Instantly share code, notes, and snippets.

@namidairo
Created December 18, 2020 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save namidairo/fdd20a88e703e263554e9815281aecd9 to your computer and use it in GitHub Desktop.
Save namidairo/fdd20a88e703e263554e9815281aecd9 to your computer and use it in GitHub Desktop.
from fnvhash import fnv1a_64
missinghashes = {}
def bruteHashes():
for x in range(2000):
filepathBrute = 'base\\sound\\soundbanks\\sfx_container_{0}.opuspak'.format(x)
testhash = fnv1a_64(bytes(filepathBrute, "utf-8"))
for i in missinghashes:
if testhash == int(i):
print(f"{filepathBrute},{testhash}")
continue
f = open("missinghashes.txt", "r")
missinghashes = list(f.read().splitlines())
f.close()
bruteHashes()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment