pwn 0.4.727 → 0.4.728
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/pwn/plugins/black_duck_binary_analysis.rb +25 -0
- 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: 51535ad690b0fbbba94bfff3e6cebb146d0ccd26b3a0a0d41188a8e8f81f3c27
|
4
|
+
data.tar.gz: 8f22af77373b7fc376c6c439cf9501257b61fc481c715bb12d46bac5f82358d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 110efb7bd81aaabf5b836116c0b61662e0c8f4730f42ffd75966d53321d67968ea2590541004269358e49b64214c8e90eeff5588afb71d5b8762b65eaa9ed9f6
|
7
|
+
data.tar.gz: 183096b0d977646abe88a441abb0e1474968b0d4bfb2f8c130a6d62f7a06c02a0cf576bc9d50c2845bf1c9bcdf5da88981812f5288643349c04c25634c29219a
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ $ rvm use ruby-3.2.2@pwn
|
|
37
37
|
$ rvm list gemsets
|
38
38
|
$ gem install --verbose pwn
|
39
39
|
$ pwn
|
40
|
-
pwn[v0.4.
|
40
|
+
pwn[v0.4.728]: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.
|
55
|
+
pwn[v0.4.728]:001 >>> PWN.help
|
56
56
|
```
|
57
57
|
|
58
58
|
|
@@ -147,6 +147,26 @@ module PWN
|
|
147
147
|
raise e
|
148
148
|
end
|
149
149
|
|
150
|
+
# Supported Method Parameters::
|
151
|
+
# response = PWN::Plugins::BlackDuckBinaryAnalysis.get_group_details(
|
152
|
+
# token: 'required - Bearer token',
|
153
|
+
# group_id: 'required - group id'
|
154
|
+
# )
|
155
|
+
|
156
|
+
public_class_method def self.get_group_details(opts = {})
|
157
|
+
token = opts[:token]
|
158
|
+
group_id = opts[:group_id]
|
159
|
+
|
160
|
+
response = bd_bin_analysis_rest_call(
|
161
|
+
token: token,
|
162
|
+
rest_call: "groups/#{group_id}"
|
163
|
+
)
|
164
|
+
|
165
|
+
JSON.parse(response, symbolize_names: true)
|
166
|
+
rescue StandardError => e
|
167
|
+
raise e
|
168
|
+
end
|
169
|
+
|
150
170
|
# Supported Method Parameters::
|
151
171
|
# response = PWN::Plugins::BlackDuckBinaryAnalysis.upload_file(
|
152
172
|
# token: 'required - Bearer token',
|
@@ -196,6 +216,11 @@ module PWN
|
|
196
216
|
token: 'required - Bearer token'
|
197
217
|
)
|
198
218
|
|
219
|
+
response = #{self}.get_group_details(
|
220
|
+
token: 'required - Bearer token',
|
221
|
+
group_id: 'required - group id'
|
222
|
+
)
|
223
|
+
|
199
224
|
response = #{self}.upload_file(
|
200
225
|
token: 'required - Black Duck Binary Analysis API token',
|
201
226
|
file: 'required - file to upload'
|
data/lib/pwn/version.rb
CHANGED