mirror of
https://github.com/maride/barf.git
synced 2024-12-22 06:27:29 +00:00
Also print the last chunk upon hitting the win breakpoint
This commit is contained in:
parent
7f16a30516
commit
7a8561f068
@ -62,6 +62,8 @@ def Bruteforce(bm, tm, knownPrefix, knownSuffix, chunksize, charset):
|
||||
return knownPrefix + knownSuffix
|
||||
else:
|
||||
# good input, we stepped further
|
||||
knownPrefix += res
|
||||
|
||||
# let's examine it - check if we hit the win breakpoint :)
|
||||
if bm.HitWin() or not bm.HitLose():
|
||||
EnableLogging()
|
||||
@ -71,7 +73,6 @@ def Bruteforce(bm, tm, knownPrefix, knownSuffix, chunksize, charset):
|
||||
return knownPrefix + knownSuffix
|
||||
|
||||
# No win breakpoint hit, but still a good step forward - proceed
|
||||
knownPrefix += res
|
||||
EnableLogging()
|
||||
print(f"Found new scorer, we're now at '{knownPrefix}[...]{knownSuffix}'")
|
||||
DisableLogging()
|
||||
|
Loading…
Reference in New Issue
Block a user