Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-enable hackenproof #180

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading