pwn 0.4.739 → 0.4.740

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: 2b3a46e4ee96746221feb823a894354b14b8d6f118ab818e7fdfd619726ccd37
4
- data.tar.gz: 82aa376d8fa6b29dac632c7a27444714dff78c973c217e8b7bc319c8e21f234a
3
+ metadata.gz: 5a27e88a828871c161854774acd11cf0841e4b7d18f527710e5303b8fe10b9b9
4
+ data.tar.gz: acfcdbe03a94ed5445977159f0674dd3f3abf2088ea3a65e949f09b5d81d8070
5
5
  SHA512:
6
- metadata.gz: 48c8f7f918846ec1ca54b3dd4c3b2a19588a2ce37119cf3b7c67514475b97904de88e4d7a0e6838868e1f6ba69a73c244762cae5ecb8ee507f8b70a5f32e98ff
7
- data.tar.gz: 6d7dca2c7944b646c3d2958f68fea7ccba6c69b07e85c8d325e85d38e4848e56db2aefb0c3ffc8f0bf48c5f92c54558c72a94b9facca5173d08cda8ce061b0e0
6
+ metadata.gz: 4d90f6dfea154b957cb0b8089ea9dff3cd3b76b95a62085f0b9419694cde85528b1827505da94bc948e17c89a7a723a5641899c680172cec8fd50513e6bd228c
7
+ data.tar.gz: 29bfa448bfe958555d6518dd73120e9d12cbf79449fd0ef985e05403e4c0f8183ac2a5fb9683253e9b108e74132ce00d48947951c53de9cbded4a3254ccf2fff
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.739]:001 >>> PWN.help
40
+ pwn[v0.4.740]: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.739]:001 >>> PWN.help
55
+ pwn[v0.4.740]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
@@ -192,6 +192,26 @@ module PWN
192
192
  raise e
193
193
  end
194
194
 
195
+ # Supported Method Parameters::
196
+ # response = PWN::Plugins::BlackDuckBinaryAnalysis.get_product(
197
+ # token: 'required - Bearer token',
198
+ # product_id: 'required - product id'
199
+ # )
200
+
201
+ public_class_method def self.get_product(opts = {})
202
+ token = opts[:token]
203
+ product_id = opts[:product_id]
204
+
205
+ response = bd_bin_analysis_rest_call(
206
+ token: token,
207
+ rest_call: "product/#{product_id}"
208
+ )
209
+
210
+ JSON.parse(response, symbolize_names: true)
211
+ rescue StandardError => e
212
+ raise e
213
+ end
214
+
195
215
  # Supported Method Parameters::
196
216
  # response = PWN::Plugins::BlackDuckBinaryAnalysis.get_tasks(
197
217
  # token: 'required - Bearer token'
@@ -527,6 +547,11 @@ module PWN
527
547
  product_id: 'optional - product id'
528
548
  )
529
549
 
550
+ response = #{self}.get_product(
551
+ token: 'required - Bearer token',
552
+ product_id: 'required - product id'
553
+ )
554
+
530
555
  response = #{self}.get_tasks(
531
556
  token: 'required - Bearer token'
532
557
  )
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.739'
4
+ VERSION = '0.4.740'
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.739
4
+ version: 0.4.740
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.