Skip to content

Commit

Permalink
fix: add missing hackenproof auth check
Browse files Browse the repository at this point in the history
  • Loading branch information
root4loot committed Oct 5, 2024
1 parent 9a79ab2 commit d0c033b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/bugbounty/hackenproof/hackenproof.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ func (i *HackenProof) Run(programURL string, client *http.Client) (*common.Resul
return nil, err
}

req.Header.Add("Cookie", "_hackenproof_session="+i.Auth)
if i.Auth != "" {
req.Header.Add("Cookie", "_hackenproof_session="+i.Auth)
}

if client == nil {
client = &http.Client{}
Expand Down

0 comments on commit d0c033b

Please sign in to comment.