pwn 0.4.769 → 0.4.771

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: 792e27d6d5b023d10429a40e51c2af4d12953e1c9345892fea009aed43efc989
4
- data.tar.gz: 556537beb63f75e27644cfc22c819c7e6456b17f06502ed37b79f4669ca3ee9e
3
+ metadata.gz: 7b5acb3dc771ed0c8574dd9b6a8d581403bf51ba592345f69c51c5434b2c80d6
4
+ data.tar.gz: 97d6c04da0c050335ccf623ddfc6aa0af581a09d604b5dba01444c1b7f9e874d
5
5
  SHA512:
6
- metadata.gz: cca9cb0ee2b55fca054bee4d543296b1e773d7e7e8d77bcb3bd18fc94de570e0f30ddea02800995c3d3ffe13890500df0b17b3c03f8b85f2b9037e6d64ed6a67
7
- data.tar.gz: 5bb1d87293ab00e4441a1a0da910c30282cabb108af1d16e03959a794cdb329e1bd8143cc7c54c893a689c0b241a094bb75d5a7b0e65a33c50442d47c22a98dc
6
+ metadata.gz: bbde64339f38f729eb9f83920d4823555503264dfd953a987fbbc98b765f7e625cf9190376fdd7d72d513e562e3c415b754362ca8acaac7d10ea7e24b841c034
7
+ data.tar.gz: '0700790644806740ebecffc2e46b3cc675f624a1424472221b6c789e6dd619c8afa3809a6642fc843ba5bee9847aaa1bb4133f1cfaabd12d037e73e7482315f8'
data/Gemfile CHANGED
@@ -53,7 +53,7 @@ gem 'nokogiri-diff', '0.2.0'
53
53
  gem 'oily_png', '1.2.1'
54
54
  gem 'open3', '0.1.2'
55
55
  gem 'os', '1.1.4'
56
- gem 'packetfu', '1.1.13'
56
+ gem 'packetfu', '2.0.0'
57
57
  gem 'pdf-reader', '2.11.0'
58
58
  gem 'pg', '1.5.3'
59
59
  gem 'pry', '0.14.2'
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.769]:001 >>> PWN.help
40
+ pwn[v0.4.771]: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.769]:001 >>> PWN.help
55
+ pwn[v0.4.771]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
data/bin/pwn_bdba_groups CHANGED
@@ -11,7 +11,7 @@ OptionParser.new do |options|
11
11
  #{$PROGRAM_NAME} [opts]
12
12
  "
13
13
 
14
- options.on('-cCONFIG', '--config=CONFG', '<Required - Black Duck Binary Analysis YAML config>') do |c|
14
+ options.on('-cCONFIG', '--config=CONFIG', '<Required - Black Duck Binary Analysis YAML config>') do |c|
15
15
  opts[:config] = c
16
16
  end
17
17
 
@@ -23,7 +23,7 @@ OptionParser.new do |options|
23
23
  opts[:list_group_name] = l
24
24
  end
25
25
 
26
- options.on('-pNAME', '--parent-group=NAME', '<Optional - Black Duck Binary Analysis Parent Group Name to Associate with Group>') do |p|
26
+ options.on('-pPNAME', '--parent-group=PNAME', '<Optional - Black Duck Binary Analysis Parent Group Name to Associate with Group>') do |p|
27
27
  opts[:parent_group_name] = p
28
28
  end
29
29
  end.parse!
@@ -45,8 +45,12 @@ begin
45
45
  token = yaml_config[:token]
46
46
  raise "ERROR: BDBA Token Not Found: #{token}" if token.nil?
47
47
 
48
+ group_name = opts[:group_name]
49
+ raise "ERROR: BDBA Group Name Not Provided: #{group_name}" if group_name.nil?
50
+
48
51
  list_group_name = opts[:list_group_name]
49
52
  parent_group_name = opts[:parent_group_name]
53
+ parent_id = nil
50
54
 
51
55
  if list_group_name || parent_group_name
52
56
  groups_resp = PWN::Plugins::BlackDuckBinaryAnalysis.get_groups(
@@ -60,7 +64,7 @@ begin
60
64
  group_arr_sorted = group_arr.sort_by { |g| g[:id] }
61
65
  group = group_arr_sorted.last
62
66
 
63
- if group.nil?
67
+ if list_group_name && group.nil?
64
68
  puts 'BDBA Group Not Found.'
65
69
  exit 1
66
70
  end
@@ -78,9 +82,6 @@ begin
78
82
  end
79
83
  end
80
84
 
81
- group_name = opts[:group_name]
82
- raise "ERROR: BDBA Group Name Not Provided: #{group_name}" if group_name.nil?
83
-
84
85
  PWN::Plugins::BlackDuckBinaryAnalysis.create_group(
85
86
  token: token,
86
87
  name: group_name,
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.769'
4
+ VERSION = '0.4.771'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pwn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.769
4
+ version: 0.4.771
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-28 00:00:00.000000000 Z
11
+ date: 2023-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -590,14 +590,14 @@ dependencies:
590
590
  requirements:
591
591
  - - '='
592
592
  - !ruby/object:Gem::Version
593
- version: 1.1.13
593
+ version: 2.0.0
594
594
  type: :runtime
595
595
  prerelease: false
596
596
  version_requirements: !ruby/object:Gem::Requirement
597
597
  requirements:
598
598
  - - '='
599
599
  - !ruby/object:Gem::Version
600
- version: 1.1.13
600
+ version: 2.0.0
601
601
  - !ruby/object:Gem::Dependency
602
602
  name: pdf-reader
603
603
  requirement: !ruby/object:Gem::Requirement