mirror of
https://github.com/chainreactors/spray.git
synced 2025-05-06 18:51:22 +00:00
修复部分情况下过滤不生效的bug
This commit is contained in:
parent
4a12286beb
commit
30506b1f5b
@ -325,8 +325,8 @@ func (pool *Pool) Invoke(v interface{}) {
|
||||
pool.index = bl
|
||||
pool.locker.Unlock()
|
||||
if bl.Status == 200 || (bl.Status/100) == 3 {
|
||||
pool.waiter.Add(1)
|
||||
pool.tempCh <- bl
|
||||
// 保留index输出结果
|
||||
pool.OutputCh <- bl
|
||||
}
|
||||
pool.initwg.Done()
|
||||
case CheckSource:
|
||||
@ -519,9 +519,7 @@ func (pool *Pool) BaseCompare(bl *pkg.Baseline) bool {
|
||||
// 使用与baseline相同状态码, 需要在fuzzystatus中提前配置
|
||||
base, ok := pool.baselines[bl.Status] // 挑选对应状态码的baseline进行compare
|
||||
if !ok {
|
||||
if pool.index != nil {
|
||||
|
||||
} else if pool.random.Status == bl.Status {
|
||||
if pool.random.Status == bl.Status {
|
||||
// 当other的状态码与base相同时, 会使用base
|
||||
ok = true
|
||||
base = pool.random
|
||||
@ -540,6 +538,7 @@ func (pool *Pool) BaseCompare(bl *pkg.Baseline) bool {
|
||||
}
|
||||
|
||||
bl.Collect()
|
||||
|
||||
//if !pool.IgnoreWaf {
|
||||
// // 部分情况下waf的特征可能是全局, 指定了--ignore-waf则不会进行waf的指纹检测
|
||||
// for _, f := range bl.Frameworks {
|
||||
|
@ -14,6 +14,7 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
// from feroxbuster
|
||||
randomUserAgent = []string{
|
||||
"Mozilla/5.0 (Linux; Android 8.0.0; SM-G960F Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.84 Mobile Safari/537.36",
|
||||
"Mozilla/5.0 (iPhone; CPU iPhone OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1",
|
||||
|
Loading…
x
Reference in New Issue
Block a user