Skip to content

Commit

Permalink
fix: hackenproof 403 #15
Browse files Browse the repository at this point in the history
  • Loading branch information
root4loot committed Oct 5, 2024
1 parent d0c033b commit 018962b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/bugbounty/hackenproof/hackenproof.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,14 @@ func (i *HackenProof) Run(programURL string, client *http.Client) (*common.Resul

i.Result.ProgramDetails = *parsedURL

req, err := http.NewRequest("GET", parsedURL.InputURL, nil)
req, err := http.NewRequest("POST", parsedURL.InputURL, nil)
if err != nil {
return nil, err
}

req.Header.Set("User-Agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36")
req.Header.Set("Referer", "https://hackenproof.com/bug-bounty-programs-list")

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

0 comments on commit 018962b

Please sign in to comment.