pwn 0.4.854 → 0.4.855

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6df008d51cb16254df887dd82553b2f06594eb18eb9f5495fda95cffaa8a395b
4
- data.tar.gz: 8913432a03c821506c66e644a65e416967afbb13173025d8d7b2f719c4318485
3
+ metadata.gz: 4b0e26ef8cb906bc4db7adfb5a04669233e68d6d849dda78ea0cdb5e6be8721f
4
+ data.tar.gz: f912aec9e8a88b0d95af96e1143b6e6e9102d059248f403d393b70db91689cbc
5
5
  SHA512:
6
- metadata.gz: 4f07f0e723484ad93ac2c1deb59edc3b082e7242e803aa4c4ee8a98a78bc2d98782fdc6573bfa8248e8b3c2134400e8c86ab98c8a73870794008539c65f7cf73
7
- data.tar.gz: 44ba2ae6a5afb46468811557dd63e9b7743e8c070438dabae280f0096e15d4d4aaab14cb71e78f72cbb2bfcf70d81abde946f7e0a8efa7c1b0bd6f03699b0ea2
6
+ metadata.gz: 1119d402b0f9df3d28297097b59eeebbbf3f561874812261793218af4992fd9357f50cba9e905d0d05f4f992d1fef5448dbd97f5f6dc1e59fdc515607e4a57a8
7
+ data.tar.gz: 45b3e2debba43dafcc7eeccb856dd6249c39dc48a3ae14a64c0d81ff94500348dd9b1311d056d482ed6359448cd359e5a06cce9079435c041f294bc3f32a2091
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.854]:001 >>> PWN.help
40
+ pwn[v0.4.855]: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.854]:001 >>> PWN.help
55
+ pwn[v0.4.855]: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.854'
4
+ VERSION = '0.4.855'
5
5
  end
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'uri'
3
4
  require 'yaml'
4
5
 
5
6
  module PWN
@@ -49,14 +50,16 @@ module PWN
49
50
  print '.'
50
51
  link = "https://#{ul.first.text}"
51
52
  min_payout_fmt = format('$%0.2f', min_payout)
52
- split_link = link.split('/')
53
- burp_project = "https://#{split_link[2]}/teams/#{split_link.last}/assets/download_burp_project_file.json"
53
+ scheme = URI.parse(link).scheme
54
+ host = URI.parse(link).host
55
+ path = URI.parse(link).path
56
+ burp_project = "#{scheme}://#{host}/teams#{path}/assets/download_burp_project_file.json"
54
57
 
55
58
  bounty_program_hash = {
56
59
  name: link.split('/').last,
57
60
  min_payout: min_payout_fmt,
58
61
  policy: "#{link}?view_policy=true",
59
- burp_project: "#{link}/assets/download_burp_project_file.json",
62
+ burp_project: burp_project,
60
63
  scope: "#{link}/policy_scopes",
61
64
  hacktivity: "#{link}/hacktivity",
62
65
  thanks: "#{link}/thanks",
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.854
4
+ version: 0.4.855
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.