mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-09-14 14:06:44 +08:00
优化poc模块正则Set-Cookie时的结果
This commit is contained in:
parent
98300cbc9c
commit
c492386977
@ -460,7 +460,7 @@ func clustersend(oReq *http.Request, variableMap map[string]interface{}, req *Re
|
|||||||
variableMap["response"] = resp
|
variableMap["response"] = resp
|
||||||
// 先判断响应页面是否匹配search规则
|
// 先判断响应页面是否匹配search规则
|
||||||
if rule.Search != "" {
|
if rule.Search != "" {
|
||||||
result := doSearch(strings.TrimSpace(rule.Search), GetHeader(resp.Headers)+string(resp.Body))
|
result := doSearch(rule.Search, GetHeader(resp.Headers)+string(resp.Body))
|
||||||
if result != nil && len(result) > 0 { // 正则匹配成功
|
if result != nil && len(result) > 0 { // 正则匹配成功
|
||||||
for k, v := range result {
|
for k, v := range result {
|
||||||
variableMap[k] = v
|
variableMap[k] = v
|
||||||
|
Loading…
Reference in New Issue
Block a user