Skip to content

Commit

Permalink
fix 当将非http端口加上http进行盲打时发生当req和header无效导致当内存错误 2022-07-10 02:26:16573…
Browse files Browse the repository at this point in the history
…91186
  • Loading branch information
x51pwn committed Jul 9, 2022
1 parent accc51f commit 4e7222a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brute/filefuzz.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func reqPage(u string) (*page, *pkg.Response, error) {
}
header := make(map[string]string)
header["Accept"] = "text/html,*/*;"
if req, err := pkg.HttpRequset(u, method, "", false, header); err == nil {
if req, err := pkg.HttpRequset(u, method, "", false, header); err == nil && nil != req && nil != req.Header {
if pkg.IntInSlice(req.StatusCode, []int{301, 302, 307, 308}) {
page.is302 = true
}
Expand Down

0 comments on commit 4e7222a

Please sign in to comment.