pwn 0.5.296 → 0.5.297

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: 6084ce4228a703b5a63932418579de97831aef2fd80901f1a6d08d344a5e65a6
4
- data.tar.gz: '09e4abc2b15e4568409e48f5354f1e7481ef6f498a85a6da4607ab47e613c510'
3
+ metadata.gz: d2a882d84c8a39cad218cec303b531edc9b7a0b8f8318a8d14731a666b898101
4
+ data.tar.gz: a87c7ff03ea231c405454b4e0f98df6d51648cb272a772bf4b518f5e2dbc7a6d
5
5
  SHA512:
6
- metadata.gz: da596264507cc6fcf3a33e7a76296bc6cc7057cb4d2d739d702a80a50fa42f1956da53c6ff6ec9e428342caa204d03a0c42f916a0c514fe860aede361f1cc6ed
7
- data.tar.gz: d7dacf9451bc8c44e3872bddbbafb32a113476fba5ac6199526b9993f2edff6bf6958ceb51687cf4f284b5c01d525b91e752a615539b080adea20b462bb61dea
6
+ metadata.gz: 016cd67f87c5889557383311d6ea0d3a73f772c187ed2e8714983a452957d753a4a08b13f5a5c0831c0babf1df80e4ede655163309f6a0ca2298ea75770368d2
7
+ data.tar.gz: a0ab7b93947a1243a4fee67fe413f3de98497c0e1d0a9a9a373e5d7f08623d70cd633c43a14facd94b07b3db4b5e9f85a04304702e049777aa5b7530204b4e26
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.296]:001 >>> PWN.help
40
+ pwn[v0.5.297]: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.296]:001 >>> PWN.help
55
+ pwn[v0.5.297]: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.296]:001 >>> PWN.help
65
+ pwn[v0.5.297]: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:
@@ -64,7 +64,7 @@ module PWN
64
64
  if http_body.is_a?(Hash)
65
65
  if http_body.key?(:multipart)
66
66
  headers[:content_type] = 'multipart/form-data'
67
- headers[:x_atlassian_token] => 'no-check'
67
+ headers[:x_atlassian_token] = 'no-check'
68
68
  else
69
69
  http_body = http_body.to_json
70
70
  end
@@ -82,7 +82,10 @@ module PWN
82
82
  raise @@logger.error("Unsupported HTTP Method #{http_method} for #{self} Plugin")
83
83
  end
84
84
 
85
- JSON.parse(response, symbolize_names: true)
85
+ jira_response = response if response.is_a?(RestClient::Response) && response.code == 204
86
+ jira_response = JSON.parse(response, symbolize_names: true) if response.is_a?(RestClient::Response) && response.code != 204
87
+
88
+ jira_response
86
89
  rescue RestClient::ExceptionWithResponse => e
87
90
  if e.response
88
91
  puts "HTTP BASE URL: #{base_api_uri}"
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.296'
4
+ VERSION = '0.5.297'
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.296
4
+ version: 0.5.297
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.