pwn 0.4.848 → 0.4.850

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a236cfc18ad0f9d37a5c9852bea7138cf6a7c1b56a1cb36904012ae00b4b1f95
4
- data.tar.gz: 63d73fbf902c24a97ff59566315ac0360e68f7f17902295d4a76037aa4029580
3
+ metadata.gz: c3efb9a4f41404ba58fc066356e6e107c21aaee2731e05f5df4100377b073db4
4
+ data.tar.gz: d4c53b84d075327cfa1c5d20c663b9c7743c4c233d85bf25e758897b2615212e
5
5
  SHA512:
6
- metadata.gz: 146808217a22461f516e146dca5c90c4ae14e1966440186c35c91f72fac01cf5bd72c7e6668cdb1b043200e7fed3c7a57c39a6cc413bc09e65e837e708ad7555
7
- data.tar.gz: 6ea009db44e3b4fe68a4ce4252e91912ac8d02fb6526e8dc6ab4879615bf2585e6ff3e39e239bb461145a263b1c0d3a19efbf8ff43f6f101e009880423759a6a
6
+ metadata.gz: 936a4f8524de0d706251295412400320724785489577abdd7c31f7c71c553cb77329097a1774ba49dbcdaad31f4a93a0c8d1ac6b4ee40c00a9f7730539c8ab9e
7
+ data.tar.gz: b6b674caa86a0c421498bf36b4c20c35495df2d434fadb5b9647733fe2e3272ee3cd32493ce9bf01819870273b8940911ff89506ffc551f57bbb716d369dc328
data/README.md CHANGED
@@ -37,7 +37,7 @@ $ rvm use ruby-3.2.2@pwn
37
37
  $ rvm list gemsets
38
38
  $ gem install --verbose pwn
39
39
  $ pwn
40
- pwn[v0.4.848]:001 >>> PWN.help
40
+ pwn[v0.4.850]:001 >>> PWN.help
41
41
  ```
42
42
 
43
43
  [![Installing the pwn Security Automation Framework](https://raw.githubusercontent.com/0dayInc/pwn/master/documentation/pwn_install.png)](https://youtu.be/G7iLUY4FzsI)
@@ -52,7 +52,7 @@ $ rvm use ruby-3.2.2@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.4.848]:001 >>> PWN.help
55
+ pwn[v0.4.850]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
data/lib/pwn/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PWN
4
- VERSION = '0.4.848'
4
+ VERSION = '0.4.850'
5
5
  end
@@ -35,21 +35,24 @@ module PWN
35
35
 
36
36
  browser.goto('https://hackerone.com/bug-bounty-programs')
37
37
  # Wait for JavaScript to load the DOM
38
- browser.div(class: 'page-title-container').wait_until(&:present?)
39
38
 
40
- bb_prograns_arr = []
41
- browser.links.each do |link|
39
+ bb_programs_arr = []
40
+ browser.ul(class: 'program__meta-data').wait_until(&:present?)
41
+ browser.uls(class: 'program__meta-data').each do |ul|
42
42
  print '.'
43
- next unless link.href && link.text == ''
43
+
44
+ link = ul.first.text
45
+ min_payout = format('$%0.2f', ul.text.split('$').last.split.first.to_f)
44
46
 
45
47
  bounty_program_hash = {
46
- name: link.href.split('/').last,
47
- url: link.href
48
+ name: link.split('/').last,
49
+ min_payout: min_payout,
50
+ url: link
48
51
  }
49
- bb_prograns_arr.push(bounty_program_hash)
52
+ bb_programs_arr.push(bounty_program_hash)
50
53
  end
51
54
 
52
- bb_prograns_arr
55
+ bb_programs_arr
53
56
  rescue StandardError => e
54
57
  raise e
55
58
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pwn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.848
4
+ version: 0.4.850
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.