Skip to content

Commit

Permalink
v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wjlin0 committed Jul 22, 2023
1 parent 681bfda commit abe5fc0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/runner/banner.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ const (
__ __ ____
___ ___ _ / /_ / / / __/____ ___ _ ___
/ _ \/ _ // __// _ \ _\ \ / __// _ // _ \
/ .__/\_,_/ \__//_//_//___/ \__/ \_,_//_//_/ v1.1.5
/ .__/\_,_/ \__//_//_//___/ \__/ \_,_//_//_/ v1.2.0
/_/
`
Version = `1.1.5`
Version = `1.2.0`
defaultResumeFileName = `resume.cfg`
userName = "wjlin0"
repoName = "pathScan-match"
Expand Down
3 changes: 3 additions & 0 deletions pkg/runner/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ func HtmlOutput(m map[string]interface{}, path string) {
}

func (r *Runner) OutputHandler(target, path string, mapResult map[string]interface{}, outputWriter *runner.OutputWriter) {
if mapResult["re"] == nil {
return
}
targetResult := mapResult["re"].(*result.TargetResult)
r.Cfg.Results.AddPathByResult(target, path)
r.handlerOutputTarget(targetResult)
Expand Down
5 changes: 3 additions & 2 deletions pkg/runner/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ func (r *Runner) GoHandler(target, path string, outputWriter *ucRunner.OutputWri
gologger.Warning().Msgf("发生错误: %s", err)
return
}

check := mapResult["check"].(bool)
targetResult := mapResult["re"].(*result.TargetResult)
if r.Cfg.Options.ResultBack != nil {
Expand All @@ -411,7 +412,6 @@ func (r *Runner) GoHandler(target, path string, outputWriter *ucRunner.OutputWri
if check {
return
}
link := mapResult["links"].([]string)

// 这里得加锁
if r.Cfg.Options.RecursiveRun {
Expand All @@ -427,7 +427,8 @@ func (r *Runner) GoHandler(target, path string, outputWriter *ucRunner.OutputWri
r.OutputHandler(target, path, mapResult, outputWriter)

// 处理link 加锁
if len(link) > 0 && !r.Cfg.Options.FindOtherLink && !r.Cfg.Options.RecursiveRun {
if !r.Cfg.Options.RecursiveRun && !r.Cfg.Options.FindOtherLink && mapResult["links"] != nil {
link := mapResult["links"].([]string)
go func() {
for _, l := range link {
select {
Expand Down

0 comments on commit abe5fc0

Please sign in to comment.