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 +4 -4
- data/README.md +3 -3
- data/lib/pwn/plugins/defect_dojo.rb +15 -24
- data/lib/pwn/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 824d4fba48d2116f02f1da02dcfcddf10f04ce2582da1eb4665aace2b17ccae1
|
|
4
|
+
data.tar.gz: 0f8a93703bfde7827a991358d446ac89c8879260ba8423ca03ab11c63ba216cc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
40
|
+
pwn[v0.4.945]:001 >>> PWN.help
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
[](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.
|
|
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.
|
|
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
|
-
|
|
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
|
-
|
|
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