pwn 0.4.944 → 0.4.945

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: 4028007d235d0e913774b0b9c5cf191c2d0ca6c3d9f2450d79c60dc47f92aa97
4
- data.tar.gz: 13c8fe06f8bea2326cb04f73a26cdee55cf0272fb84786d110dd88e6ac0eea15
3
+ metadata.gz: 824d4fba48d2116f02f1da02dcfcddf10f04ce2582da1eb4665aace2b17ccae1
4
+ data.tar.gz: 0f8a93703bfde7827a991358d446ac89c8879260ba8423ca03ab11c63ba216cc
5
5
  SHA512:
6
- metadata.gz: e86bd88e42754b559edad67322ab6673064115c1de90d8ac2326ffc5a98475ee501a339f31dc516407637ef54bddf72f3a25d170002519a93a250db2f19f576b
7
- data.tar.gz: 5c3bc02955a20e692dc3389cd7d516213368bbe4a4fc779454c3983553f3af15b2046d6006369185a2ba36061b827d051dc720f86edb6e3fd400a37dcc8266ff
6
+ metadata.gz: 87972ebd049200357c256315238d525e386c6672d97049bbc7ef5fdacb959522b3a477596e84d8a07bb7f605240597a435b04da65dc97b5dc0e05256730138ee
7
+ data.tar.gz: 4f7386b7181b450f9c7fe070382dca3b03bc9b7961a26c9c70b7a967b875758c96545b518167a41691ae546bc2dfe32104d8f69f8ede8a229ad5b0915ee942b2
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.4.944]:001 >>> PWN.help
40
+ pwn[v0.4.945]: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.944]:001 >>> PWN.help
55
+ pwn[v0.4.945]: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.2.2@pwn
62
62
  $ rvmsudo gem uninstall --all --executables pwn
63
63
  $ rvmsudo gem install --verbose pwn
64
64
  $ pwn
65
- pwn[v0.4.944]:001 >>> PWN.help
65
+ pwn[v0.4.945]:001 >>> PWN.help
66
66
  ```
67
67
 
68
68
 
@@ -96,32 +96,23 @@ module PWN
96
96
 
97
97
  when :post
98
98
  if http_body.key?(:multipart)
99
- response = rest_client.execute(
100
- method: :post,
101
- url: "#{base_dd_api_uri}/#{rest_call}",
102
- headers: {
103
- content_type: content_type,
104
- authorization: dd_obj[:authz_header]
105
- },
106
- payload: http_body,
107
- verify_ssl: false,
108
- timeout: request_timeout,
109
- open_timeout: request_timeout
110
- )
99
+ payload = http_body
111
100
  else
112
- response = rest_client.execute(
113
- method: :post,
114
- url: "#{base_dd_api_uri}/#{rest_call}",
115
- headers: {
116
- content_type: content_type,
117
- authorization: dd_obj[:authz_header]
118
- },
119
- payload: http_body.to_json,
120
- verify_ssl: false,
121
- timeout: request_timeout,
122
- open_timeout: request_timeout
123
- )
101
+ payload = http_body.to_json
124
102
  end
103
+
104
+ response = rest_client.execute(
105
+ method: :post,
106
+ url: "#{base_dd_api_uri}/#{rest_call}",
107
+ headers: {
108
+ content_type: content_type,
109
+ authorization: dd_obj[:authz_header]
110
+ },
111
+ payload: payload,
112
+ verify_ssl: false,
113
+ timeout: request_timeout,
114
+ open_timeout: request_timeout
115
+ )
125
116
  else
126
117
  raise @@logger.error("Unsupported HTTP Method #{http_method} for #{self} Plugin")
127
118
  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.4.944'
4
+ VERSION = '0.4.945'
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.4.944
4
+ version: 0.4.945
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.