Skip to content

Commit

Permalink
Re-enable hackenproof
Browse files Browse the repository at this point in the history
  • Loading branch information
arkadiyt committed Oct 18, 2024
1 parent b3a87ad commit 0e83486
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Supported platforms:
- Hackerone
- Bugcrowd
- Intigriti
<!-- - Hackenproof -->
- Hackenproof
- YesWeHack
- Federacy

Expand Down
2 changes: 1 addition & 1 deletion config/README.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Extra files:
- [bugcrowd_data.json](https://github.com/arkadiyt/bounty-targets-data/blob/master/data/bugcrowd_data.json): raw [Bugcrowd](https://bugcrowd.com) data.
- [hackerone_data.json](https://github.com/arkadiyt/bounty-targets-data/blob/master/data/hackerone_data.json): raw [Hackerone](https://hackerone.com) data.
- [federacy_data.json](https://github.com/arkadiyt/bounty-targets-data/blob/master/data/federacy_data.json): raw [Federacy](https://federacy.com) data.
<!-- - [hackenproof_data.json](https://github.com/arkadiyt/bounty-targets-data/blob/master/data/hackenproof_data.json): raw [Hackenproof](https://hackenproof.com) data. -->
- [hackenproof_data.json](https://github.com/arkadiyt/bounty-targets-data/blob/master/data/hackenproof_data.json): raw [Hackenproof](https://hackenproof.com) data.
- [intigriti_data.json](https://github.com/arkadiyt/bounty-targets-data/blob/master/data/intigriti_data.json): raw [Intigriti](https://www.intigriti.com) data.
- [yeswehack_data.json](https://github.com/arkadiyt/bounty-targets-data/blob/master/data/yeswehack_data.json): raw [YesWeHack](https://www.yeswehack.com/) data.
- [hackerone_schema.graphql](https://github.com/arkadiyt/bounty-targets-data/blob/master/data/hackerone_schema.graphql): Hackerone's graphql api schema.
Expand Down
2 changes: 1 addition & 1 deletion lib/bounty-targets/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def scan!(output_dir)
clients = {
bugcrowd: BountyTargets::Bugcrowd.new,
federacy: BountyTargets::Federacy.new,
# hackenproof: BountyTargets::Hackenproof.new,
hackenproof: BountyTargets::Hackenproof.new,
hackerone: BountyTargets::Hackerone.new,
intigriti: BountyTargets::Intigriti.new,
yeswehack: BountyTargets::YesWeHack.new
Expand Down
6 changes: 4 additions & 2 deletions lib/bounty-targets/hackenproof.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ def directory_index

::Kernel.loop do
retryable do
document = ::JSON.parse(::SsrfFilter.get("https://hackenproof.com/bug-bounty-programs-list?page=#{page}").body)
document = ::JSON.parse(::SsrfFilter.get("https://hackenproof.com/bug-bounty-programs-list?page=#{page}",
headers: {'hp-partners-bypass' => ENV.fetch('HACKENPROOF', nil)}).body)
end
programs.concat(document['programs'].map do |program|
{
Expand All @@ -60,7 +61,8 @@ def directory_index

def program_scopes(program)
retryable do
response = ::JSON.parse(::SsrfFilter.get("https://hackenproof.com/bug-bounty-programs-list/#{program[:slug]}").body)
response = ::JSON.parse(::SsrfFilter.get("https://hackenproof.com/bug-bounty-programs-list/#{program[:slug]}",
headers: {'hp-partners-bypass' => ENV.fetch('HACKENPROOF', nil)}).body)
grouped = response['scopes'].group_by do |scope|
scope['out_of_scope']
end
Expand Down

0 comments on commit 0e83486

Please sign in to comment.