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
|
return knownPrefix + knownSuffix
|
||||||
else:
|
else:
|
||||||
# good input, we stepped further
|
# good input, we stepped further
|
||||||
|
knownPrefix += res
|
||||||
|
|
||||||
# let's examine it - check if we hit the win breakpoint :)
|
# let's examine it - check if we hit the win breakpoint :)
|
||||||
if bm.HitWin() or not bm.HitLose():
|
if bm.HitWin() or not bm.HitLose():
|
||||||
EnableLogging()
|
EnableLogging()
|
||||||
@ -71,7 +73,6 @@ def Bruteforce(bm, tm, knownPrefix, knownSuffix, chunksize, charset):
|
|||||||
return knownPrefix + knownSuffix
|
return knownPrefix + knownSuffix
|
||||||
|
|
||||||
# No win breakpoint hit, but still a good step forward - proceed
|
# No win breakpoint hit, but still a good step forward - proceed
|
||||||
knownPrefix += res
|
|
||||||
EnableLogging()
|
EnableLogging()
|
||||||
print(f"Found new scorer, we're now at '{knownPrefix}[...]{knownSuffix}'")
|
print(f"Found new scorer, we're now at '{knownPrefix}[...]{knownSuffix}'")
|
||||||
DisableLogging()
|
DisableLogging()
|
||||||
|
Loading…
Reference in New Issue
Block a user