From 104d41380edb12eb1ea16aed50602430bac754b3 Mon Sep 17 00:00:00 2001 From: M09Ic Date: Thu, 5 Jun 2025 12:29:17 +0800 Subject: [PATCH] fix: null word not continue, https://github.com/chainreactors/spray/issues/108 --- core/pool/brutepool.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/core/pool/brutepool.go b/core/pool/brutepool.go index 7460a0c..6365f88 100644 --- a/core/pool/brutepool.go +++ b/core/pool/brutepool.go @@ -203,10 +203,6 @@ Loop: continue } pool.Statistor.End++ - if w == "" { - pool.Statistor.Skipped++ - pool.Bar.Done() - } pool.wordOffset++ if pool.wordOffset < offset { @@ -218,6 +214,12 @@ Loop: continue } + if w == "" { + pool.Statistor.Skipped++ + pool.Bar.Done() + continue + } + pool.wg.Add(1) if pool.Mod == HostSpray { pool.reqPool.Invoke(&Unit{host: w, source: parsers.WordSource, number: pool.wordOffset})