Skip to content

Commit

Permalink
Fix yeswehack program (#176)
Browse files Browse the repository at this point in the history
Co-authored-by: arkadiyt <>
  • Loading branch information
arkadiyt authored Oct 4, 2024
1 parent e67c69c commit b4f34bc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/bounty-targets/yes_we_hack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ def directory_index
uri.query = ::URI.encode_www_form(page: page)
result = ::JSON.parse(SsrfFilter.get(uri).body)
page += 1

programs.concat(result['items'].map do |program|
{
id: program['slug'],
Expand All @@ -60,13 +59,13 @@ def program_scopes(program)
response = ::JSON.parse(SsrfFilter.get(uri).body)
{
targets: {
in_scope: response['scopes'].map do |scope|
in_scope: (response['scopes'] || []).map do |scope|
{
target: scope['scope'],
type: scope['scope_type']
}
end,
out_of_scope: response['out_of_scope'].map do |scope|
out_of_scope: (response['out_of_scope'] || []).map do |scope|
{
target: scope,
type: 'other'
Expand Down

0 comments on commit b4f34bc

Please sign in to comment.