Skip to content

Commit c7c41aa

Browse files
authored
Re-enable hackenproof (#180)
Co-authored-by: arkadiyt <>
1 parent b3a87ad commit c7c41aa

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Supported platforms:
1111
- Hackerone
1212
- Bugcrowd
1313
- Intigriti
14-
<!-- - Hackenproof -->
14+
- Hackenproof
1515
- YesWeHack
1616
- Federacy
1717

config/README.md.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Extra files:
1212
- [bugcrowd_data.json](https://github.com/arkadiyt/bounty-targets-data/blob/master/data/bugcrowd_data.json): raw [Bugcrowd](https://bugcrowd.com) data.
1313
- [hackerone_data.json](https://github.com/arkadiyt/bounty-targets-data/blob/master/data/hackerone_data.json): raw [Hackerone](https://hackerone.com) data.
1414
- [federacy_data.json](https://github.com/arkadiyt/bounty-targets-data/blob/master/data/federacy_data.json): raw [Federacy](https://federacy.com) data.
15-
<!-- - [hackenproof_data.json](https://github.com/arkadiyt/bounty-targets-data/blob/master/data/hackenproof_data.json): raw [Hackenproof](https://hackenproof.com) data. -->
15+
- [hackenproof_data.json](https://github.com/arkadiyt/bounty-targets-data/blob/master/data/hackenproof_data.json): raw [Hackenproof](https://hackenproof.com) data.
1616
- [intigriti_data.json](https://github.com/arkadiyt/bounty-targets-data/blob/master/data/intigriti_data.json): raw [Intigriti](https://www.intigriti.com) data.
1717
- [yeswehack_data.json](https://github.com/arkadiyt/bounty-targets-data/blob/master/data/yeswehack_data.json): raw [YesWeHack](https://www.yeswehack.com/) data.
1818
- [hackerone_schema.graphql](https://github.com/arkadiyt/bounty-targets-data/blob/master/data/hackerone_schema.graphql): Hackerone's graphql api schema.

lib/bounty-targets/cli.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def scan!(output_dir)
5454
clients = {
5555
bugcrowd: BountyTargets::Bugcrowd.new,
5656
federacy: BountyTargets::Federacy.new,
57-
# hackenproof: BountyTargets::Hackenproof.new,
57+
hackenproof: BountyTargets::Hackenproof.new,
5858
hackerone: BountyTargets::Hackerone.new,
5959
intigriti: BountyTargets::Intigriti.new,
6060
yeswehack: BountyTargets::YesWeHack.new

lib/bounty-targets/hackenproof.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ def directory_index
3737

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

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

0 commit comments

Comments
 (0)