pwn 0.5.458 → 0.5.459

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: 1c2d13b12e7ec4d460f7a76626be80ad82c30c448de61f4e1feea0049ddf7e50
4
- data.tar.gz: b8b29dfcc330ece669b3e1a287f3631d685f0fdc80b971315a9032e4db01eee5
3
+ metadata.gz: 821ea05737825e8c254766da6476f90b5315c3b292d039cf621cfef01a7067f6
4
+ data.tar.gz: 9451d08fb028c514d47604138ca5d6cd73142b9d4c8c111caacb8dfa2e5d879d
5
5
  SHA512:
6
- metadata.gz: c3787c3d3b0c7de09178f8ce337f7b8023cdabf995443fc5a614ff6c031089eb05eea2b6b568a0a2a6a9e4af59112cdc49fdc05c8955d221093c336e45275ea6
7
- data.tar.gz: fab64b6da86b11a27b1bf05c088763e56408459156b03b24018566cb95f68de710d7917fdf631b2861b10dc0433c75ba3841c17983ea0a7b759026df11e72741
6
+ metadata.gz: 05506e6cb58d8bf3281f005c9faaf1f81229bddda894cbe49f9a558d1b61a6a2cc7c3ce8dee472c76ef9e80eeb538ad44db533ebfb8ea5ffd38e99179d4a0217
7
+ data.tar.gz: 47ea7554ce6277eeb6ce8fb14448f4665849af9150eff0bc45e08e49d331f08f7a8ee09fad43db89556dab2b9fa114d00bf5e1425a13534f21170707bf26b942
data/README.md CHANGED
@@ -37,7 +37,7 @@ $ cd /opt/pwn
37
37
  $ ./install.sh
38
38
  $ ./install.sh ruby-gem
39
39
  $ pwn
40
- pwn[v0.5.458]:001 >>> PWN.help
40
+ pwn[v0.5.459]: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.4.4@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.5.458]:001 >>> PWN.help
55
+ pwn[v0.5.459]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
  If you're using a multi-user install of RVM do:
@@ -62,7 +62,7 @@ $ rvm use ruby-3.4.4@pwn
62
62
  $ rvmsudo gem uninstall --all --executables pwn
63
63
  $ rvmsudo gem install --verbose pwn
64
64
  $ pwn
65
- pwn[v0.5.458]:001 >>> PWN.help
65
+ pwn[v0.5.459]:001 >>> PWN.help
66
66
  ```
67
67
 
68
68
  PWN periodically upgrades to the latest version of Ruby which is reflected in `/opt/pwn/.ruby-version`. The easiest way to upgrade to the latest version of Ruby from a previous PWN installation is to run the following script:
@@ -218,6 +218,7 @@ module PWN
218
218
  epic_name_field_key = all_fields.find { |field| field[:name] == 'Epic Name' }[:id]
219
219
 
220
220
  epic_name = opts[:epic_name]
221
+ raise 'ERROR: epic_name cannot be nil when issue_type is :epic.' if issue_type == :epic && epic_name.nil?
221
222
 
222
223
  http_body = {
223
224
  fields: {
@@ -267,7 +268,20 @@ module PWN
267
268
  )
268
269
  end
269
270
 
270
- get_issue(issue: issue)
271
+ created_issue = nil
272
+ get_issue_attempts = 0
273
+ max_get_issue_attempts = 7
274
+ begin
275
+ created_issue = get_issue(issue: issue)
276
+ rescue RuntimeError
277
+ raise 'ERROR: Max attempts reached for retrieving created issue.' if get_issue_attempts > max_get_issue_attempts
278
+
279
+ get_issue_attempts += 1
280
+ sleep 1
281
+ retry
282
+ end
283
+
284
+ created_issue
271
285
  rescue StandardError => e
272
286
  raise e
273
287
  end
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.5.458'
4
+ VERSION = '0.5.459'
5
5
  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.5.458
4
+ version: 0.5.459
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.