diff --git a/src/1000kversion b/src/1000kversion new file mode 100644 index 0000000..b4f3cf0 Binary files /dev/null and b/src/1000kversion differ diff --git a/src/rainbow_generator.py b/src/rainbow_generator.py index 3c1bc03..60c0c14 100644 --- a/src/rainbow_generator.py +++ b/src/rainbow_generator.py @@ -80,11 +80,12 @@ def queryTable(hashValue,table, chainLength, hashFunc=targetHashFunction, guessF h=hashValue g=None out="" - for j in range(i,chainLength): + for j in range(i,chainLength-1): # the -1 has been added to stop the proccess from hashing pasrt the end of the chain, so now the final hash is the real one g=guessFunc(h,j, minLen=minLen, maxLen=maxLen, charset=charset) h=hashFunc(g) if debug: out+=f"({g}->{h}) " if debug: print(out) + print(h) if h in table: if debug: print(f"Found hash in chain at position {i}, beginning with {table[h]}") attempt= rebuildChain(table[h],hashValue, hashFunc, guessFunc, chainLength,minLen, maxLen, charset, debug=True)