Skip to content

Commit aa62871

Browse files
committed
fix #41
1 parent 1f79fa5 commit aa62871

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

brute/admin_brute.go

+3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ func getinput(inputurl string) (usernamekey string, passwordkey string, loginurl
3131
hreflist := regexp.MustCompile(`location.href=['"](.*?)['"]`).FindStringSubmatch(req.Body)
3232
if hreflist != nil {
3333
href, _ := url.Parse(hreflist[len(hreflist)-1:][0])
34+
if href == nil {
35+
return "", "", "", false
36+
}
3437
hrefurl := u.ResolveReference(href)
3538
req, err = pkg.HttpRequset(hrefurl.String(), "GET", "", true, nil)
3639
if err != nil {

0 commit comments

Comments
 (0)