Skip to content

Commit

Permalink
Fix intigriti
Browse files Browse the repository at this point in the history
  • Loading branch information
arkadiyt committed Dec 20, 2024
1 parent eb3abef commit 743f899
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 217 deletions.
4 changes: 3 additions & 1 deletion lib/bounty-targets/intigriti.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ def encode(component)

def directory_index
page = ::Nokogiri::HTML(SsrfFilter.get(::URI.parse('https://www.intigriti.com/programs')).body)
script = page.css('script')[-1].inner_text.match(/self\.__next_f\.push\(\[1,(.*)\]/)[1]
script = page.css('script').max_by do |node|
node.to_s.length
end.inner_text.match(/self\.__next_f\.push\(\[1,(.*)\]/)[1]
programs = JSON.parse(JSON.parse(script)[2..])[3]['children'][1][3]['programs']
programs.map do |program|
{
Expand Down
217 changes: 1 addition & 216 deletions spec/fixtures/intigriti/programs.html

Large diffs are not rendered by default.

0 comments on commit 743f899

Please sign in to comment.