pwn 0.4.989 → 0.4.990
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/black_duck_binary_analysis.rb +16 -4
- 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: af3ee5fb9ea7c8c0e53013a291f99f22aa3c19b2ff00b72c59acb574d5dfdecd
|
4
|
+
data.tar.gz: 341d6d21ef6d1476f909404daf0ec259a430cde3598d22185a62e16ac6248fd8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9468a3b230402f31fb9caec77acca6dcec10646bab6e350d00e680a68c848524e87dce423c5a21abfb6fcf795ad1c832f189dae8ebd6e7162811aa1851f9fcc3
|
7
|
+
data.tar.gz: d4359349f2c51cdcfc361de00a069069203cb3c1e53601e311f22e1377039666f1a3dca42ab5267bb7472b4504ebd1294d42611abf1f50af7ce09ae4cd9001cf
|
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.990]:001 >>> PWN.help
|
41
41
|
```
|
42
42
|
|
43
43
|
[](https://youtu.be/G7iLUY4FzsI)
|
@@ -52,7 +52,7 @@ $ rvm use ruby-3.3.0@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.990]: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.3.0@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.990]: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:
|
@@ -60,8 +60,15 @@ module PWN
|
|
60
60
|
|
61
61
|
when :post, :put
|
62
62
|
if http_body.is_a?(Hash)
|
63
|
-
|
64
|
-
|
63
|
+
case http_body.key?
|
64
|
+
when :multipart
|
65
|
+
headers[:content_type] = 'multipart/form-data'
|
66
|
+
when :raw
|
67
|
+
headers[:content_type] = nil
|
68
|
+
http_body = http_body[:file]
|
69
|
+
else
|
70
|
+
http_body = http_body.to_json unless http_body.key?(:multipart)
|
71
|
+
end
|
65
72
|
end
|
66
73
|
|
67
74
|
response = rest_client.execute(
|
@@ -178,9 +185,14 @@ module PWN
|
|
178
185
|
replace: product_id
|
179
186
|
}
|
180
187
|
|
188
|
+
# http_body = {
|
189
|
+
# multipart: true,
|
190
|
+
# file: File.new(file, 'rb')
|
191
|
+
# }
|
192
|
+
|
181
193
|
http_body = {
|
182
|
-
|
183
|
-
file: File.
|
194
|
+
raw: true,
|
195
|
+
file: File.binread(file)
|
184
196
|
}
|
185
197
|
|
186
198
|
response = bd_bin_analysis_rest_call(
|
data/lib/pwn/version.rb
CHANGED