Skip to content

Commit

Permalink
struts2-057 小调整 return -> continue
Browse files Browse the repository at this point in the history
  • Loading branch information
ywolf committed Feb 24, 2019
1 parent ef6624b commit 6f15810
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plugin/go/struts2-057.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,11 @@ func (d *struts2_57) Check(URL string, meta plugin.TaskMeta) bool {
}
request, err := http.NewRequest("GET", strings.Replace(url, "/"+m[1], poc, 1), nil)
if err != nil {
return false
continue
}
resp, err := util.RequestDo(request, true)
if err != nil {
util.Logger.Println(err.Error())
return false
continue
}
if strings.Contains(resp.Other.Request.URL.String(), "53333") {
result := d.info
Expand Down

0 comments on commit 6f15810

Please sign in to comment.