Skip to content

Commit

Permalink
Misc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
arkadiyt committed Jul 17, 2024
1 parent 1206830 commit bb4b649
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ GEM
racc (1.8.0)
rainbow (3.1.1)
regexp_parser (2.8.0)
rexml (3.3.1)
rexml (3.3.2)
strscan
rspec (3.11.0)
rspec-core (~> 3.11.0)
Expand Down
2 changes: 1 addition & 1 deletion lib/bounty-targets/bugcrowd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def parse_engagement(program_link)
scope['inScope'] == true
end.map do |scope|
scope.dig('rewardRangeData', '1', 'max')
end.max,
end.compact.max,
targets: {
in_scope: scopes_to_hashes_engagement(brief_scope.select do |scope|
scope['inScope'] == true
Expand Down
5 changes: 4 additions & 1 deletion lib/bounty-targets/hackenproof.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,12 @@ def uris
def directory_index
page = 1
programs = []
document = nil

::Kernel.loop do
document = ::JSON.parse(::SsrfFilter.get("https://hackenproof.com/bug-bounty-programs-list?page=#{page}").body)
retryable do
document = ::JSON.parse(::SsrfFilter.get("https://hackenproof.com/bug-bounty-programs-list?page=#{page}").body)
end
programs.concat(document['programs'].map do |program|
{
id: program['id'],
Expand Down

0 comments on commit bb4b649

Please sign in to comment.