Skip to content

Commit 4e1f7c4

Browse files
authored
Merge pull request #337 from ninp0/master
pwn_bdba_groups Driver - #bugfix
2 parents d89fd9c + 9dc0971 commit 4e1f7c4

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $ rvm use ruby-3.2.2@pwn
3737
$ rvm list gemsets
3838
$ gem install --verbose pwn
3939
$ pwn
40-
pwn[v0.4.770]:001 >>> PWN.help
40+
pwn[v0.4.771]:001 >>> PWN.help
4141
```
4242

4343
[![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
5252
$ gem uninstall --all --executables pwn
5353
$ gem install --verbose pwn
5454
$ pwn
55-
pwn[v0.4.770]:001 >>> PWN.help
55+
pwn[v0.4.771]:001 >>> PWN.help
5656
```
5757

5858

bin/pwn_bdba_groups

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ OptionParser.new do |options|
1111
#{$PROGRAM_NAME} [opts]
1212
"
1313

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|
1515
opts[:config] = c
1616
end
1717

@@ -23,7 +23,7 @@ OptionParser.new do |options|
2323
opts[:list_group_name] = l
2424
end
2525

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|
2727
opts[:parent_group_name] = p
2828
end
2929
end.parse!
@@ -45,8 +45,12 @@ begin
4545
token = yaml_config[:token]
4646
raise "ERROR: BDBA Token Not Found: #{token}" if token.nil?
4747

48+
group_name = opts[:group_name]
49+
raise "ERROR: BDBA Group Name Not Provided: #{group_name}" if group_name.nil?
50+
4851
list_group_name = opts[:list_group_name]
4952
parent_group_name = opts[:parent_group_name]
53+
parent_id = nil
5054

5155
if list_group_name || parent_group_name
5256
groups_resp = PWN::Plugins::BlackDuckBinaryAnalysis.get_groups(
@@ -78,9 +82,6 @@ begin
7882
end
7983
end
8084

81-
group_name = opts[:group_name]
82-
raise "ERROR: BDBA Group Name Not Provided: #{group_name}" if group_name.nil?
83-
8485
PWN::Plugins::BlackDuckBinaryAnalysis.create_group(
8586
token: token,
8687
name: group_name,

lib/pwn/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module PWN
4-
VERSION = '0.4.770'
4+
VERSION = '0.4.771'
55
end

0 commit comments

Comments
 (0)