pwn 0.4.913 → 0.4.915

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: 06eb290e6815836d32fd82eb221b504737132af413361894777a335b99fd3de8
4
- data.tar.gz: ff7fa34bce159e5cde4a9555bcc06a71731205490ac39fde4f7ad8bbf6cd5ba9
3
+ metadata.gz: fdce03ee1fe16504702c10f4606928c059a616615b1412bfe1309789b447b59f
4
+ data.tar.gz: 16ec13210cc4e60917e4415eff6548da5c14a782446f18f541d9c72f9233a2aa
5
5
  SHA512:
6
- metadata.gz: 46b108ac226118e4e31076dd22616263f7e2336e1f6ccbf1647090f9d2702daba563c0e74659eae1fc846dc95b45fc32a1de1312d5e523db8f06678d6f7b5979
7
- data.tar.gz: e865995a350a2db906d38e21d2e83ef7ef35f6df7ee5b73c9bba6dd6897204769c31530b3af1e4e401d6852534596cf30db44e5544af8d8608c35cd90ff03940
6
+ metadata.gz: 4c7b2dbd0818fc58d827ab06503f865bab502fa76dfb8a27af6aa2022a0ae82ca475c9f6b0b7f32621cf3080afe7a68f808dc9ae3c0b48ce898f26dd46c66e5e
7
+ data.tar.gz: 2f7b5f11f8a47f8116333f8c950edc90302f42eafc9a9818e40df11086d36854ee0d6505e4d0c278f3333a4412edc860a03b937717281d74a0acf2a13ef7ae58
data/Gemfile CHANGED
@@ -38,7 +38,7 @@ gem 'ipaddress', '0.8.3'
38
38
  gem 'jenkins_api_client2', '1.9.0'
39
39
  gem 'js-beautify', '0.1.8'
40
40
  gem 'json', '2.6.3'
41
- gem 'jsonpath', '1.1.3'
41
+ gem 'jsonpath', '1.1.4'
42
42
  gem 'jwt', '2.7.1'
43
43
  gem 'luhn', '1.0.2'
44
44
  gem 'mail', '2.8.1'
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.913]:001 >>> PWN.help
40
+ pwn[v0.4.915]:001 >>> PWN.help
41
41
  ```
42
42
 
43
43
  If you're using a multi-user install of RVM do:
@@ -48,7 +48,7 @@ $ rvm use ruby-3.2.2@pwn
48
48
  $ rvm list gemsets
49
49
  $ rvmsudo gem install --verbose pwn
50
50
  $ pwn
51
- pwn[v0.4.913]:001 >>> PWN.help
51
+ pwn[v0.4.915]:001 >>> PWN.help
52
52
  ```
53
53
 
54
54
  [![Installing the pwn Security Automation Framework](https://raw.githubusercontent.com/0dayInc/pwn/master/documentation/pwn_install.png)](https://youtu.be/G7iLUY4FzsI)
@@ -63,7 +63,7 @@ $ rvm use ruby-3.2.2@pwn
63
63
  $ gem uninstall --all --executables pwn
64
64
  $ gem install --verbose pwn
65
65
  $ pwn
66
- pwn[v0.4.913]:001 >>> PWN.help
66
+ pwn[v0.4.915]:001 >>> PWN.help
67
67
  ```
68
68
 
69
69
  If you're using a multi-user install of RVM do:
@@ -73,7 +73,7 @@ $ rvm use ruby-3.2.2@pwn
73
73
  $ rvmsudo gem uninstall --all --executables pwn
74
74
  $ rvmsudo gem install --verbose pwn
75
75
  $ pwn
76
- pwn[v0.4.913]:001 >>> PWN.help
76
+ pwn[v0.4.915]:001 >>> PWN.help
77
77
  ```
78
78
 
79
79
 
data/bin/pwn_bdba_groups CHANGED
@@ -23,7 +23,7 @@ OptionParser.new do |options|
23
23
  opts[:list_group_name] = l
24
24
  end
25
25
 
26
- options.on('-pID', '--parent-group-ID=ID', '<Optional - Black Duck Binary Analysis Parent Group ID to Associate with Group>') do |p|
26
+ options.on('-pID', '--parent-group-id=ID', '<Optional - Black Duck Binary Analysis Parent Group ID to Associate with Group>') do |p|
27
27
  opts[:parent_group_id] = p
28
28
  end
29
29
  end.parse!
@@ -70,8 +70,21 @@ begin
70
70
  token: token,
71
71
  group_id: group_id
72
72
  )
73
+
73
74
  group_details_arr.push(this_group_details)
74
75
  end
76
+
77
+ if parent_group_id
78
+ filter_group_details_arr_by_parent = group_details_arr.select do |g|
79
+ g[:group][:parent] == parent_group_id
80
+ end
81
+ group_details_arr = filter_group_details_arr_by_parent
82
+ if group_details_arr.empty?
83
+ puts "BDBA Group Not Found for Parent Group ID: #{parent_group_id}"
84
+ exit 1
85
+ end
86
+ end
87
+
75
88
  puts group_details_arr.to_json
76
89
  exit 0
77
90
  end
data/bin/pwn_bdba_scan CHANGED
@@ -110,7 +110,8 @@ begin
110
110
  # Cancel queued scan if it's been queued for more than 90 minutes
111
111
  if scan_progress_busy_duration > queue_timeout.to_i
112
112
  abort_total += 1
113
- puts "Scan Queued for More than #{queue_timeout} Seconds. Aborting and Re-Queuing."
113
+ puts "Scan Queued for More than #{queue_timeout} Seconds."
114
+ puts "Aborting and Re-Queuing Attempt #{abort_total} of #{scan_attempts}..."
114
115
  scan_progress_resp[:products].select { |p| p[:status] == 'B' }.each do |p|
115
116
  puts "Abort Queued Scan: #{p[:name]}"
116
117
  PWN::Plugins::BlackDuckBinaryAnalysis.abort_product_scan(
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.913'
4
+ VERSION = '0.4.915'
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.913
4
+ version: 0.4.915
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.
@@ -380,14 +380,14 @@ dependencies:
380
380
  requirements:
381
381
  - - '='
382
382
  - !ruby/object:Gem::Version
383
- version: 1.1.3
383
+ version: 1.1.4
384
384
  type: :runtime
385
385
  prerelease: false
386
386
  version_requirements: !ruby/object:Gem::Requirement
387
387
  requirements:
388
388
  - - '='
389
389
  - !ruby/object:Gem::Version
390
- version: 1.1.3
390
+ version: 1.1.4
391
391
  - !ruby/object:Gem::Dependency
392
392
  name: jwt
393
393
  requirement: !ruby/object:Gem::Requirement