修复 Init 失败后 --force 继续运行爆破池#157
Merged
Merged
Conversation
acb8fdc to
2ad72ee
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
BrutePool.Init()失败时,index/random基线不可用。当前逻辑在开启--force后仍会继续进入brutePool.Run(),后续比较阶段可能在BaseCompare中访问未初始化的基线并触发 nil pointer panic。--force应该只关闭运行期错误阈值,不应该允许半初始化的 pool 继续运行。修改
RunWithBrute中brutePool.Init()失败后一律关闭当前 pool、记录统计并返回,不再被--force绕过。--force也不会继续请求字典路径。验证